10 How to confirm or update user input in Dialogflow ES
Dialogflow ES Quickstart Templates
One of the questions people ask is the following:
After user provides some input, I would like to either confirm the input or allow them to update it
Let us use the slot filling chatbot as an example.
Once the user provides all the input, we were only displaying the list to the user.
Add the following output contextsContexts are used in Dialogflow ES to manage the state of th... More to the book.flight intent
await_confirmation with a lifespan of 1
session-vars with a lifespan of 50
And also ask the user to confirm the inputs in the response.
If user says Yes, we will end the chat.
If the user says no, we ask them what should be changed
Suppose the user wants to change the return date. We will add an intent to do that. Note that the parameterBoth ES and CX support the concept of parameters. If entitie... More you use in the table should be the same as the one you used in the slot filling intent. This will make sure that the original value inside the session-vars context gets overwritten by the new value that the user has input.
In the same way, we can also allow the user to change the departure date
You can add more such intentsBoth Dialogflow ES and Dialogflow CX have the concept of int... More depending on your use case by following the same pattern
Let us test the bot using the Dialogflow Messenger integration.
Here is the use case where the user confirms immediately.
The user changes the return date
User changes the departure date
About this website
I created this website to provide training and tools for non-programmers who are building Dialogflow chatbots.
I have now changed my focus to Vertex AI Search, which I think is a natural evolution from chatbots.
Note
BotFlo was previously called MiningBusinessData. That is why you see that watermark in many of my previous videos.