schedule_workflow
Run a saved workflow on a schedule, such as every weekday at 08:00, with no chat open. Review it first with get_workflow and pass the version it showed as expectedVersion: each run uses exactly that version and does not start if the workflow has changed. At each time BCD runs it on that computer the way run_workflow does, with the same permissions; the computer must be on and connected then. Inputs are kept by BCD's server, so never put secrets in them. Emails the account when a run fails or does not start (notify: failures, the default), after every run (always) or never. Returns scheduleId and the next run time. Requires read, write and process permissions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days to run; omit for every day | |
| time | Yes | Local time to run, HH:MM in 24-hour time | |
| inputs | No | Values for the workflow's {{inputs}}, used at every run | |
| notify | No | When to email the account: failures (default), always or never | |
| deviceId | No | Computer name or id from list_devices. Optional with one computer online or a default set. | |
| timeZone | Yes | The user's IANA time zone, such as America/Los_Angeles; ask the user if unsure | |
| workflowId | Yes | A workflow saved with save_workflow on that computer | |
| expectedVersion | Yes | The version get_workflow showed |