Integrations using JSON API
It is possible to integrate with your backend using JSON API plugin. It allows you to take data out of the bot to your CRM or even spreadsheet. You can use it with any REST API endpoint that supports the following methods:
Below is an example of a HTTP request in action using JSON API plugin; this is an example of a bot that captures lead information and sends it over to a CRM to process further:
As the name suggests, it sends out request in a JSON format. Below is a list of properties supported by the JSON API plugin:
|URL||The destination endpoint where the HTTP request is sent.|
|Headers||Optional information as required by the endpoint server to process the request.|
|Query JSON||Query string parameters, it can also be sent directly via the URL.|
|Body||The actual content that is sent out.|
|User Attribute||Name of the user attribute where the result returned from the server will be stored.|
As per the table above, the result returned from the server can be stored in a user attribute. It can be useful to print or implement logic based on dynamic values.
In a nutshell, JSON API plugin allows you to implement the following use-cases:
- Retrieve dynamic content.
- Create server-side integrations, where it will send data to an endpoint whenever a conversation reaches a certain point.
- Trigger an event.