How to build a chatbot in cocohub? Here are 4 basic concepts to get you starting on the platform: node, transitions, say, and navigation.
When building a chatbot, the node is the most basic part. Visually, it’s similar to a brick, so think about it as a building block. Here, we will use it to describe different parts of the system.
So, any part of the conversation added to your bot, is represented visually by boxes on the builder.
The transitions are the connecting lines you draw from each nodes’ port to another port in a different node. Of course, it’s super important to connect at least one transition to each port, unless you want the conversation to end at that node.
When you build a chatbot, “Say” is what the bot says. An “empty” node, where you can write anything you’d like your bot to say. Use it in case you’d like to write something from scratch, and not use existing components. If you ask a question inside the node, you should connect it to the next navigation node.
What do you expect the user to say. In other words, it’s a node that will direct your user to the appropriate next part in the conversation, according to the intents you’ll choose to place inside it. In addition, the last intent inside this node will always be “Anything else”. Here, the conversation will take the user to the next node – even if what they say doesn’t fit into the options you’ve listed above it.
For example, you’ve created a say node and connected it to a navigation node. Now, add a “yes” intent, “no” intent, “continue” and “stop”. Each one of them will lead the user to a different part in the conversation, according to the next nodes you connect.
By using intents, we’re understanding what the user is saying to the bot.
After nailing the part where the chatbot speaks – the “Say” – now we go to the Navigation – the part in the conversation when the user speaks.
To understand how you create and manage intents, use this guide.