API Connector
API Connector action is used in the conversation flow for server-side integrations.
Last updated
API Connector action is used in the conversation flow for server-side integrations.
Last updated
Firstly, you have to choose API from the dropdown of API Connector. You will be shown those APIs which are in LIVE status.
Basically, by selecting the API it will be called upon.
It's time to make conditions based on API calling. It might be over API status conditions or attribute-based conditions. By clicking the Add Condition button this section will appear. By clicking the added condition, a new window will appear where we have to set the rules.
You can make conditions based on API status (marked in green) like 200, 400, 500, etc., and then jump to a specific node. If the condition is successful meaning when the API is called and status is 200, the node connected to the if success connector point will be triggered (yellow arrow). Otherwise the node connected to the Else connector point. (purple arrow)
We can also make conditions by using attributes. In the below example, if the API status is 200 & visitor's location is Chicago, the node connected with the success connector will be triggered.
Multilayer condition can be added based on use case. In the below example, chatbot will first try to check the first condition (marked in yellow). If it fails, than system will check the 2nd condition and if the rules are matched, the node connected with the else if connector point will be triggered. Otherwise the node connected with the Else connector will be triggered.