Integrations using JSON API
The plugin allows you to create server-side integrations or define your conversation logic based on dynamic content. You can make the following HTTP requests:
In addition, you can pass query string parameters, POST body, and headers to address a various type of custom implementation. It is possible to use user variables as parameters using the double braces syntax to pass user input and NLP response. Here is an example of how to use JSON API in order to pull data from a third-party API:
The response is saved in variable. This can be used inside the text element to print out the result in the following way:
JSON API 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.