Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MarcL/e4c49b70b89cac8e255115374c485a31 to your computer and use it in GitHub Desktop.
Save MarcL/e4c49b70b89cac8e255115374c485a31 to your computer and use it in GitHub Desktop.
A Facebook Messenger response for Chatfuel showing a gallery with quick replies
{
"messages": [{
"attachment": {
"type": "template",
"payload": {
"template_type": "generic",
"elements": [{
"title": "Welcome!",
"subtitle": "We have the right hat for everyone.",
"image_url": "https://petersfancybrownhats.com/company_image.png",
"default_action": {
"type": "web_url",
"url": "https://petersfancybrownhats.com/view?item=103",
"webview_height_ratio": "tall"
},
"buttons": [{
"type": "web_url",
"url": "https://petersfancybrownhats.com",
"title": "View Website"
}]
}]
}
},
"quick_replies": [{
"content_type": "text",
"title": "QuickReply 1",
"payload": "<POSTBACK_PAYLOAD>"
}, {
"content_type": "text",
"title": "QuickReply 2",
"payload": "<POSTBACK_PAYLOAD>"
}]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment