A2A tutorial
Trigger an agent via A2A from an external agent.
To trigger a Retool agent from an external agent via the Agent-to-agent (A2A) protocol, ensure your agent has the necessary configuration and tools to work with your external agent.
This tutorial walks you through the process to stand up an A2A-compliant agent with Crew AI and use A2A to trigger a web research agent.
1. Create a Retool agent
Your agent will need a web browsing or URL fetching tool. You can follow the instructions in the Agents tutorial, or use the instructions below to create a minimal agent example.
- Select the Agents tab in the top navigation bar.
- From the All agents page, click the + Agent button.
- Select Start from scratch and click Create.
- In the Agent name field, enter
A2A test. - In the Description field, enter
Retool A2A web research assistantand click Create. - On the Agent Configuration page, click Add Tool and add the Search Web and Get Webpage Content tools.
You may be required to set up a resource for web searching if you do not already have one created. Refer to the Connect to Tavily Web Search guide for detailed instructions.
2. Turn on A2A
On your agent's Configuration page:
- Click the A2A trigger.
- Toggle the A2A switch on.
You will need the Endpoint and API key for the next step. Refer to the Set up an A2A trigger guide for more information.