A Carousel With Two Buttons
In this example, we return a carousel with two buttons that link off to pre-determined messages within the platform.
{
"message":{
"raw":{
"attachment":{
"type":"template",
"payload":{
"elements":[
{
"title":"A ticket to the theatre",
"buttons":[
{
"type":"postback",
"title":"View this lot",
"payload":"@BP:MESSAGE:83510"
},
{
"type":"postback",
"title":"Place a bid",
"payload":"@BP:MESSAGE:83510"
}
],
"subtitle":"Did you want to bid?"
},
{
"title":"A £100 voucher",
"buttons":[
{
"type":"postback",
"title":"View this lot",
"payload":"@BP:MESSAGE:83510"
},
{
"type":"postback",
"title":"Place a Bid",
"payload":"@BP:MESSAGE:83510"
}
],
"subtitle":"Did you want to bid?"
}
],
"template_type":"generic"
}
}
}
},
"recipient":{
"id":"{{1.fbuser.fbid}}"
}
}
![Screenshot 2020-12-17 at 12.44.44.png 416](https://files.readme.io/285811b-Screenshot_2020-12-17_at_12.44.44.png)
Updated almost 3 years ago