Schedule a workflow
writ_set_scheduleSchedule a saved workflow to run automatically on an interval or daily/weekly, and target specific functions with saved inputs for each run.
Instructions
Schedule a saved workflow to run automatically. Use every_minutes for an interval, or kind='daily'/'weekly' with time (HH:MM) and days. On a multi-function workflow (an API from writ_website_to_api) functions schedules ONE OR SEVERAL of its functions instead of the whole workflow, with saved inputs for them: each run executes those functions plus whatever they need (sign-in, a token, the search whose ids another reads) exactly once. The answer names also_runs and any missing_inputs to fill.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | IANA timezone for daily/weekly. | |
| days | No | ISO weekdays for weekly: 1=Mon .. 7=Sun. | |
| kind | No | interval | daily | weekly | |
| time | No | HH:MM local time for daily/weekly. | |
| inputs | No | Scheduled-run inputs {input_name: value} (text, number, true/false), used over the workflow's saved values for scheduled runs only. {} clears them; omit to keep them. Never secrets: those are workflow secrets or a persona. | |
| enabled | No | Turn the schedule on/off (default on). | |
| function | No | One function name (alias of `functions`); "" or "all" = the whole workflow. | |
| workflow | No | ||
| functions | No | Function names a scheduled run calls (from writ_list_workflows / writ_update_workflow). [] or ["all"] = the whole workflow. Omit to keep the current target. | |
| workflow_id | No | ||
| every_minutes | No | Interval schedule: minutes between runs. |