Use Case: Send a Callback to an AI Agent for an Asynchronous Tool
We have an AI agent that calls an asynchronous tool. Let's walk through the integrations we have, the AI agent, the AI agent run, and the callback to the AI agent.
What we configured
We have an AI agent that calls an asynchronous tool.

For this example, we have an agentic AI tool, an integration that makes a wait call but you can make a call to a stored procedure, a bulk operation, or any other asynchronous operation.


We also configured the project and AI agent in the callback. 


Tip:
Take note of the Conversation ID. We'll need it to send the response back to the AI agent in the callback.Waiting for tool to process. The AI agent has this status until it receives a response.

Sending the Response with the Callback
The tool has processed what it needed. We run the callback integration that contains the Callback AI agent action to send the response back to the AI agent. To send the response we need:
- The conversation ID from the AI agent run. We got the conversation ID when we ran the AI agent, from the Test agent page.
- Tool Flow ID: The instance ID of the integration that was registered as an agentic AI tool and was run by the AI agent.
- Tool Invoke Event ID: Same value as Tool Flow ID. The instance ID of the integration that was registered as an agentic AI tool and was run by the AI agent.

We can now run the callback integration and specify the response.

In the Integrations Observe Instances page, we see that the ReAct pattern associated with the AI agent has received a callback. It has the Business Identifier Callback flow.

In the Agent instances page, we can see the AI agent succeeded.

