openclaw/docs/automation
Walter Forkel c96577ec21 feat(hooks): add agentId to webhook mappings and /hooks/agent endpoint
Adds optional agentId field to webhook mappings and the direct /hooks/agent
endpoint, enabling multi-agent webhook routing.

Changes:
- Add agentId to HookMappingSchema (zod) and HookMappingConfig type
- Add agentId to HookMappingResolved, HookAction, and HookAgentPayload
- Pass agentId through mapping resolution, dispatcher, and HTTP handler
- Add superRefine validation: agentId must exist in agents.list
- Update docs with agentId parameter and usage examples
- Add unit tests for agentId in mappings and config validation

Use cases:
- Route incoming emails to a dedicated email-handler agent
- Send GitHub webhooks to a CI/CD agent with repo access
- Separate support inbox to agent with different persona

Closes #3432
2026-01-28 17:26:58 +01:00
..
auth-monitoring.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
cron-jobs.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
cron-vs-heartbeat.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
gmail-pubsub.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
poll.md refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
webhook.md feat(hooks): add agentId to webhook mappings and /hooks/agent endpoint 2026-01-28 17:26:58 +01:00