> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cortex-labs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create and run a routine

> Use a routine when you want to repeat a saved prompt on request or on a schedule. Each run creates a new personal chat.

Use a routine when you want to repeat a saved prompt on request or on a schedule. Each run creates a new personal chat.

## Before you begin

Choose a small task you can check, and decide whether you want to start it yourself or run it regularly. Write the prompt so that each new chat has the instructions it needs. Do not rely on the transcript of a previous run being present.

## Create the routine

1. Open **Chats → Routines**.
2. Create a routine and give it a recognisable name.
3. Enter the prompt you want each run to use. State the task, required material and output format.
4. Choose to run it on request, or configure its schedule.
5. Read the saved prompt and timing back before enabling scheduled work.

For example, adapt this prompt to your task:

> Prepare \[output] for \[audience] using \[permitted source]. State which material you could access, separate findings from inferences, and identify anything you could not complete. Use \[format and length].

Replace every bracketed field. A saved prompt does not supply missing access or source material.

## Run and inspect

Start the routine on request and open the new personal chat. Check the response against the intended task and source material. Follow up in that chat to correct or refine the result, or ask for an artefact.

The Routines list shows the schedule, whether it is on and when it last ran. After enabling a schedule, check the first resulting chat rather than assuming the saved schedule proves successful execution.

## Understand whose access is used

A routine runs as the person who switched it on, using that person's permissions. Check that its intended sources and task remain appropriate when access or responsibilities change.

Each run begins a new personal chat. Continue a particular result in its resulting conversation; do not assume a later run inherits those follow-up messages.

## Change or stop recurring work

Return to **Routines**, inspect the intended routine and update its saved prompt or schedule. Switch scheduled work off when you no longer want it to run. Read the saved state back and inspect a later result after a change.

For working with the result, see [Create, revise and export a chat artefact](https://docs.cortex-labs.ai/arc/create-and-share-artefacts/create-revise-export.md).


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