# New Schedule and Edit Schedule

> The form for adding a Schedule to an Agent or changing one: its title, instructions, how often it repeats, the date, day or time, and its time zone.

Source: https://air.build/docs/screens/team/schedule-editor/

This form adds a Schedule to an Agent (**New Schedule**) or changes one (**Edit Schedule**). You give it a title, the instructions the Agent gets each time, how often it repeats and when, and the time zone those times follow. Under the fields, the form reads the Schedule back in one sentence so you can check it before you save.

## Open it

- **New Schedule**: tap **Add Schedule** in an Agent's list of Schedules: in [Schedules](https://air.build/docs/screens/team/schedules-tab/#from-an-agents-profile) from the Agent's profile, or in the [Schedules tab](https://air.build/docs/screens/team/schedules-tab/). On iPhone, in the Schedules tab it's the **+** at the start of the tab row, or the **+** in the top-right corner of an Agent's page opened from a Project chat.
- **Edit Schedule**: open the [Schedule](https://air.build/docs/screens/team/schedule/) and tap **Edit**.

The form opens as a sheet on iPhone, iPad and the Mac, with **Cancel** and **Save**: at the top on iPhone and iPad, at the bottom on the Mac. On the Mac, Return presses **Save** once it isn't dimmed. **Cancel** closes it without saving; it's dimmed while the Schedule saves.

## What's on it

From top to bottom:

| Field | What it is | Default for a new Schedule |
| --- | --- | --- |
| **Title** | The Schedule's name in the lists and at the top of its page. Up to 100 characters. Spaces at the start and end are dropped. | Empty |
| **Instructions** | What the Agent should do each time. The empty field reads "What should _Agent_ do each time?" with the Agent's name. Up to 4,000 characters. The field grows from 4 to 10 lines as you type, then scrolls. Spaces and blank lines at the start and end are dropped. | Empty |
| **Repeat** | How often it runs: **Once**, **Every Day**, **Weekdays**, **Every Week**, **Every Month** or **Every Few Hours**. The fields under it change with your choice (see the next table). | **Every Day** |
| **Time Zone** | The time zone the date and times follow, by name, with a chevron. Tap it to open [Time Zone](https://air.build/docs/screens/team/time-zone/) and choose another. | Your device's time zone |
| Sentence under the fields | The Schedule read back, for example "Every day at 09:00" or "Every Mon, Wed and Fri at 09:00". When the time zone keeps a different clock from your device's, its name follows in brackets. When something needs fixing, a line saying what to fix takes its place (see [Messages](https://air.build/docs/screens/team/schedule-editor/#messages)). | — |

### Repeat options

| **Repeat** | Fields under it | Defaults |
| --- | --- | --- |
| **Once** | **Date** and **Time**. Runs one time, at that moment. | Tomorrow, 09:00 |
| **Every Day** | **Time**. | 09:00 |
| **Weekdays** | **Time**. Runs Monday to Friday. | 09:00 |
| **Every Week** | Seven day buttons, Monday first, each shown by its first letter (M T W T F S S in English; VoiceOver reads the full day name). A day that's on is shown as selected. Tap a day to turn it on or off; you can choose any number of days. Then **Time**. | Monday, 09:00 |
| **Every Month** | **Day**: 1 to 31, or **Last Day** (the last day of each month). Then **Time**. | Day 1, 09:00 |
| **Every Few Hours** | A stepper that reads **Every hour** or **Every 2 hours** up to **Every 24 hours**: tap − or + to change it. **Minute**: the minute past the hour it runs at, **:00** to **:59**. | Every hour, at :00 |

Times show in your device's clock style, for example 09:00 or 9:00 AM. The date and time pickers follow the Schedule's time zone, not your device's. Changing **Time Zone** keeps the time you set, in the new zone: 09:00 stays 09:00.

Choosing **Every Week** with Monday to Friday on is read back as "Weekdays at …"; all seven days on is read back as "Every day at …".

### What the form doesn't show

Some Schedules have settings the form has no field for. An Agent can set these when it adds or changes its own Schedules:

- **Every few days, weeks or months**, for example every 2 weeks. The sentence under the fields shows it, for example "Every 2 weeks on Mon at 09:00". Editing keeps the number, also when you switch between **Every Day**, **Every Week** and **Every Month**: a Schedule that ran every 2 weeks becomes every 2 days if you choose **Every Day**. Check the sentence before you save. **Once**, **Weekdays** and **Every Few Hours** don't use it.
- **An end**: a last date, or a number of runs. The sentence shows it, for example "…, until 12 Oct" or "…, 5 times in all". Editing keeps it; choosing **Once** drops it.

If the app can't read a Schedule's timing (its page shows only **Repeats**), **Edit Schedule** opens with **Every Day** at 09:00, and **Save** replaces the timing with what the form shows.

## Add a Schedule

1. Tap **Add Schedule** in the Agent's list.
2. Type a **Title**.
3. Under **Instructions**, write what the Agent should do each time.
4. Choose **Repeat**, then set the date, days, day of the month, time, or hours and minute it asks for.
5. Check **Time Zone**. Tap it to choose another.
6. Read the sentence under the fields, then tap **Save**.

**Save** is dimmed until there's a title and instructions and nothing needs fixing. While it saves, the button shows that it's working. When it's done, the form closes and the Schedule is in the list.

## Edit a Schedule

1. Open the [Schedule](https://air.build/docs/screens/team/schedule/) and tap **Edit**.
2. Change any field. The form opens with the Schedule as it is now.
3. Tap **Save**.

Only what you changed is saved. If you change nothing, **Save** just closes the form. Editing doesn't pause, resume or run the Schedule.

## Messages

Each shows under the fields, in place of the sentence. **Save** stays dimmed while a message from the form itself shows; a message from saving goes away as soon as you change a field.

| Message | When it shows | What to do |
| --- | --- | --- |
| "Use a shorter title." | The title is over 100 characters. | Shorten it. |
| "Use shorter instructions." | The instructions are over 4,000 characters. | Shorten them. |
| "Choose at least one day." | **Every Week** with no day on. | Tap one or more days. |
| "Choose a date that exists." | **Once** on a date the calendar doesn't have. | Pick another date. |
| "Choose a time in the future." | **Once** at a moment that has passed or is less than a minute from now. | Pick a later date or time. Check **Time Zone** too: the moment is in that zone. |
| "Choose a schedule that repeats less often." | The Schedule would run more often than once an hour. A Schedule can't repeat more often than that. | Choose a gap of an hour or more. |
| "This schedule can’t be saved as it is. Check its time and try again." | Saving was refused because of the timing. | Change the date, day or time, then tap **Save** again. |
| "This schedule was deleted." | Someone deleted the Schedule while you were editing it. | Tap **Cancel**. |
| "You don't have permission to do this. Ask the Team owner for help." | Your Team doesn't let you do this. | Ask the Team's owner. |
| "Unable to save. Check your connection and try again." | The app couldn't reach AirBuild. | Check your connection and tap **Save** again. Your fields stay as they are. |

An empty **Title** or **Instructions** shows no message: **Save** just stays dimmed.
