Dialogflow CX - Only Returning Single Document (Datastore Integration)

 

Hello,

I am encountering an issue with Dialogflow CX connected to a datastore. Currently, when using the detectIntent method, only a single document is present in the response under queryResult -> responseMessages -> payload -> richContent.

Expectedly, I anticipate additional files to be returned in the response.

Here are the request details:

Request URL: POST https://dialogflow.googleapis.com/v3/projects/project/locations/global/agents/ada1d346-0a75-4d5e-a0d...

I would appreciate any insights or suggestions on how to resolve this issue and ensure that multiple files are returned as expected.


Response body :

 

 

{
    "responseId": "bbbf018a-5faa-4a83-8af0-53c1ee2a5884",
    "queryResult": {
        "text": "what's product management?",
        "languageCode": "en",
        "responseMessages": [
            {
                "text": {
                    "text": [
                        "I think you'll find this link helpful"
                    ]
                },
                "responseType": "HANDLER_PROMPT"
            },
            {
                "payload": {
                    "richContent": [
                        [
                            {
                                "type": "info",
                                "actionLink": "https://storage.cloud.google.com/foundational-pdfs/1ifVQwh1rk2tBUGEor6v1WfOnfHfUHuJA0QukMWV0YCU.pdf#page=1",
                                "subtitle": "Product Designer (PrD) : Responsable de concevoir l'expérience et l'interface utilisateur (UX & UI) du produit à l'aide…",
                                "title": "Product team members"
                            }
                        ]
                    ]
                },
                "responseType": "HANDLER_PROMPT"
            }
        ],

 

 

 

Solved Solved
9 6 300
1 ACCEPTED SOLUTION

You can also check the property "Maximum number of links":

xavidop_0-1711109326713.png

 

View solution in original post

6 REPLIES 6

Hi,

I think you will need to tweak the grounding level to get more information: https://cloud.google.com/dialogflow/vertex/docs/concept/data-store-agent#grounding

Best

 

Hi @xavidop 
Can we set it up programmatically / through the agent interface?

adilpresence_0-1711107210243.png

 

 

yes!

It is under Agent settings:

xavidop_0-1711107667504.png

 

Thank you for your assistance, but the issue persists even after setting the score to "very low"..

You can also check the property "Maximum number of links":

xavidop_0-1711109326713.png

 

Thank you @xavidop !