Overview
When you want to connect agents — allowing one agent to call another — you can use the raia Functions Skill and a shared webhook endpoint.
The Functions Skill passes the user's query to the target agent, receives its response, and includes that response back into the original conversation.
Set Up the Functions Skill
- 01
Open the agent you want to configure and navigate to the Functions Skill.
- 02
Click "Set up Function" to create a new function call.
- 03
Provide function instructions that tell the agent when it should call the other agent. These instructions are added to the core prompt so the AI knows when to trigger the function.
Configure the Webhook
Use the generic A2A webhook URL for the function endpoint:
https://raia.app.n8n.cloud/webhook/e60457a0-bc4a-47c3-bae2-3b690db3dee1Shared endpoint
Set Function Parameters
For this use case you only need to pass the question the user prompted into the agent. Use the following JSON schema for the function parameters:
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string"
}
}
}Add the Header Variable
Add a custom header so the webhook knows which agent to call:
Header Name
Call_Agent_APIKEY
Header Value
{ API Key of the Agent you want to call }
Keep the key secret