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
- Sign in to the AWS Management Console and open the Amazon Lex V2 console.
- Click Create bot.
- Under Creation method, select Create.
- Under Bot configuration, give the bot a name and an optional description.
- 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
- Under Children’s Online Privacy Protection Act (COPPA), choose the appropriate response.
- 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.
- (Optional) Under Advanced settings, add tags that help identify the bot. Use these tags to control access and monitor resources.
- To create the bot and continue to adding a language, click Next.
- Continue to build the bot per your organization’s design.
For more information, see Creating a bot in the Amazon Lex V2 Developer Guide.
See the Amazon Lex V2 Developers guide to continue building your Lex V2 bot.
- Adding a language
- Adding intents
- Adding slot types
- Testing a bot using the console
- Creating versions
- Built-in intents and slot types
- Creating custom slot types
- Using a AWS Lambda function