Event Bus
Build event-driven agent automation. Subscribe agents to system events and trigger workflows automatically when events fire.
What is the Event Bus?
The Event Bus is powered by Kafka and lets you build reactive automations. For example, when a "ticket_created" event fires, automatically run a support agent to generate a draft response.
Subscribe to Events
Subscribe to Eventbash
curl -X POST http://localhost:8000/api/v1/events/subscriptions \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"agent_id": "AGENT_ID",
"event_type": "ticket_created",
"input_template": "A new support ticket was created: {{event.title}}. Please draft a response.",
"enabled": true
}'Emit Custom Events
Emit Eventbash
curl -X POST http://localhost:8000/api/v1/events/emit \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"event_type": "data_ready",
"payload": { "dataset": "sales_q4", "records": 1500 }
}'Built-in Events
ACP emits events for agent runs, tool calls, budget alerts, lifecycle changes, and more. Subscribe to these to build monitoring and automation workflows.