Sending an Image card with a URL Button
In this example, the code would return an image card with a button that links off to the Bot Platform website.
{
"recipient": {
"id": "USER_ID"
},
"message": {
"raw": {
"attachment": {
"type": "template",
"payload": {
"template_type": "generic",
"elements": [{
"title": "The Bot Platform",
"subtitle": "Bots bots bots",
"image_url": "https://thebotplatform.com/assets/img/brand-logo-@2x.png",
"buttons": [{
"type": "web_url",
"url": "https://thebotplatform.com",
"title": "Website"
}]
}]
}
}
}
}
}

Updated about 4 years ago