API Call
We developed the Call API skill to help you quickly call an API within your flow. You can then save and use the responses received from the external API in your chatbot's code and flows.
Request Options​
Calling an API involves making an HTTP request from Digital Agent to a named host on a server. The request aims to access a resource on the server. The following are the components of your request through which you will supply information to an API.
Body​
The request body is set in the interface below. Please ensure that your request body adheres to the syntax specified for the API you are calling.
Headers
Response
Memory
{ "body": <Response Body>, "status": 200 }
Success / Failure​
When a response returns a status code 400
and above, the request will fail and will execute the On failure
transition. All other status codes will result in success and will execute the On success
transition.
Templating​
Digital Agent supports templating in the body
and the headers
to access variables stored in memory. All bot
, user
, session
, temp
, and event
memory types are accessible via templating.
Confluence Cloud Migration Alert: Please refer to known issues you may encounter in Confluence Cloud: https://eitdocs.atlassian.net/wiki/x/wDGwAQ