Facebook Chat Bot Client
This is a UI Library for Facebook Bot.
Test your sample json and check its view without setting Webhook
Type these sample json on left side message panel
{
"message": {
"text": "hello, Developer!"
}
}
{
"message": {
"attachment": {
"type": "file",
"payload": {
"url": "https://petersapparel.com/bin/receipt.pdf"
}
}
}
}
{
"message": {
"attachment": {
"type": "image",
"payload": {
"url": "http://thiovan.com/wp-content/uploads/2017/01/javascript_banner-660x330.jpg"
}
}
}
}
{
"message":{
"attachment":{
"type":"template",
"payload":{
"template_type":"button",
"text":"What do you want to do next?",
"buttons":[
{
"type":"web_url",
"url":"https://petersapparel.parseapp.com",
"title":"Show Website"
},
{
"type":"postback",
"title":"Start Chatting",
"payload":"USER_DEFINED_PAYLOAD"
}
]
}
}
}
}
{
"message": {
"attachment": {
"type": "template",
"payload": {
"template_type": "generic",
"elements": [
{
"title": "Welcome to Dexterous",
"image_url": "http://www.wpwatercooler.com/wp-content/uploads/2013/08/cowboy-coder.png",
"subtitle": "We ve got the right hat for everyone.",
"default_action": {
"type": "web_url",
"url": "https://peterssendreceiveapp.ngrok.io/view?item=103",
"messenger_extensions": true,
"webview_height_ratio": "tall",
"fallback_url": "https://peterssendreceiveapp.ngrok.io/"
},
"buttons": [
{
"type": "web_url",
"url": "http:/dexterousapp.com",
"title": "View Website"
},
{
"type": "postback",
"title": "Start Chatting",
"payload": "DEVELOPER_DEFINED_PAYLOAD"
}
]
},
{
"title": "Welcome to Peters Hats",
"image_url": "https://talk.openmrs.org/uploads/default/original/2X/e/e5ee1282b1a90eaca3af2f3ecd0a94c84a651c35.jpg",
"subtitle": "We ve got the right hat for everyone.",
"default_action": {
"type": "web_url",
"url": "https://peterssendreceiveapp.ngrok.io/view?item=103",
"messenger_extensions": true,
"webview_height_ratio": "tall",
"fallback_url": "https://peterssendreceiveapp.ngrok.io/"
},
"buttons": [
{
"type": "web_url",
"url": "https://petersfancybrownhats.com",
"title": "View Website"
},
{
"type": "postback",
"title": "Start Chatting",
"payload": "DEVELOPER_DEFINED_PAYLOAD"
}
]
}
]
}
}
}
}
"message":{
"text":"Pick a color:",
"quick_replies":[
{
"content_type":"text",
"title":"Red",
"payload":"DEVELOPER_DEFINED_PAYLOAD_FOR_PICKING_RED"
},
{
"content_type":"text",
"title":"Green",
"payload":"DEVELOPER_DEFINED_PAYLOAD_FOR_PICKING_GREEN"
}
]
}