You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
* feat(hooks): add agentId support to webhook mappings
Allow webhook mappings to route hook runs to a specific agent via
the new `agentId` field. This enables lightweight agents with minimal
bootstrap files to handle webhooks, reducing token cost per hook run.
The agentId is threaded through:
- HookMappingConfig (config type + zod schema)
- HookMappingResolved + HookAction (mapping types)
- normalizeHookMapping + buildActionFromMapping (mapping logic)
- mergeAction (transform override support)
- HookAgentPayload + normalizeAgentPayload (direct /hooks/agent endpoint)
- dispatchAgentHook → CronJob.agentId (server dispatch)
The existing runCronIsolatedAgentTurn already supports agentId on
CronJob — this change simply wires it through from webhook mappings.
Usage in config:
hooks.mappings[].agentId = "my-agent"
Usage via POST /hooks/agent:
{ "message": "...", "agentId": "my-agent" }
Includes tests for mapping passthrough and payload normalization.
Includes doc updates for webhook.md.
* fix(hooks): enforce webhook agent routing policy + docs/changelog updates (#13672) (thanks @BillChirico)
* fix(hooks): harden explicit agent allowlist semantics (#13672) (thanks @BillChirico)
---------
Co-authored-by: Pip <pip@openclaw.ai>
Co-authored-by: Gustavo Madeira Santana <gumadeiras@gmail.com>
|
9 months ago | |
|---|---|---|
| .. | ||
| .i18n | 10 months ago | |
| assets | 10 months ago | |
| automation | 9 months ago | |
| channels | 9 months ago | |
| cli | 10 months ago | |
| concepts | 9 months ago | |
| debug | 10 months ago | |
| diagnostics | 10 months ago | |
| experiments | 9 months ago | |
| gateway | 9 months ago | |
| help | 10 months ago | |
| hooks | 10 months ago | |
| images | 10 months ago | |
| install | 9 months ago | |
| ja-JP | 10 months ago | |
| nodes | 10 months ago | |
| platforms | 10 months ago | |
| plugins | 10 months ago | |
| providers | 9 months ago | |
| refactor | 10 months ago | |
| reference | 9 months ago | |
| security | 10 months ago | |
| start | 10 months ago | |
| tools | 10 months ago | |
| web | 10 months ago | |
| zh-CN | 10 months ago | |
| CNAME | 10 months ago | |
| brave-search.md | 10 months ago | |
| ci.md | 10 months ago | |
| date-time.md | 10 months ago | |
| docs.json | 9 months ago | |
| index.md | 10 months ago | |
| logging.md | 10 months ago | |
| network.md | 10 months ago | |
| perplexity.md | 10 months ago | |
| pi-dev.md | 10 months ago | |
| pi.md | 10 months ago | |
| prose.md | 10 months ago | |
| style.css | 10 months ago | |
| tts.md | 10 months ago | |
| vps.md | 10 months ago | |
| whatsapp-openclaw-ai-zh.jpg | 10 months ago | |
| whatsapp-openclaw.jpg | 10 months ago | |