Schedule an automation
create_automationUse this when the user wants something done for them on a schedule — every day, on certain weekdays, or every few hours — e.g. 'every Monday at 9, summarise my sales sheet'. Creates a Xenition automation that runs on its own at those times, even when nobody is in this chat. Results appear in Xenition, and anything that would act in a connected app waits for the user's approval. Do not use for a one-off task now (use run_agent).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | for weekly: days like ['mon','thu'] | |
| name | Yes | a short name, e.g. 'Monday sales summary' | |
| task | Yes | what the agent should do each time, in plain words — e.g. 'summarise last week's rows in my Sales sheet and draft an update' | |
| time | No | HH:MM, 24-hour, for daily and weekly — e.g. '09:00' | |
| agent | No | optional agent slug from list_agents to run it; Xenition plans it otherwise | |
| every | No | for every: an interval like '30m' or '6h' (15 minutes minimum) | |
| timezone | No | IANA timezone for daily/weekly, e.g. 'Asia/Dhaka'; UTC if omitted | |
| frequency | Yes | daily, weekly or every |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| when | Yes | ||
| enabled | Yes | ||
| openUrl | No | ||
| schedule | Yes |