How to build the Decision Tree Bot
Now let us go through the intent definitions.
Default Welcome intent
Notice the following:
- the intent contains the Welcome event
- it includes the training phrase “Start Over”
- the custom payload has the JSON required to render suggestion chips for Yes/No choices
The EOC indicates end of conversation.
If the user answers Yes to the previous question, we will end the conversation.
If the user says No to the first question, we will set another output context and proceed to ask the next question.
We will follow the same pattern to fill out the rest of the intents.
Download agent ZIP file
You can get the agent ZIP file from my Dialogflow Messenger Example Bots course.
How to mark lessons as complete
Once you register for this course, you will be able to mark lessons as complete.
How to unlock all the lessons
Once you register for the course, make sure you click on the "Take this course" so you can unlock and watch all the lessons in the course.