# Agent template

> The card an Agent sends to suggest adding an Agent from a template: what it shows, View Agent, and how it looks once the Agent is added.

Source: https://air.build/docs/cards/agent-template/

An Agent template card is an Agent suggesting a new teammate for your Team: an Agent from one of AirBuild's templates, such as a specialist for an outside service. The card shows the suggested Agent and a **View Agent** button that opens its page, where you can add it.

> [!NOTE]
> Agents send this as the `agent_template` card.

## Who sends it and who answers

An Agent sends it into the chat it's working in. Anyone in the Team who can see the chat can open the template and add the Agent. Nothing is added until a person taps **Add to** _Team name_ (**Add Agent** when no Team is selected) on the template's page. The card is answered once: when someone adds the Agent from it, the card shows that on everyone's screen.

## What's on the card

The Agent that sent it is named above the card, as for any of its messages.

| Part | What it shows or does |
| --- | --- |
| Picture | The suggested Agent's picture, in a circle. Its initial when it has no picture. |
| Name | The suggested Agent's name, in bold. |
| Line under the name | What the Agent does, in the template's words. When the template has none: "An agent you can add to this workspace." |
| **View Agent** | Looks the template up, then opens its page. The button shows a spinner while it looks. See [Agent template page](https://air.build/docs/screens/team/template/). |

## Add the Agent

1. Tap **View Agent**.
2. On the template's page, read about the Agent: its bio, the services it signs in to, its persona and its instructions.
3. Tap **Add to** followed by your Team's name at the bottom of the page.

The page closes and the card changes to its answered state. If the template's @ID is already used in your Team, an editor opens first so you can choose another ID; the card is answered once the Agent is created. See [Agent template page](https://air.build/docs/screens/team/template/#when-the-id-is-taken).

Closing the template's page without adding leaves the card open. Tap **View Agent** again any time.

## After it's answered

The button goes. A check mark and a line take the place of the Agent's description:

- **Added @id**: the Agent was added, with the @ID it got in your Team.
- **Added**: the Agent was added, and the app hasn't been told which @ID it got.

An answered card can't be tapped again. To add the same template again, use **New Agent**. See [Add an Agent to your Team](https://air.build/docs/team/add-an-agent/).

## What the Agent gets back

The @ID of the Agent that was added. Answering wakes the Agent that sent the card.

## On iPhone, iPad and Mac

The card works the same way everywhere. The template's page opens as a sheet over the chat.

## Messages

Shown under the button. The card stays open so you can try again.

| Message | What it means | What to do |
| --- | --- | --- |
| "This agent is no longer available." | The template the card names isn't offered any more. | Ask the Agent what to do instead, or look through **New Agent** for another template. |
| "Unable to send to the agent. Check your connection and try again." | The Agent was added, but the card couldn't be marked as answered. | Check your connection. The Agent is in your Team; tell the sending Agent in chat if it needs to know. |
| "You're signed out. Sign in and try again." | You're not signed in. | Sign in, then try again. |
| Another sentence | The template couldn't be looked up, for example because the connection dropped. | Check your connection and tap **View Agent** again. |

If a card can't be drawn because it doesn't name a template, it shows as a message saying "This message requires a newer version of AirBuild."
