Amazon Lex :
Building voice and text-based conversational user interfaces for applications is made possible by the AWS service called Amazon Lex. With Amazon Lex, any developer can now incorporate sophisticated, natural language chatbots into their new and existing applications thanks to the same conversational engine that powers Amazon Alexa.
Any developer may instantly create conversational chatbots thanks to Amazon Lex. With Amazon Lex, you don’t need to be an expert in deep learning; all you have to do is establish the fundamental conversation flow when building a bot. Amazon Lex controls the conversation’s dialogue and dynamically modifies the participants’ responses. You may create, test, and publish your text or speech chatbot using the console. The conversational interfaces can then be added to bots on mobile devices, websites, and chat platforms (for example, Facebook Messenger).
1. Steps for creating a Lex bot
- Sign in to the AWS Mangement Concole and search for the service Amazon Lex.
- Make sure you are in the N.Virginia region at the top right.
- If this is your first bot, choose Get Started; otherwise Create on the Bots page.
- Under Create Your Own choose Custom Bot.
- Name the Bot : WeatherCatBot.
- For Output voice. Leave it as: None.
- Chage the Session timeout to 1 minute.
- Leave the IAM role as AWSServiceRoleFoeLexBots
- For COPPA choose No.
- Click on Create.
2. Steps for creating an Intent.
- Click on Create Intent button.
- On the Add intent pop-up click Create intent.
- Name Name CatWeather and click Add.
- Under Sample utterances open it up.
- Can my cat go outside
- Is it warm enough for my cat
- Can I let my cat out in {city_str}
- Should my cat wear booties in {city_str}
- Will my cat stay dry in {city_str}
3. Steps for creating a Slot.
- Scroll down to the Slot sections and expand it.
4. Steps for testing the bot in the Lex console.
- Expand the chatbot on the right. Where it says Test Chatbot.
- Successfully created the bot.