Send a Response to an AI Agent with a Callback
When an AI agent invokes an asynchronous integration registered as an agentic AI tool, the agentic AI tool must send the response through a callback when it completes. To send a response to the AI agent, add the AI Agent action in your integration and configure the operation Callback AI agent.
Applies to agentic AI tools that do not call Human in the loop. Callback is automatically implemented for Human in the loop. See Design an Integration to Call a Workflow.
How Callback Works
An AI agent can have any number of asynchronous tools in its list of tools. When the AI agent invokes an asynchronous agentic AI tool, it stops reasoning. You'll see the AI agent status Waiting for tool to process. The AI agent resumes reasoning only after it receives a response through the callback.
Example:
You have an AI agent that calls an asynchronous agentic AI tool. You have an asynchronous integration registered as the agentic AI tool. You also have a callback integration with the Callback AI agent action configured to send the response back to the AI agent.
Here's a summary of what happens:
- The AI agent invokes the asynchronous integration registered as an agentic AI tool. The AI agent waits for the response to be sent through the callback.
- The asynchronous integration calls an external application to perform an operation.
- The external application completes the operation, and invokes the callback integration to send the response back to the AI agent.
- When the AI agent receives the response, it continues reasoning.
For a detailed walk through of how callback works with an AI agent and agentic AI tool, see: Use Case: Send a Callback to an AI Agent for an Asynchronous Tool
Response to the AI Agent
{
"toolFlowId": "",
"conversationId": "",
"toolInstanceId": "",
"responsePayload": "",
}Add a Callback to an AI agent



