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

Use case: Dialogflow CX chatbot Customize summarized prompt

I require the response from Dialogflow CX to include both information and a link or URL relevant to the query, regardless of whether I explicitly request the URL. Currently, the issue I encounter is that the response does not contain a URL unless I specifically ask for it in the question. I aim for the URL to be included in the response automatically, utilizing the Dialogflow search feature to retrieve relevant information from the datastore.
Requesting your guidance @xavidop  and @harlanh
Thanks in advance

sampleimg.png

Solved Solved
1 4 598
2 ACCEPTED SOLUTIONS

Hi,

You will have to use a data store and a data store handler to do that and specify the link minimum to 1:

xavidop_0-1711362439998.png

Best,

Xavi

 

View solution in original post

Yes, and to extend Xavi's answer, the text response will not have the URL by default. The response object is designed for the Dialogflow web UI widget. You can either extract the URL from the response object manually, and append it, or there's a tricky way to use an LLM Generator to rewrite the response, including the URL, which works most of the time (but not all of the time, in my experience).

View solution in original post

4 REPLIES 4

Hi,

You will have to use a data store and a data store handler to do that and specify the link minimum to 1:

xavidop_0-1711362439998.png

Best,

Xavi

 

Yes, and to extend Xavi's answer, the text response will not have the URL by default. The response object is designed for the Dialogflow web UI widget. You can either extract the URL from the response object manually, and append it, or there's a tricky way to use an LLM Generator to rewrite the response, including the URL, which works most of the time (but not all of the time, in my experience).

yeah! good addition!

I've included the URL, but it doesn't appear in the response. When you refer to using the LLM Generator, I assume you're talking about utilizing the generator in the Datastore. Could you please provide the format for the text prompt for my use case?