From 95015ddea65d0a23f1275e7c2d68bebe5874eee2 Mon Sep 17 00:00:00 2001 From: Jake Date: Fri, 9 Jan 2026 11:14:52 +1300 Subject: [PATCH] docs: expand parameter descriptions for agent/wake hooks --- docs/automation/webhook.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/automation/webhook.md b/docs/automation/webhook.md index 6f568bf64..45a6ca4a2 100644 --- a/docs/automation/webhook.md +++ b/docs/automation/webhook.md @@ -41,8 +41,8 @@ Payload: { "text": "System line", "mode": "now" } ``` -- `text` required (string) -- `mode` optional: `now` | `next-heartbeat` (default `now`) +- `text` **required** (string): The description of the event (e.g., "New email received"). +- `mode` optional (`now` | `next-heartbeat`): Whether to trigger an immediate heartbeat (default `now`) or wait for the next periodic check. Effect: - Enqueues a system event for the **main** session @@ -66,16 +66,16 @@ Payload: } ``` -- `message` required (string) -- `name` optional (used in the summary prefix) -- `sessionKey` optional (default random `hook:`) -- `wakeMode` optional: `now` | `next-heartbeat` (default `now`) -- `deliver` optional (default `false`) -- `provider` optional: `last` | `whatsapp` | `telegram` -- `to` optional (provider-specific target) -- `model` optional (model override, `provider/model` or alias; must be allowed if `agent.models` is set) -- `thinking` optional (override) -- `timeoutSeconds` optional +- `message` **required** (string): The prompt or message for the agent to process. +- `name` optional (string): Human-readable name for the hook (e.g., "GitHub"), used as a prefix in session summaries. +- `sessionKey` optional (string): The key used to identify the agent's session. Defaults to a random `hook:`. Using a consistent key allows for a multi-turn conversation within the hook context. +- `wakeMode` optional (`now` | `next-heartbeat`): Whether to trigger an immediate heartbeat (default `now`) or wait for the next periodic check. +- `deliver` optional (boolean): If `true`, the agent's response will be sent to the messaging provider. Defaults to `false`. Responses that are only heartbeat acknowledgments are automatically skipped. +- `provider` optional (string): The messaging service for delivery. One of: `last`, `whatsapp`, `telegram`, `discord`, `slack`, `signal`, `imessage`. Defaults to `last`. +- `to` optional (string): The recipient identifier for the provider (e.g., phone number for WhatsApp/Signal, chat ID for Telegram, channel ID for Discord/Slack). Defaults to the last recipient in the main session. +- `model` optional (string): Model override (e.g., `anthropic/claude-3-5-sonnet` or an alias). Must be in the allowed model list if restricted. +- `thinking` optional (string): Thinking level override (e.g., `low`, `medium`, `high`). +- `timeoutSeconds` optional (number): Maximum duration for the agent run in seconds. Effect: - Runs an **isolated** agent turn (own session key)