如何使用对话框流程在Google控制台上获取多个操作响应?我模仿谷歌控制台上的动作,但只显示了两个响应,其中没有显示第三个响应
这是我的json回复
{
"source": "webhook",
"data": {
"google": {
"is_ssml": true,
"permissions_request": null,
"expect_user_response": true
}
},
"messages": [
{
"type": 0,
"speech": "peter Got around 28 marks in maths. which is ranked 1 among 3 candidate in class 1"
},
{
"textToSpeech": "peter Got around 28 marks in maths. which is ranked 1 among 3 candidate in class 1",
"platform": "google",
"displayText": "peter Got around 28 marks in maths. which is ranked 1 among 3 candidate in class 1",
"type": "simple_response"
},
{
"textToSpeech": "Working",
"platform": "google",
"displayText": "Working",
"type": "simple_response"
},
{
"textToSpeech": "Working 2",
"platform": "google",
"displayText": "Working 2",
"type": "simple_response"
}
]
}
这是我的控制台输出
任何有关这方面的帮助非常感谢
谢谢
关心赛义夫
2 回答
只接受两个简单的回复作为回应 . 如果您想要更多内容,则需要将文本合并为两个响应中的一个 .
正如您在AoG Responses docs上看到的那样,它被指定为一个要求:
因此,您的第三个气泡将无法显示,正如Google所预期的那样 .
正如尼克先前的回答中所建议的那样,你需要巩固你的文本并将所有内容包装在你的2个泡泡中 . 在简单的响应中,您可以通过在需要的位置添加_1034042来进行换行 .
但是,在_1034043中,您可以访问有限的降价子集,如我提供的文档链接中所述,如下所示: