Randomizing the question using Dialogflow CX
Consider this math question which is part of the questionnaire:
“How many quarters are in $6.75?”
Suppose you want to change this question so that you don’t ask the same question every time.
A fairly simple way to do this would be to use the random function and combine it with conditional routes.
Here are some conditional routes which “reroute” the flow so that the final question asked is random

The choose_response page has three conditional routes:

This is the first conditional route, which asks the question “How many quarters are there in $6.75?” when the random number generated in the previous step is less than or equal to 0.33

This is the second conditional route, which asks the question “How many quarters are there in $7.75?” when the random number generated in the previous step is between 0.33 and 0.66

This is the third conditional route, which asks the question “How many quarters are there in $8.75?” when the random number generated in the previous step is greater than 0.66

About this website BotFlo1 was created by Aravind Mohanoor as a website which provided training and tools for non-programmers who were2 building Dialogflow chatbots. This website has now expanded into other topics in Natural Language Processing, including the recent Large Language Models (GPT etc.) with a special focus on helping non-programmers identify and use the right tool for their specific NLP task. For example, when not to use GPT 1 BotFlo was previously called MiningBusinessData. That is why you see that name in many videos 2 And still are building Dialogflow chatbots. Dialogflow ES first evolved into Dialogflow CX, and Dialogflow CX itself evolved to add Generative AI features in mid-2023
You must be logged in to post a comment.