Create a Lex V2 bot in AWS

The process of creating Lex V2 bots is documented by Amazon. Since the process could change, refer to Amazon documentation when creating bots. This example explains how to create a simple bot. To create this bot, use the Bots interface in Amazon Web Services (AWS).  

Start creating your bot by defining the name, description, and some basic information.

Create an Amazon Lex V2 bot

  1. Sign in to the AWS Management Console and open the Amazon Lex V2 console.
  2. Click Create bot.
  3. Under Creation method, select Create.
  4. Under Bot configuration, give the bot a name and an optional description.
  5. Under IAM permissions, choose a role that defines permissions for the bot.
    Note: This role provides Amazon Lex permission to access other AWS services, such as Amazon CloudWatch. You can have Amazon Lex create the role, or you can choose an existing role with CloudWatch permissions. To create a custom role, use the IAM console.
    • Create a role with basic Amazon Lex permissions
    • Use an existing role
  6. Under Children’s Online Privacy Protection Act (COPPA), choose the appropriate response.
  7. Under Idle session timeout, choose the duration that Amazon Lex V2 keeps a session with a user open. Amazon Lex V2 maintains session variables during the session so that your bot can resume a conversation with the same variables.
  8. (Optional) Under Advanced settings, add tags that help identify the bot. Use these tags to control access and monitor resources.
  9. To create the bot and continue to adding a language, click Next.
  10. Continue to build the bot per your organization’s design.

For more information, see Creating a bot in the Amazon Lex V2 Developer Guide.

Next steps

See the Amazon Lex V2 Developers guide to continue building your Lex V2 bot.