# Schedule work for an Agent

> Have an Agent do something at a set time or on repeat, then pause, edit, run or delete the Schedule and check its runs.

Source: https://air.build/docs/agents/schedule-agent-work/

A Schedule gives an Agent instructions to follow at a set time: once, or on repeat. Each Schedule belongs to one Agent, and that Agent does the work. Anyone in the Team can add, edit, pause or delete any Schedule.

When a Schedule runs, nothing appears in chat by itself. The Agent gets the instructions and works on them. If it has something to tell you, it posts a message like any other. To see whether a Schedule ran, open it and look at **Recent Runs**.

## Find an Agent's Schedules

There are two ways in.

**From the Agent's profile.** Open the Agent's profile and tap **Schedules**. The row shows how many Schedules will run, or **None**. Paused Schedules aren't counted, but they're in the list. See [Edit an Agent's profile](https://air.build/docs/agents/edit-an-agent/) for how to open a profile.

**From the Schedules tab.** It sits beside your chat with an Agent, and beside a Project chat.

**iPhone**

In the chat, tap the tabs button in the top corner, then tap **Schedules**.

**Mac**

In the tabs beside the chat, click **Schedules**. On iPad it works the same way.

Beside an Agent's chat, the tab lists that Agent's Schedules. Beside a Project chat, it lists the Project's Agents with how many Schedules each has running. Tap an Agent to see its list.

Each row shows the Schedule's title, how often it repeats and when it runs next. A paused one says **Paused**.

## Add a Schedule

1. In an Agent's list of Schedules, tap **Add Schedule**. On iPhone, in the Schedules tab, it's the **+** in the tab's toolbar; in an Agent's list you opened from a Project chat's Schedules tab, it's the **+** at the top right.
2. Type a **Title**.
3. Under **Instructions**, write what the Agent should do each time.
4. Choose how often in **Repeat** (see the table below), then set the date, day or time.
5. Check **Time Zone**. It starts as your device's time zone. Tap it to search for another.
6. Tap **Save**.

Under the fields, the form reads the Schedule back in a sentence, so you can check it before you save.

| Repeat | What you set |
| --- | --- |
| **Once** | A **Date** and a **Time**. |
| **Every Day** | A **Time**. |
| **Weekdays** | A **Time**. Runs Monday to Friday. |
| **Every Week** | The days of the week (tap each one you want, Monday first) and a **Time**. |
| **Every Month** | A **Day** from 1 to 31, or **Last Day**, and a **Time**. In a month without that day, it runs on the last day. |
| **Every Few Hours** | **Every hour**, or every 2 to 24 hours, and the **Minute** past the hour. |

A **Once** Schedule is gone after it runs.

Times follow the Schedule's own time zone. If you travel or change your device's time zone later, your Schedules keep the time zone they were saved with. When a clock change skips the time you set, the Schedule runs at the next time that exists.

> [!NOTE]
> If your Team's Agents run on your Mac, the Schedule's page says "Schedules in this workspace run only while its Mac is on." See [Choose where your Agents run](https://air.build/docs/get-started/where-agents-run/).

### Ask the Agent instead

You can also ask an Agent in chat, for example "Every Monday at 9, check the App Store reviews and tell me what's new." The Agent can add, change, pause and delete its own Schedules. It doesn't post a card for this and doesn't ask anyone to approve it, so it usually tells you in its reply. Its Schedules show up in its list like the ones you add.

An Agent can only manage its own Schedules. When an Agent suggests a new teammate with a registration card, the new Agent can come with Schedules, which are set up when you tap **Allow**. See [Add an Agent to your Team](https://air.build/docs/team/add-an-agent/).

## Open a Schedule

Tap a Schedule in the list. Its page shows:

| Row | What it shows |
| --- | --- |
| **Next Run** | When it runs next. A paused Schedule shows **Status: Paused** here instead. |
| **Repeats** | How often it runs. |
| **Time Zone** | The time zone its times follow. |

Then the buttons, **Recent Runs**, the **Instructions** and **Delete Schedule**.

| Button | What it does |
| --- | --- |
| **Run Now** | Runs the Schedule once now, even while it's paused. The next planned run stays where it was. The page says "_Agent_ is on it." |
| **Pause** | Stops the Schedule from running until you resume it. Nothing else changes. |
| **Resume** | Starts a paused Schedule again. |
| **Edit** | Opens the same form you used to add it. Change anything and tap **Save**. |

## Check the runs

**Recent Runs** lists each time the Schedule ran, newest first, with one of these:

| Shown | Meaning |
| --- | --- |
| **Run started** | The Agent got the instructions at the planned time. |
| **Started by hand** | Someone tapped **Run Now**. |
| **Skipped: the agent was still on the run before** | The previous run hadn't been picked up yet, so this one was left out. |
| **Skipped: the agent was turned off** | The Agent was off at that time. |

**Run started** means the Agent was given the instructions. The list doesn't track how the work went. Look in chat for what the Agent said, or ask it.

A new Schedule says **No runs yet**.

## Delete a Schedule

1. Open the Schedule.
2. Tap **Delete Schedule**.
3. Tap **Delete Schedule** again to confirm.

"It stops running. Messages already in the chat stay." Removing an Agent from the Team deletes all of its Schedules.

## Questions

**Save is off, or the form shows a warning**

The warning says what to fix: "Use a shorter title.", "Use shorter instructions.", "Choose at least one day.", "Choose a date that exists.", "Choose a time in the future." or "Choose a schedule that repeats less often." A Schedule also needs a title and instructions.

**Saving failed**

"This schedule can't be saved as it is. Check its time and try again." means the time doesn't work: pick another. "Unable to save. Check your connection and try again." means the app couldn't reach AirBuild.

**This schedule was deleted**

Someone else in your Team deleted it while you had it open. The page says "This schedule was removed."

**Run Now, Pause or Resume didn't work**

The page says "That didn't go through. Check your connection and try again." Check your connection and tap the button again. If it says "This schedule was deleted.", someone removed it.

**A Schedule ran but I didn't get a message**

That's expected when the Agent had nothing to tell you. Check **Recent Runs** to see that it ran.

**Who pays for Schedule runs?**

A run is Agent work like any other, and it counts toward your Team's usage the same way. See [Understand your usage](https://air.build/docs/team/understand-usage/).
