ProjectAna icon indicating copy to clipboard operation
ProjectAna copied to clipboard

API Integration

Open saraalmamaria opened this issue 6 years ago • 1 comments
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?

saraalmamaria avatar Apr 08 '19 05:04 saraalmamaria

Hi, When you create a new node, double click on the node and go to Node Info

  1. Select node type as ApiCall
  2. Put your desired variable name .
  3. In the API details section, select the API method (as in POST, GET, PUT etc)
  4. In Headers, put Content-Type:application/json
  5. In API url , put your API's url
  6. In the fallback node section, put the ID of a node where you would like to transfer the control , if the API call fails.
  7. 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)
  8. 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.

majumdartanmay avatar Apr 26 '19 06:04 majumdartanmay