0
ユーザーに複数の返信を返すことを検討しています。例えば、これは画像とテキストブロック、テキストブロックとリストです。Facebook Messengerボット、複数のメッセージやペイロードを返す
これまでのところ、これを行う方法を見つけることができませんでした。ペイロードのいずれかが表示されないか、完全に失敗するかのいずれかを試してみてください。私は間違って行くよどこに
{
speech:"myMessage",
displayText:"myMessage",
data:{
facebook:{
"attachment": {
"type": "template",
"payload": {
"template_type": "list",
"top_element_style": "compact",
"elements": [
{
"title": "£10",
"image_url": "http://example.com/example.jpg",
"subtitle": "An amazing t-shirt"
},
{
"title": "£30",
"image_url": "http://example.com/example.jpg",
"subtitle": "Another amazing t-shirt"
},
{
"title": "£40",
"image_url": "http://example.com/example.jpg",
"subtitle": "An amazing t-shirt"
}
]
}
}
}
},
contextOut:[],
source:"webhook"
}
任意のアイデア:ここ
は、テキストブロックとリストを表示する試みの例ですか?