Hi Team, Good Morning.
Currently, I need to fetch almost 400.000 different files, Right now im doing API calls from my Dialogflow cx and then responding properly.
I decided on DFcx and not genAI agent/ data stored because having 400.000 files could be expensive and also will take a long time for searching after ingestion.
Right now I have come to a situation where I would like to ask a question in different ways that the flow can't understand sometimes. So im searching for recommendations to address this issue.
Do you know if, for example, I can use genAI to understand the customer query and then use that Genai, not to respond but to call an API? and then, having this json response provide a response?
And this could be addressed with Dialogflow? or should be addresed with Vertex AI? What do you think?
Hi @Mizar,
You can leverage the strengths of both Dialogflow and generative AI to create a more powerful and flexible chatbot.
Here's a general workflow on how you might achieve this:
Query Generation Optimization:
3. API Call:
Personalized Responses: Leverage user information (if available) and conversation history to tailor the GenAI-generated responses
Example:
Customer Query: "Show me the cheapest flights to London next month, departing from New York."
NLU (Dialogflow): Extracts entities: city: London, time: next month, departure_city: New York, intent: find_flights
Query Generation (GenAI):
Prompt: "Generate an API query to find the cheapest flights to London next month, departing from New York. The API expects parameters for 'destination', 'departure_date_range', and 'origin'."
Generated Query: { "destination": "London", "departure_date_range": "2024-09-01,2024-09-30", "origin": "New York" }
API Call (Dialogflow): Sends the generated query to a flight booking API.
Response Processing: Parses the JSON response from the API.
Response Generation (GenAI):
Key Considerations:
I hope the above information is helpful.
@ruthseki As soon as my datastore takes the first query, I cant control the output or what it does. How can I achieve this? or is not possible?
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |