ProjectAna
ProjectAna copied to clipboard
API Integration
trafficstars
I have inquire about the API Integration, I have build my Chatbot in Ana application and i want to integrate it with my API HTTP, how i can do that?
Hi, When you create a new node, double click on the node and go to Node Info
- Select node type as ApiCall
- Put your desired variable name .
- In the API details section, select the API method (as in POST, GET, PUT etc)
- In Headers, put
Content-Type:application/json - In API url , put your API's url
- In the fallback node section, put the ID of a node where you would like to transfer the control , if the API call fails.
- Now switch to 'Buttons' from Node Info. ( This is used by ANA to identify whether an API call has been successful or it has failed)
- If you want to check whether the API call was successful, put up a appropriate button condition with which , its certain that the API call was successful.