Hi,
On Dialogflow CX, using the end-user query, I want to go on a new page, and from this new page I want to look for an answer using the data store of this page. For now, it seems like the end-user first has to ask the question on the first page, then using intent recognition it leads to the page with the data store and the end-user has to ask the question again for the chatbot to use the data store to generate an answer.
I am using different data stores on the same flow, so I want to first recognize the intent to search in the right data store.
How to only ask the question once to the chatbot?
I imagine that we could store the end-user query as a parameter in the first page and use it as an input once the intent has been recognized and we're on the right page, but how to do that?
Many thanks in advance!
Hi @yzer144,
Welcome to Google Cloud Community!
A workaround that you may try is to leverage session parameters to capture and re-use user queries across pages, enabling a more seamless and natural conversational flow. Here’s how:
1. Capture User Query as a Session Parameter:
2. Set Up Intent Recognition and Page Transitions:
3. Use Session Parameter in Data Store Query:
Here’s an example:
In addition, here is a reference that you may use as a guide in using session parameters in Dialogflow CX.
I recommend following best practices for Dialogflow CX as well.
I hope the above information is helpful.
I have similar user case where i have multiple datastore at different pages. When specific type of question is asked, i want the intent recognition to detect it and route it to different pages where a more specialized datastore at that page can answer the query.
I followed @ruthseki your steps and was able to capture the user query from a previous page. But i was stuck at this stage as in your example
How can I transition to a new page while simultaneously triggering the datastore using the captured query? Currently, I can detect the intent and navigate to the new page. I can print out the last user query in the "Entry Fulfillment", but I can't seem to use the query to trigger the datastore, no matter what I try.
Thank you in advance!
Hey guys,
I'm in this exact situation @edmen456, I don't know how to make the data store take "userQuery" as input without waiting for other user input. It seems like the data store search is not triggered until the end-user feeds the chatbot with an input on the data store page.
Hi everyone,
I've got the exact same problem.
¿Any news about this? ¿Any way to trigger Data Stores with a session parameter or an already consumed user input?
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |