openclaw_cron_add_weekly
Schedule a weekly cron job that fires at a fixed day and local time, sending a message to an agent. Optionally deliver the result to a channel like Telegram or Discord.
Instructions
Create a cron job that fires once a week at a fixed local time. Synthesizes a cron-kind schedule and an agentTurn payload, then calls cron.add. Pass dayOfWeek (mon..sun), hour (0-23), minute (0-59), tz (IANA, defaults to Europe/Paris), and message. Optional channel delivery: pass channel + to.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Channel-specific recipient (Telegram chat id, email address, Discord channel id, …). Required when `channel` is set. | |
| tz | No | IANA timezone. Defaults to Europe/Paris. | Europe/Paris |
| hour | Yes | Local hour (0-23). | |
| name | Yes | Job name shown in the Control panel. | |
| model | No | Override the default model, e.g. 'claude-sonnet-4-6'. | |
| minute | No | Local minute (0-59). Defaults to 0. | |
| agentId | No | Override the default agent. Defaults to gateway's default. | |
| channel | No | Delivery channel name (e.g. 'telegram', 'email', 'discord'). Omit to keep the result internal. | |
| message | Yes | The text the agent receives at fire time. Used as the agentTurn `message` field. | |
| instance | No | Optional OpenClaw instance to route this call to (e.g. 'default', 'work'). Falls back to the active default instance, or the OPENCLAW_GATEWAY_URL/TOKEN env vars when set. List configured instances with openclaw_setup_list. | |
| dayOfWeek | Yes | Day of the week (lowercase 3-letter, e.g. 'fri'). | |
| deliveryMode | No | 'announce' broadcasts to channel; 'direct' DMs; 'none' keeps result internal. Defaults to 'announce' when channel is set. | |
| timeoutSeconds | No | Hard cap for the agent run. Default 900s (15min) — enough for cold-start + non-trivial work. |