Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

DialogFlow CX - Trigger a Data store using previous user's queries

Hi
I am trying to develop an agent with multiple data stores (from Vertex AI Search & Conversation). Imagine I have two data stores, one for books and one for food. I tried to do it in two steps:


1. I have an initial node to detect users' intent (whether the query is about food or books),

2. Then I route it to two different nodes, each one connected to one data store; let's call them data_store_book and data_store_food.

I have difficulty using the user's query of the first step in the second step. For example, in step 1, if the user asks: "Give me the list of the books!", I can send the flow to the data_store_book node, but I can't trigger the data store unless the user repeats the question.

I managed to pass the query from the first step to the second step (using "$request.user-utterance"). However, I need to trigger the data store somehow to use it in the 2nd node without requiring the user to repeat the query.

I tried to trigger the data stores inside routes by adding "data store response options" in the Agent responses of routes. (Please see the last item on the menu in the screenshot) However, it did not return anything.

hamidma_0-1711049603765.png

I would appreciate it if someone could give me some direction on how to resolve this issue. Thanks a bunch!

0 3 897
3 REPLIES 3

Hi, 

as you said, right now that is not possible. you will need to do that in 2 steps. I know this is not the ideal scenario but this is how it is designed. One thing that you can do is call a webhook after transitioning to call the data store but his is not like a "built-in" solution.

Best,

Xavi

@xavidop Thanks for the reply! 🙂

Hi @xavidop  How to call DataStore here using Webhook? which parameters to send? Appreciate your help.