Home / Dialogflow CX / ES2CX Migration Part 5: Translate the flowchart into Dialogflow CX
Dialogflow CX

ES2CX Migration Part 5: Translate the flowchart into Dialogflow CX

We can use the same flowchart to also create a Dialogflow CX agent.

Here is the key insight:

Visualize your flowchart as “chunks” of intent transition routes going from state A, which is represented by your input context, to state B, which is represented by your output context.

For the sake of simplicity, we will just use a single flow in our CX bot.

Has Input ContextHas Output ContextHow to Design
NoNoAdd a transition route into the Start page, no need for target page
NoYesAdd a transition route into Start page and the target will be the page which represents the output context
YesNoAdd a transition route into the page which represents the input context, and it will not have any target
YesYesAdd a transition route into the page which represents the input context, and the target will be the page which represents the output context

Let us now add these into our CX bot.

This is the high level view of the flow diagrm

Add an intent route for identify.vertebrate in the Start page. It will transition to the await_has_fur page.

Add an intent route to await_has_fur page for the Yes answer

Add an intent route to await_has_fur page for the No answer

Add an intent route to await_has_feathers page for the Yes answer

Add an intent route to await_has_feathers page for the No answer

Add an intent route to await_internal_fertilization page for the Yes answer

Add an intent route to await_internal_fertilization page for the No answer

Add an intent route to await_gills page for the Yes answer

Add an intent route to await_gills page for the No answer

So we have translated the flowchart into a Dialogflow CX bot, and as you can see, it is a fairly straight forward process.

Demo

Let us take a look at our bot inside the Dialogflow Messenger integration

<— End of article —>


This website contains affiliate links. See the disclosure page for more details. 
Check out the Learn Dialogflow ES and Learn Dialogflow CX courses if you would like to learn Dialogflow in depth.
"The magic key I needed as a non-programmer"

The custom payload generator was the magic key I needed (as a non-programmer) to build a good demo with rich responses in DialogFlow Messenger. I've only used it for 30 minutes and am thrilled. I've spent hours trying to figure out some of the intricacies of DialogFlow on my own. Over and over, I kept coming back to Aravind's tutorials available on-line. I trust the other functionalities I learn to use in the app will save me additional time and heartburn.

- Kathleen R
Cofounder, gathrHealth

Similar Posts