Skip to main content

Build Child Nodes

Let's continue to follow the tree diagram to build the remaining child nodes and you are very close to completing your first chatbot!

Child Nodes are the nodes that come after the first node and they can be in the second layer, the third layer or even the layers after. Users cannot access any Child Node if they are not on the designated path.

Expected Outcome

You will get a complete conversation flow on your workspace. There will be in total 4 general nodes and 1 global node. You can also try your first chatbot in your WhatsApp Business account!

Make a booking
Make a booking

Sample Chatbot

A complete conversation tree
A complete conversation tree

Build 2nd-Layer Child Node - Webinar

Enter your Bot Builder and starting building your chatbot.
  1. Select your first node, and create a chatbot node following it.

  2. Go to "Node Inspector" and fill in the node details.

Fill in child node details
Fill in child node details

Create Payload Trigger

  1. Create a trigger that allows user to make a booking. Select Keyword / Payload, and match the payload to the one you created for "Webinar Sign up".

Create Response

  1. Create a response and create a text response to ask for customer's email.
  1. Remember to save the response and node.
  1. Create a new response. Select "Text" as the response type and enter the question. Finally, "Save" the response.

Build 3rd-Layer Child Node - Webinar

  1. Create a new node after customer has provided the email.

Create Any Email Trigger

  1. Create a new trigger. Select Predefined Trigger and then "Any Email".

Create Response

  1. Create a new response for customers have signed up with their email.

Build 2nd-Layer Child Node - Consulting

  1. Create a node following the "Greeting Message". This is for the customers who want to book for consulting.

Create Any Payload Trigger

  1. Create a trigger. Select Keyword / Payload, match the payload to what you have created in the "Greeting Message".

Create List Message Response

  1. Create a new response. Open the platform tab, select "Add Platform" and select "WhatsApp Cloud".
  1. Select "List Message" from the response type. Enter text content in Body.
  1. Scroll down and create a button for the booking time slot. You will need to create a case-sensitive payload for each button.
  1. Create another button for another time slot.

Build 3rd-Layer Child Node - Consulting

  1. Create a new node following "Book for Consulting". It's for customers who choose the first time slot.

Create Any Payload Trigger

  1. Create a new payload. Set up a payload trigger, and match the payload to the payload created for the first timeslot.

Create Response

  1. Create a new response for the customers who booked for the first timeslot.
  1. Finally, repeat step 16-18 to create another chatbot node for the second timeslot.
  1. Now your chatbot should have a completed structure.
A complete conversation flow
A complete conversation flow