我用python3编写了一个webhook,并在我自己的机器上部署了fulfillmentText中提供的文本可以正确显示,但是没有显示卡片的丰富响应。如何使用基本卡片显示我的回答?在
{
"fulfillmentText": "My train is in Hyderabad",
"fulfillmentMessages": [
{
"card": {
"title": "card title",
"subtitle": "card text",
"imageUri": "https://assistant.google.com/static/images/molecule/Molecule-Formation-stop.png",
"buttons": [
{
"text": "button text",
"postback": "https://assistant.google.com/"
}
]
}
}
]
}
这是我试图以卡片形式显示内容的代码这正是dialogflow aslo期望的响应格式 https://dialogflow.com/docs/fulfillment
这对我有用我以前不是作为有效载荷发送的
相关问题 更多 >
编程相关推荐