首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >对话流响应: google上的操作

对话流响应: google上的操作
EN

Stack Overflow用户
提问于 2018-12-06 00:21:40
回答 1查看 101关注 0票数 1

我有一个简单的响应,从对话流到谷歌助手的BasicCard.The响应是这样的:

代码语言:javascript
运行
复制
"payload": {
        "google": {
            "expectUserResponse": true,
            "richResponse": {
                "items": [
                    {
                        "simpleResponse": {
                            "textToSpeech": "Can you tell your TV's model number? (Eg. 42PFL7008S/12)",
                            "displayText": "Can you tell your TV's model number? (Eg. 42PFL7008S/12)"
                        },
                        "basicCard": {
                            "image": {
                                "url": "https://",
                                "accessibilityText": "The model number can be found here "
                            },
                            "title": "The model number can be found on here,
                            "subtitle": "It is also called Set-Type,"
                        }
                    }
                ],
                "suggestions": []
            }
        }
    }

在响应GA,Simulator中,我得到了以下错误:

代码语言:javascript
运行
复制
expected_inputs[0].input_prompt.rich_initial_prompt: the first element must be a 'simple_response', a 'structured_response' or a 'custom_response'.

GA响应我在simulator..Somewhere中看不到简单的响应,简单的响应是discarded..Is,DialogFlow的响应中有任何缺陷吗?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53636547

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档