> ## Documentation Index
> Fetch the complete documentation index at: https://helpdesk.magica.com/helpdesk/llms.txt
> Use this file to discover all available pages before exploring further.

# How do scheduled tasks work?

A scheduled task runs a prompt for you automatically, once or on a repeating schedule. Use it for things like a daily briefing, a weekly report, or a reminder.

Open **Scheduled** in the left sidebar, or go to [magica.com/chat/scheduled](https://magica.com/chat/scheduled).

## Create a scheduled task

1. On the **Scheduled** page, select **New scheduled task**.
2. Choose **Create with Magica** to describe what you want in a chat, or **Set up manually** to fill in the form yourself. You can also start from the **Templates** tab.
3. Enter a **Name** and a **Prompt** that says what Magica should do each time.
4. Under **Repeats**, choose how often it runs, then set the time and **Time zone**.
5. Under **Each run**, choose **New chat each run** or **Continue one chat**.
6. Optional: choose a **Model**, and turn on **Email me after each run**.
7. Select **Create**.

To schedule an existing task, open its **⋯** menu in the sidebar and select **Schedule**. Choose **Continue this chat** to have each run add to that chat.

## How often it can run

Under **Repeats**, you can choose **Once**, **Every few minutes**, **Hourly**, **Daily**, **Weekdays**, **Weekly**, **Monthly**, or **Yearly**.

* **Every few minutes** runs every 15 or 30 minutes. You can have up to 3 of these tasks.
* **Monthly** and **Yearly** tasks set to a day a month doesn't have, such as the 31st, run on that month's last day.
* You can have up to 50 scheduled tasks in total.

## New chat or the same chat

* **New chat each run:** each run starts fresh, so write a prompt that includes everything it needs.
* **Continue one chat:** each run adds to the same chat, so Magica sees the results of earlier runs.

## Pause, edit, or delete a task

Open the task's menu on the **Scheduled** page, or open the task itself:

* **Run now** starts a run right away.
* **Pause** stops future runs, and **Resume** turns the task back on. Resuming schedules the next run from now.
* **Edit** lets you change the prompt, schedule, model, and other settings. You can also turn the task on or off with the **Active** switch.
* **Delete** removes the task.

## Credits

Each run is a full Magica task and uses credits from your balance, just like a task you start yourself. Tasks that run often use more credits. If you don't have enough credits when a run is due, that run doesn't start.

Check your balance and plan options on the [pricing page](https://magica.com/pricing).

## When a task stops running

A task shows a status on the **Scheduled** page:

* **Paused after failed runs:** the task paused itself after 3 scheduled runs failed in a row. Fix the cause, then turn it back on.
* **Chat deleted:** the chat the task continued was deleted.
* **Completed:** a one-time task has run.

Run history is kept for 90 days.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.