Integrations allow you to connect your IVA to external services to perform dynamic operations like fetching data, posting data, or performing some business logic over the collected entities from the IVA.
Our Conversation Studio tool supports two types of integrations. They are
Code Step provides an option of Code Editor where you can write your custom python code to communicate with the external service and execute the business logic.
Code Step is a type of step which contains all the business logic to integrate a function.
Code Editor is a feature using which we can write our Python code and integration functions. The supported programming language is Python 3 and above. If any syntax errors or exceptions are raised by the main function, this will result in a Bot Break message.
Stages to add your APIs –
Static Step provides an option for integrations. In this mode of integration, you provide an API URL to which the entity data will be passed as a POST request with a JSON payload. The API URL is then expected to return the bot response in a JSON format.
It is important to choose the right type of integration for your use case as this will increase the speed of shipping the IVA and also help in long-term maintainability.
In most cases, you should be using Code Step’s Code Editor. Here are some sample scenarios:
This should only be used in very complex cases where a middleware service needs to be built or the code is too complicated. Some scenarios where you should be using the API integrations are: