docs-mintlify/docs/explore-analyze/scheduled-tasks.mdx
Scheduled Tasks let you run tasks on a schedule — or whenever you need them. Save a natural-language prompt for the agent and have Cube run it automatically on a schedule or on demand. Each run produces a chat thread you can open later to read the agent's answer. You can also ask the agent to create a scheduled task for you from any of your chats.
For example, you might schedule a task to "every weekday at 9am, summarize yesterday's signups, flag anything anomalous, and email me the results" and review the summary each morning.
Scheduled Tasks are scoped to a deployment — each task belongs to the deployment it was created in.
In the deployment sidebar, open Scheduled (the clock icon, below Explore). The page lists the deployment's tasks with their name, schedule, status, and description, and is searchable.
A task has:
Scheduled Tasks use the same schedule editor as dashboard scheduled refresh, offering these frequencies:
A timezone selector (defaulting to your browser's timezone) controls when the schedule fires; it is stored per task.
From the list, you can:
Clicking a task in the list opens its detail page. The header shows a breadcrumb back to Scheduled Tasks, the task name, a status tag (Manual, Active, or Paused), and the description, along with actions to Edit (pencil), Delete (trash), and a primary Run now button.
The page shows:
Each run creates a chat thread containing the agent's response. Open the thread in Analytics Chat to read the full answer, ask follow-up questions, or save results to a Workbook. Scheduled-run threads are marked in the Recent Chats sidebar with a clock icon (hover over it to see the "Scheduled task" tooltip).
A run shows as Running while it executes, then completes or fails. A failed run's thread shows a failure notice instead of an empty thread.
The task runs headlessly under the security context of the user who created it, so it sees exactly the data that user can access.
Beyond querying the semantic model, the agent in a scheduled run can:
Scheduled runs do not yet have data-model access — editing the semantic layer is currently available only in interactive chat.
You can also create and manage Scheduled Tasks conversationally in Analytics Chat — from any chat, not just ones started with Create with agent (that menu option simply opens a chat pre-seeded for this flow). Ask the agent to schedule, update, list, or delete tasks in plain language — for example, "schedule a daily summary of yesterday's signups at 9am" or "list my scheduled tasks."
The agent's actions render in the chat as labeled steps with a clock icon — "Creating scheduled task…" / "Created scheduled task", "Listed scheduled tasks", "Updated scheduled task", and "Deleted scheduled task".
The agent manages task definitions: when listing tasks, it can report each task's id, name, description, schedule, timezone, and enabled state. A task's run history lives on its detail page.