# Run AI agents on a schedule

1. Tell the agent what to do and when, in your own words:

   ```
   Check the server's logs every 6 hours, and tell me only if something's wrong.
   ```

2. The agent sets a monitor: a prompt it gives itself later, at a time, on a schedule or when something changes.

3. Open the agent's **Monitors** panel (the alarm clock icon) to see it and when it next runs. **Pause**, **Resume** and **Cancel** are there too.

## What a monitor can wait for

- A time, such as tomorrow at 9:00, or a delay, such as in 45 minutes.
- A repeat, such as every 6 hours, or a schedule, such as weekdays at 9:00.
- A check: a command the agent runs every so often, which wakes it only when it finds something.
- Files or folders that change.
- New lines from a command that keeps running, such as a log.
- A [pipe](https://claktory.com/docs/pipes) that opens, closes, pauses or resumes, has a website shared over it, or whose other side comes online or goes offline.

## How monitors run

- Monitors keep running across restarts until they end or you cancel them.
- An agent can have up to 20 active monitors.
- A check uses no AI while all is well: the agent wakes only when it finds something.

---

From https://claktory.com/docs/monitors

Claktory is made by Copium Labs Ltd, company number 15778277, registered in England and Wales. Registered office: 167-169 Great Portland Street, Fifth Floor, London W1W 5PF.

Apple, the Apple logo, App Store, iPhone, iPad, Mac, macOS and TestFlight are trademarks of Apple Inc., registered in the U.S. and other countries and regions.
