DEV Community

Cover image for I automated chatbot designer in Amazon Lex
Olawale Adepoju for AWS Community Builders

Posted on • Originally published at dev.classmethod.jp

I automated chatbot designer in Amazon Lex

Chatbots are being increasingly used by businesses to promote self-service and improve the customer experience at scale. Contact center chatbots automate basic consumer inquiries, allowing human agents to focus on more difficult problems. Amazon Lex may be used to create chatbots that provide interesting user experiences and lifelike discussions.

Introduction

Amazon Lex offers automatic voice recognition and language comprehension technologies that may be used to create excellent chatbots via an easy-to-use console. However, before you can construct a chatbot, you must first design it. The design step of the chatbot development process remains manual, time-consuming, and needs conversational design skills.

The automated chatbot designer extends Amazon Lex's simplicity and convenience of use by automatically surfacing a first bot design. It uses machine learning to evaluate caller-agent conversation transcripts and semantically organizes them around the most prevalent intents and related information. Instead of beginning from scratch, you may utilize the chatbot designer's intent to iterate on the design and reach your desired experience faster.

The automated chatbot designer can evaluate thousands of lines of transcripts in a few hours, saving time and effort. This helps to ensure that the intentions are adequately defined and separated by eliminating any overlaps between them. This allows the bot to better comprehend the user.

The automated chatbot designer aids in the creation of bots that comprehend user requests without confusion, therefore increasing the end-user experience by minimizing manual work and human mistakes at every stage of chatbot design.

Create a bot

Proceed to the AWS console and search for Amazon Lex in the search bar

Image description

  • Choose create bot

Image description

Select the start with transcript option as the creation method Give a bot name Give a description that is optional.

Image description

  • Select Create a role with basic Amazon Lex permissions and use this as your runtime role.

Image description

  • Click Next to advance to the language configuration.

Image description

  • Select the S3 bucket and path where the transcripts are stored. Or create a new S3 bucket and upload your folder.

Image description

Image description

Image description

  • Choose Done after selecting the S3 bucket

Image description

The Intents page displays all intents as well as example phrases and slots, while the Slot types tab displays all slot types as well as slot type values.

Image description

You can choose any of the intents to review the sample utterances and slots. For example, I chose ChangeSecurityQuestion.

Image description

  • Click on the associated transcripts to review the conversations used to identify the intents.

Image description

After reviewing the results, choose the intents and slot types that apply to your use case and click Add to English.

Image description

This adds the selected intents and slot types to the bot. You may now improve on this design by adding prompts, combining intents or slot kinds, and renaming slots.

Image description

  • Build and test the bot

Image description

Conclusion

The chatbot designer evaluates a conversation transcript for common intentions, connected words, and information that the chatbot needs to resolve issues (such as customer policy number, claim type, and so on). You must still iterate on the design to meet the needs of your business, add chatbot prompts and replies, connect business logic to satisfy user requests, and finally build, test, and deploy the chatbot in Amazon Lex.

Top comments (0)