Create an Amazon Lex bot - AWS SDK for JavaScript

Help us improve the AWS SDK for JavaScript version 3 (V3) documentation by providing feedback using the Feedback link, or create an issue or pull request on GitHub.

The AWS SDK for JavaScript V3 API Reference Guide describes in detail all the API operations for the AWS SDK for JavaScript version 3 (V3).

Create an Amazon Lex bot

The first step is to create an Amazon Lex chatbot by using the Amazon Web Services Management Console. In this example, the Amazon Lex BookTrip example is used. For more information, see Book Trip.

  • Sign in to the Amazon Web Services Management Console and open the Amazon Lex console at Amazon Web Services Console.

  • On the Bots page, choose Create.

  • Choose BookTrip blueprint (leave the default bot name BookTrip).

  • Fill in the default settings and choose Create (the console shows the BookTrip bot). On the Editor tab, review the details of the preconfigured intents.

  • Test the bot in the test window. Start the test by typing I want to book a hotel room.

  • Choose Publish and specify an alias name (you will need this value when using the AWS SDK for JavaScript).

Note

You need to reference the bot name and the bot alias in your JavaScript code.