A2A Server Trigger icon

A2A Server Trigger

Expose this workflow as an Agent2Agent (A2A) agent

A2A Server Trigger

AI-generated

Summary

Expose the workflow as an A2A agent over GET and POST webhooks. GET returns an Agent Card; POST accepts JSON-RPC 2.0 message/send or message/stream requests and passes the submitted message to the workflow in json.a2a.

Inputs

  • Webhook Path (required) — Path segment for the agent webhook; defaults to a2a.
  • Agent Name (required) — Name advertised in the Agent Card; defaults to n8n A2A Agent.
  • Description — Agent description advertised in the Agent Card.
  • Version — Agent version advertised in the Agent Card; defaults to 1.0.0.
  • Public Base URL — URL advertised in the Agent Card. If empty, the node uses its detected webhook URL, then falls back to a localhost URL.
  • Enable Streaming — Advertises SSE streaming capability in the Agent Card. The handled message/stream request receives the same immediate task response as message/send.
  • Enable Push Notifications — Advertises push-notification capability in the Agent Card.
  • Skills — Optional list of skills with required ID and name, plus optional description, comma-separated tags, and comma-separated examples. Tags and examples are split into trimmed, non-empty list entries.

Output shape

On valid POST message requests, emits one workflow item under json.a2a containing the request method, generated task ID, context ID, extracted text, original message, and generated task.

GET returns the Agent Card in the webhook response and emits no workflow item. POST responses use HTTP 200 with a JSON-RPC result or error; invalid requests and unsupported methods do not emit a workflow item. The v0.3 Agent Card path is /.well-known/agent-card.json, with /.well-known/agent.json as a legacy alias. The generated task is immediately marked completed and echoes the submitted text as its result.

Links

Discussion