You will add some simple conversations to your bot.
There are two ways to add conversations: Dialog Tasks and Knowledge AI. We will start with Knowledge AI, which is a simple question and answer. Go to Build>Conversational Skills>Knowledge AI and choose to Get Started.
To create a new FAQ, select Add Intent. Next, you will ask a question and provide a response. Select Save when you are done.
Dialog Tasks are more complex than the Knowledge Graph. They allow you to create elaborate conversation flows. Dialog Tasks are composed of nodes. Expand the NODE TYPES to review each node available.
Entity Node These are used to collect unique information from your user like their name or an account number.
Confirmation Node Allows you to prompt the user for a yes or no answer. It helps in the verification or allowing users to accept or decline a choice.
Message Node Used to deliver a message to the user. For example, How can I help you? I hope you're having a great day, etc.
BotAction Used to add Service nodes for making API calls, Script nodes for using JavaScript, and Logic, Webhook and Process nodes.
Form Node Lets you collect mulitple pieces of user information.
Go to Build>Dialog Tasks>Create Dialog
To add nodes, use the plus sign and select the type of node you want to add.
The easiest way to get started is to build something and use Talk to Bot and the Debugger (bug icon) to see how it works. The Debugger will allow you to see where problems occur.
You can watch as the nodes of the Dialog Task are executed. If the bot encounters any problems, they will be marked with a red error label. That tells you where to look to find errors in your Dialog Task. Usually, the problem has to do with an error in your code (like in a Service call, context reference or JavaScript).
Next, you will make an API call.