目前,当调用intent时,我正在调用webhook并从web服务获得响应,如下面的json结构所示 .
{
"speech": "this text is spoken out loud if the platform supports voice interactions",
"displayText": "this text is displayed visually"
}
这仅仅是文字 . 或者,例如,我必须以什么样的响应来显示列表 .
我尝试了dialogflow文档的丰富消息部分 . 那些结构不起作用 .
1 回答
要在Google列表中添加操作作为回复的一部分,您需要在回复中使用
data
字段以包含richResponse
以及应包含的systemIntent
以及包含列表信息的systemIntent
.您可以在github example repository上看到更多示例,但这里是显示列表的示例: