简体   繁体   中英

Browse Carousel Card not working for google assistant in Dialogflow

I am trying out browse carousel card (in rich responses) feature available for Google Assistant in Google's Dialogflow.

I am getting only simple response as shown:.

Dialogflow 控制台

Pasted below the Raw API response (no instances of browse carouse card response).

    {
  "responseId": "ea913388-8753-458c-b033-396512d1af42-e13762d2",
  "queryResult": {
    "queryText": "show browse carousel",
    "parameters": {},
    "allRequiredParamsPresent": true,
    "fulfillmentMessages": [
      {
        "platform": "ACTIONS_ON_GOOGLE",
        "simpleResponses": {
          "simpleResponses": [
            {
              "textToSpeech": "sample text"
            }
          ]
        }
      },
      {
        "platform": "ACTIONS_ON_GOOGLE"
      },
      {
        "text": {
          "text": [
            ""
          ]
        }
      }
    ],
    "intent": {
      "name": "projects/leafy-winter-268704/agent/intents/bd457567-02c8-4e15-aca7-c32adfcb45f2",
      "displayName": "sampleintent"
    },
    "intentDetectionConfidence": 1,
    "languageCode": "en"
  }
}

This is the simulator response. The bot is getting disconnected when an intent with browse carousel is triggered.

谷歌助手模拟器响应

Am I doing it in the correct way? what can be done to resolve this issue?

The issue is that you're using a Browse Carousel, but attempting to test it with a Smart Display. Smart Displays don't support links, so they can't support the Browse Carousel.

You can switch to testing it with Android and you should be able to see the Browse Carousel.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM