Skip to main content

Build the First Node of a Conversation Tree

What comes after the Tree? The Node.

A Node is a set of message response(s) that can be triggered by following a designated path and trigger. A tree is basically layers of connected tree nodes. The First Node usually refers to the first message response of a Chatbot, and it is always a Tree Node.

In the following time, we are going to adopt the following conversation tree diagram as the skeleton of your first chatbot:

Sample tree diagram
Sample tree diagram
note

Both chatbot reply and final result are nodes while the user action is the trigger that can leads you to those nodes following the correct path. The whole structure is a conversation tree.

Now, let's build your first tree node!


What is your Result?

Your first tree node
Your first tree node
PropertyDescription
Successful Result
You should be able to find your created first node in your workspace.

Getting Hands-on

Enter your Bot Builder and start working on your chatbot.

Add Your First Node

  1. Select "+" on right top corner of workspace.
  2. Select "+ Tree Node".
Add Tree Node
Add Tree Node
  1. After that, a panel will be revealed on the right. This is the Node Inspector.
  2. Fill in the node name and description.
Fill in node details
Fill in node details

Build Response

  1. Scroll down to "Responses" and click "+ New Response". Now, we are going to create the response of our first node, that is "Hi, what do you want to do?"
Add response
Add response
  1. A new window of Response Builder will be opened. Click "+ New Response" to add your response.
Click + New Response
Click + New Response
  1. Name your response and click "+ More Response" to select the correct message type.
Fill in response name
Fill in response name
  1. According to our tree diagram, our first node will be a question "Hi, what do you want to do?" plus two buttons Check Menu and Check Opening Hours & Address. Therefore, choose "Quick Replies" in response type.
Select response type
Select response type
  1. Now, fill in the question under Text.
Fill in text field
Fill in text field
  1. Click "+ Quick Reply" and fill in the details of the two buttons now.

  2. For the first button, it's Check Menu. So put that under Title, and put "CHECK_MENU" under Payload. This will help the chatbot identify the correct command when the users click that button.

Fill in quick reply details
Fill in quick reply details
  1. Click "+ Quick Reply" again and repeat the same steps for the second button.

  2. For the second button, it's Check Opening Hours & Address. However, since this name exceeds the character limit, we put down Check Shop Info under Title instead. Similarly, put "CHECK_SHOP_INFO" under Payload.

Fill in quick reply details
Fill in quick reply details
  1. Check the response preview on the right side to see if the response content is set properly.

  2. Click "Save" to save the response.

Response preview
Response preview
  1. Close the pop-up. Your response should be set up now under Responses.
Successful created response
Successful created response

Build Post Action

  1. Now, scroll down to "Save User Position" and check if it is toggled on.
Save user position
Save user position
note

Please note that this function is only applicable to core version v2.1 or above.

  1. Click "Save" at the very bottom to save this node!
  1. You should now have your first node created. Check if you can get a successful result ๐ŸŽ‰