# Persona and Instructions

> The two long texts of an Agent: the Persona page you open from its profile's editor, and the Instructions field typed right in the editor.

Source: https://air.build/docs/screens/team/persona-instructions/

An Agent has two long texts: its **Persona** and its **Instructions** (what it does, how it works and where it stops). In the profile's editor, **Persona** opens a page of its own with one large text field and **Save**; **Instructions** is a field you type in right on the editor. Neither is saved to the Team until you tap **Done** on the profile.

## Open it

1. Open the Agent's [profile](https://air.build/docs/screens/team/agent-profile/) and tap **Edit** (or choose **Edit Agent** from the Agent's menu in the list of chats).
2. For the persona, tap the **Persona** row. For the instructions, type in the **Instructions** field further down the editor.

The **Persona** page opens differently by device:

**iPhone**

From a profile sheet, the page opens over the editor, titled **Persona**, with Back in the top-left corner and **Save** in the top-right. From the **Profile** tab (on iPhone or iPad), it opens as a sheet with **Cancel** and **Save**.

**Mac**

A sheet titled **Persona**, with **Cancel** and **Save** at the bottom right. Esc presses **Cancel**, which closes it without saving. Return presses **Save**, in the text box too, once you've changed the text.

## What's on it

### Persona page

| Item | What it does | Default |
| --- | --- | --- |
| Text field | The persona. Shows at least eight lines and grows as you type. | Empty field shows **Default (from template)**, or **Optional** for a new Agent made with **Create from Blank**. |
| **Save** | Puts the text into the editor and closes the page. | Dimmed until you change something. |
| Back / **Cancel** | Closes the page and leaves the persona as it was. |  |

On the editor, the **Persona** row then shows the text's first line, or **Default** (on a new blank Agent, **Optional**) when it's empty.

### Instructions field

| Item | What it does | Default |
| --- | --- | --- |
| **Instructions** | The Agent's instructions, typed on the editor. Up to eight lines show; the field scrolls after that. | Empty field shows **Default (from template)**, or "What this agent does, how it works, and where it stops" for a new Agent made with **Create from Blank**. |
| Footer | "Leave blank to use the default instructions." |  |

Both fields start with the Agent's current text: for an Agent added from a template, the template's own text until someone changes it. The placeholders show only when there's no text at all.

The app shows no length limit for either text.

When you're not editing, the profile shows the first four lines of each text under **Persona** and **Instructions**, and leaves out a text that's empty.

## Change the persona

1. In the profile's editor, tap **Persona**.
2. Type or change the text.
3. Tap **Save**. The page closes.
4. Tap **Done** on the profile to save it to the Team.

**Cancel** on the profile throws away the new text as well.

## Go back to the template's text

1. In the profile's editor, clear the **Persona** page's text (then **Save**) or the **Instructions** field.
2. Tap **Done**.

The Agent then follows its template's persona or instructions again. Agents made with **Create from Blank** have their own default.

## Messages

| Message | When it shows | What to do |
| --- | --- | --- |
| "Unable to save changes. Check your connection and try again." (or the reason the server gives) | **Done** on the profile failed. Shows at the top of the editor; your text stays. | Check your connection and tap **Done** again. |

## Questions

**Does Save on the Persona page change the Agent right away?**

No. It only puts the text into the editor. The Agent changes when you tap **Done** on the profile.

**Why is there already text in the field?**

The fields show the Agent's current text. For an Agent added from a template, that's the template's text until someone changes it.
