JSON API connector - A Bot Inboxer (Standalone or Add-on) Add-on sends JSON data to any of your provided external URL. Once any specific event mentioned below is triggered, system will send json data to your provided webhook URL & it will wait for 10 second to get response. If system does not get response in 10 seconds, it will send another post request to your webhook. You can then process your data as you want. This feature can be used to connect our system with any third party app like Zapier or your own custom app.
Installing JSON API Connector Add-on is so Easy. Follow the below instructions to install the add-on.


JSON API connector sends JSON data to any of your provided external URL. Once any specific event mentioned below is triggered, system will send json data to your provided webhook URL & it will wait for 10 second to get response. If system does not get response in 10 seconds, it will send another post request to your webhook. You can then process your data as you want. This feature can be used to connect our system with any third party app like Zapier or your own custom app.
In the JSON API Connector Dashboard, you will see all of your created connections. And You can also View the activity report, update and delete your connections from Connector dashboard.

Connection Name: This is the field of what will be your connection name.
Webhook URL: This is the field of webhook URL to receive data. You can put any webhook URL in this field to receive data which you can get from any thirdparty apps like zapier or your own custom app. System will send data to your provided Webhook URL as JSON like below and it will wait for 10 seconds to get response.
{
"psid":"12765756",
"first_name":"Test",
"last_name":"User",
"subscribed_at":"2019-01-15 12:19:04",
"email":"testuser@gmail.com",
"labels":"Demo,Demo Label 1,new-label-test",
"page_id":"37674343246",
"page_name":"Test Page",
"phone_number":"+88025192523",
"user_location":"",
"postbackid":""
}
Select A Page: In this section you will see the page lists of your bot enabled pages of messenger bot. So you've to select page from which you want collect triggered data.
What Field Change Trigger Webhook: There are four triggered options in this section Email, Phone Number, Location and Postback ID. When anybody clicks on any of the options of quick reply, this section will be triggered. That means if you select email, so when any new email is collected through quick reply of messenger bot, then email will be triggered. Same for other two options. You can also select all three options. Make sure that it'll only trigger when user email, user phone number or user location is collected by the quick reply of messenger bot.
Which Data You Want To Send: There are different options of data of the user which are collected through quick reply and system will send selected data during triggered.
View Trigger Report: You can see the report of your connection if it's triggered. Here http Code: 200 means connection triggered successfully and have no error and you can see the data list in Post Data section which was send when the connection triggered. Just click on the view button and see last 10 activities of you connection.
Add Own Custom Scripts URL as Webhook URL Using PHP:
Suppose your domain is https://example.com and your script name is test.php, so your webhook URL will be https://example.com/test.php When the connection triggered system will send data to this URL. You can now see retrieved data in the file by adding below codes.
$webhook_data= file_get_contents("php://input");
$webhook_data_array=json_decode($webhook_data,true);