How it works
The Agent-to-Agent Connection skill lets one raia agent hand off specific queries to another agent during a conversation. It uses the Functions Skill to call a generic A2A webhook, passing the user's question to the target agent and including the response back into the original conversation.
Key features
Cross-Agent Delegation
Let one agent delegate queries to another specialized agent without changing the user-facing channel.
Generic Webhook Endpoint
Use raia's built-in A2A webhook with any target agent's API key.
Seamless Integration
The target agent's response is automatically returned and woven into the original conversation thread.
How to configure it
- 01
Set up a Function under the Agent in Launch Pad (Functions Skill).
- 02
Provide Function instructions that tell the agent when it should call the other agent — these are essentially added to the core prompt so the AI knows what trigger phrase or intent to look for.
- 03
Set the Webhook URL to https://raia.app.n8n.cloud/webhook/e60457a0-bc4a-47c3-bae2-3b690db3dee1.
- 04
Configure the Function Parameters schema with a single required string property named query. This passes the user's original question into the target agent.
- 05
Add a Header Variable: Name = Call_Agent_APIKEY, Value = the API key of the agent you want to call.
Frequently asked questions
Can one agent call multiple other agents?
Yes — create a separate Function for each target agent, each with its own Call_Agent_APIKEY header pointing to the desired agent's API key.
Does the called agent know it is being called by another agent?
The target agent receives the query as a normal inbound message. It does not inherently know the caller is another agent unless you include that context in the query or the calling agent's instructions.
Is this secure?
Yes — each call uses the target agent's own API key over HTTPS. Only agents with valid keys can be reached, and the connection runs through raia's managed webhook infrastructure.
