Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Integration #33

Open
saraalmamaria opened this issue Apr 8, 2019 · 1 comment
Open

API Integration #33

saraalmamaria opened this issue Apr 8, 2019 · 1 comment

Comments

@saraalmamaria
Copy link

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?

@majumdartanmay
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants