---
title: Scheduled tasks
subtitle: Have AI check your docs and reader feedback on a schedule and write a report; when you allow it, changes go to a draft branch for you to review.
description: Scheduled tasks in ButterIX — write instructions, run them daily or weekly in your time zone, report only or allow changes to the docs, draft branches and review, the run history, AI quota and limits, and the matching API.
---

## What it does

A scheduled task is a set of instructions and a schedule. When it's due, AI reads the site's docs along with top pages, searches, 404s, negative feedback, and unanswered questions, does the task, and writes a report. For example:

<Prompt title="Find documentation gaps every week">
  Look at unanswered questions and searches without results from the last 7 days, group them by topic, list the 5 gaps most worth filling, and say which page each belongs on.
</Prompt>

<Prompt title="Check for outdated content every week">
  Check that the commands and options in the quickstart and the CLI reference agree, and list where they don't. Fix clear typos directly.
</Prompt>

## Create a task

Click "New task" under "Scheduled tasks" of the site (requires the editor role), or use the [API](/api-reference/automations/create-automation):

<ParamField path="Name" type="string" required>Up to 100 characters.</ParamField>
<ParamField path="Instructions" type="string" required>What to do, up to 2000 characters. The report is written in the language of the instructions.</ParamField>
<ParamField path="Schedule" type="object" required>Every day, or one day of the week, at a time and in a time zone you choose.</ParamField>
<ParamField path="Allow edits" type="boolean" default="false">By default it only reports and can't change any file.</ParamField>
<ParamField path="Enabled" type="boolean" default="true">When off, it no longer runs on schedule but can still be run by hand.</ParamField>

You can also run a task by hand at any time without affecting the next scheduled run.

## Changing the docs

With "Allow edits" on, AI edits files only where the task explicitly asks for it. All changes are committed to a new draft branch, `automation/…`, and never published directly. Nobody is there to approve, so changes with [content that needs approval](./console-agent.mdx#changes-that-need-your-approval) are not saved; the report says so. Click "Open in the editor" in the run history to review it in the [visual editor](../deploy/editor.mdx), then publish or discard it.

## Run history

Every run is recorded: its status, report, changed files and draft branch, start and end times, token usage, and the reason if it failed. Records are kept for 30 days.

## Usage and limits

| Item | Limit |
|---|---|
| Per site | 20 tasks |
| Frequency | At most once a day on schedule; by hand up to 10 times an hour, and never two runs of the same task at once |
| Per run | Up to 15 minutes |
| Quota | Each run counts as 10 [AI questions per month](../deploy/platform.mdx#quotas-and-usage); runs fail once the quota is used up |

Tasks use the provider, model, and key from the site's [Ask AI settings](./ask-ai.mdx#configure-it-in-the-dashboard) and can't run without them. The site's source files must be on the platform.
