How to Create Lex Chat-Bot
New Lex Chat-Bot
Here is the process to create New lex chat Bot-
Go to the Hello panel and click on Bots (Chat Bots) in the Manage section. And click on the Create Bot.
Select the Lex Bot, fill in all the details, and click save.
Then the option to create intent will open, which means the purpose of creating the bot.
Add the descriptions and click on save, It will open the option to add details for the bot. The first option is to add Client Query means what will be your user's first query or words.
Note: These are required values.
Here is an example of the most common queries of our business, you can add it as per your business. Add as many queries as possible, you should cover all the similar as well as different questions and queries. Note: The client queries should not be the same for multiple intents, for example: If you are providing {Hello and Hi} client queries for the first intent, then you cannot add on these client queries {Hello and Hi} other than the first one.
After this, the next option will be Initial Response- In this, the answer to the user's first query (say what will the bot respond after the user sends hi in the chat).
Note: Initial response is optional.
You have Seven list options for your user's initial query.
Text - Only text will be sent.
Buttons- we provide options to create three buttons so that the user can choose from them. Note: You can add a maximum of 3 buttons.
List- Here you can add a list of products, services, or various other options for users to choose from. The limit of items is 10, you can add at most 10 options.
Product - Here you can add your Catalog id and product id of a single product.
Product list - Here you can add your Catalog id and multiple products of different products.
Media - In media you can add photos, videos and documents to your chatbot.
choose from. The limit of items is 10, you can add at most 10 options.
CTA - This means Call To Action. We provide users with call-to-action buttons, in which when the user clicks on this button, he will be redirected to the URL you will insert in the column of the URL.
Here is the preview of the text option. Note: The character limit in text is 1024.
This is how you can add button options. You can see the preview on the right-hand side.
Note: The character limit on the button is 20 characters.
Here is how you can add List Button.
Here is how you can add product list, where you can your product and catalogue id.
Here is how you can add media. Note: Check the size and type of media supported.
After the Initial response, the next option is to add information on User Input:- This means the bot will ask these questions from your users after they respond to the initial response.
Note: Slot names should not be the same for multiple slots, it is a required category.
Like if you want to know the size of the product, and the type of the product from the users.
You can add as many questions here as you want to ask from the users.
Here you have to provide the following:
Name of the input (like size, type),
Input Type (we provide various options in the dropdown like number, alphanumeric, date, etc.),
Prompt Query- What query will the bot ask in the chat, and
Maximum Retry - How many times do you want to repeat the query from the user when the user provides the wrong answer.
Click on Add User Input, To get the input user prompt where you can fill the details which you need from your customers like name, numbers, etc.
You can give Name to your user input.
Now give the input type which is Required like name, number and alphanumeric,etc.
Write the Bot queries means the question that bot will ask from the users.
The Max Retry option means How many times bot will ask the option if client fills wrong information.Note: Limit you can set is Min o and max 3.
Click on Save and Next.
You can also create a new input type too. There are two options: The first one is "Blank" and the Second one is "Built-in".
In the Blank Option: You can add information as per your requirement.
There are two options: If you select the first option which is "Blank", then you will see there are two value type options. The first one is: 'Dynamic' and the second one is 'Fixed'.
In Dynamic- The Bot will accept similar or the same values as you will provide in the sample.
In the Fixed option- It will accept only the value you have mentioned in the sample, the exact value
For Dynamic Value Type:- We are providing some in-built slots but if a user wants to create any custom slot then they can use the dynamic type.
You need to add on 10-15 same types of sample values trained by a bot
For Example, we consider NAME as a slot type
1st character - u, 2 characters - Om, 3 characters - Joy, 4 characters - Anuj, 5 characters - Raman, 6 character - Rakesh
In Fixed: The Value you set the same will show.
If you want to take specific 3 to 4 country responses you can give specific names in fixed
For example - If your question is from which country you are?
India, USA, Australia -
If the answer is related to these 3 countries then the bot responds, other than the bot will not reply.
Click to save and the next button.
Functional call: [API Call: It is optional to create it]
Here you can add your API that you want to call on action.
Then add the success response that you want to show to the users in case of API success.
Add the failure response for the API
Use case : Then click on save and next
Closing response
You can create your closing response with different options like text, button,
product,product list, media, CTA, unassign bot.
Uassign bot means the bot will unassign himself from the chat and agent will be
assigned for the chat.
After completing the conversation this closing response will work.
After that save your response and click on save and next.
After completing all the steps. Click to Build option to save your all steps and create a bot.
After clicking on build option, don't go on another tab and wait for a while it will take some time to build a bot.
Click to the test bot button on top of your left corner and then test your bot.
After clicking the Test bot button - you can see this type of window and test all the steps of intents and all queries which you have added in the flow.
You can also refer this video: https://drive.google.com/file/d/1VyxHmEnfNtCoyWBiu3j9vfA-kMcbkGk6/view
New Lex Chat-Bot
Here is the process to create New lex chat Bot-
Go to the Hello panel and click on Bots (Chat Bots) in the Manage section. And click on the Create Bot.
Select the Lex Bot, fill in all the details, and click save.
Then the option to create intent will open, which means the purpose of creating the bot.
Add the descriptions and click on save, It will open the option to add details for the bot. The first option is to add Client Query means what will be your user's first query or words.
Note: These are required values.
Here is an example of the most common queries of our business, you can add it as per your business. Add as many queries as possible, you should cover all the similar as well as different questions and queries. Note: The client queries should not be the same for multiple intents, for example: If you are providing {Hello and Hi} client queries for the first intent, then you cannot add on these client queries {Hello and Hi} other than the first one.
After this, the next option will be Initial Response- In this, the answer to the user's first query (say what will the bot respond after the user sends hi in the chat).
Note: Initial response is optional.
You have Seven list options for your user's initial query.
Text - Only text will be sent.
Buttons- we provide options to create three buttons so that the user can choose from them. Note: You can add a maximum of 3 buttons.
List- Here you can add a list of products, services, or various other options for users to choose from. The limit of items is 10, you can add at most 10 options.
Product - Here you can add your Catalog id and product id of a single product.
Product list - Here you can add your Catalog id and multiple products of different products.
Media - In media you can add photos, videos and documents to your chatbot.
choose from. The limit of items is 10, you can add at most 10 options.
CTA - This means Call To Action. We provide users with call-to-action buttons, in which when the user clicks on this button, he will be redirected to the URL you will insert in the column of the URL.
Here is the preview of the text option. Note: The character limit in text is 1024.
This is how you can add button options. You can see the preview on the right-hand side.
Note: The character limit on the button is 20 characters.
Here is how you can add List Button.
Here is how you can add product list, where you can your product and catalogue id.
Here is how you can add media. Note: Check the size and type of media supported.
After the Initial response, the next option is to add information on User Input:- This means the bot will ask these questions from your users after they respond to the initial response.
Note: Slot names should not be the same for multiple slots, it is a required category.
Like if you want to know the size of the product, and the type of the product from the users.
You can add as many questions here as you want to ask from the users.
Here you have to provide the following:
Name of the input (like size, type),
Input Type (we provide various options in the dropdown like number, alphanumeric, date, etc.),
Prompt Query- What query will the bot ask in the chat, and
Maximum Retry - How many times do you want to repeat the query from the user when the user provides the wrong answer.
Click on Add User Input, To get the input user prompt where you can fill the details which you need from your customers like name, numbers, etc.
You can give Name to your user input.
Now give the input type which is Required like name, number and alphanumeric,etc.
Write the Bot queries means the question that bot will ask from the users.
The Max Retry option means How many times bot will ask the option if client fills wrong information.Note: Limit you can set is Min o and max 3.
Click on Save and Next.
You can also create a new input type too. There are two options: The first one is "Blank" and the Second one is "Built-in".
In the Blank Option: You can add information as per your requirement.
There are two options: If you select the first option which is "Blank", then you will see there are two value type options. The first one is: 'Dynamic' and the second one is 'Fixed'.
In Dynamic- The Bot will accept similar or the same values as you will provide in the sample.
In the Fixed option- It will accept only the value you have mentioned in the sample, the exact value
For Dynamic Value Type:- We are providing some in-built slots but if a user wants to create any custom slot then they can use the dynamic type.
You need to add on 10-15 same types of sample values trained by a bot
For Example, we consider NAME as a slot type
1st character - u, 2 characters - Om, 3 characters - Joy, 4 characters - Anuj, 5 characters - Raman, 6 character - Rakesh
In Fixed: The Value you set the same will show.
If you want to take specific 3 to 4 country responses you can give specific names in fixed
For example - If your question is from which country you are?
India, USA, Australia -
If the answer is related to these 3 countries then the bot responds, other than the bot will not reply.
Click to save and the next button.
Functional call: [API Call: It is optional to create it]
Here you can add your API that you want to call on action.
Then add the success response that you want to show to the users in case of API success.
Add the failure response for the API
Use case : Then click on save and next
Closing response
You can create your closing response with different options like text, button,
product,product list, media, CTA, unassign bot.
Uassign bot means the bot will unassign himself from the chat and agent will be
assigned for the chat.
After completing the conversation this closing response will work.
After that save your response and click on save and next.
After completing all the steps. Click to Build option to save your all steps and create a bot.
After clicking on build option, don't go on another tab and wait for a while it will take some time to build a bot.
Click to the test bot button on top of your left corner and then test your bot.
After clicking the Test bot button - you can see this type of window and test all the steps of intents and all queries which you have added in the flow.
You can also refer this video: https://drive.google.com/file/d/1VyxHmEnfNtCoyWBiu3j9vfA-kMcbkGk6/view