At the end of this README, you can find the VideoTutorial.
This tutorial will cover the following aspects of building a chatbot:
-
Firstly, we will use the Amazon Lex service to create our ChatBot and configure it.
-
We will integrate a lambda function and see how we could add an extra layer to our code with the functionalities of Bedrock Claude LLM.
-
We will conduct testing to verify and observe the functioning of our ChatBot.
-
We will integrate our Bot into our website using Kommunicate. We will explore other options for integrating it with CloudFormation.
-
We add response cards to enhance the user experience and make interactions more intuitive.
-
Finally, we use DynamoDB to collect data from our ChatBot.
-
Intents as the name suggests, are a fundamental concept used to represent the purpose or goal of a user's input. Intents can be viewed as a verb, detecting what a user's intention is. For example, if you go to a pizza shop and order a pizza, your main intention is to order pizza, your purpose for going to the store is to get pizza. This works the same way for lex-powered chatbots. We must define intents so the bot can easily track or identify our goals during a conversation.
-
Utterances are examples of phrases or sentences that we might use to convey a specific meaning or request. For example, when we walk into the pizza store to order a box of pizza, a possible request we could make is "I want to order a box of pizza." These utterances are used to teach the chatbot how to understand and respond to what we are saying. The more utterance we give, the better the chatbot will be at understanding what we’re trying to say.
-
Slots are a collection of information that your prompt chatbot users to provide during a conversation with your bot. The bot will prompt the user to provide information for each slot, and once all of the required slots have been filled, the bot will be able to process the order and respond appropriately. Amazon Lex includes a variety of built-in slot types, including numbers, dates, countries, and many more. We can also define what sets of values are acceptable by creating our own custom slot types.
Important features of the AWS Chatbot service include the following:
-
Customize notifications: You can define and receive customized AWS service and application notifications directly in your chat channels. Custom notifications can be as succinct or comprehensive as you desire and use the same Amazon SNS-based mechanisms as default notifications.
-
Create custom actions: Custom actions transform your notifications into actionable items. A custom action appears as a button on your notifications. This button represents a Lambda function or CLI command that you define. You can use custom actions to retrieve telemetry information, run Lambda functions, run an automation runbook, and notify team members. When an issue arises, you can easily act directly from your notifications.
-
Search and discover AWS information: You can search and discover information about AWS services and your AWS resources by asking AWS Chatbot natural language questions. The answers provided in your chat channels are pulled directly from your AWS environments, AWS product documentation, and support articles. This makes it easier to locate your resources, find product information, and troubleshoot issues.
Autor/a: Javier Ramírez Moral
Curso: Administración de Sistemas MultiCloud con Azure, AWS y GCP.
Centro: Tajamar
Año académico: 2023-2024