> ## Documentation Index
> Fetch the complete documentation index at: https://docs.irisagent.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Macros and email signatures

> Save replies your team sends often and insert them in any chat, email, or note, with placeholders for the customer and ticket. Add an email signature to every email.

A **macro** is a reply you write once and insert into any ticket in the [Conversations inbox](https://docs.irisagent.com/helpdesk/Conversations-Inbox.md): a chat reply, an email, or an internal note. Placeholders fill in the customer's name, the ticket subject, ticket fields, and your own details. After you insert a macro, you can edit the text before you send it.

An **email signature** is added under every email you send from IrisAgent.

IrisAgent macros are separate from your Zendesk macros. You create them in IrisAgent, so they work for every team, including teams that use Outlook only.

## Insert a macro

In the composer, on the **Chat**, **Email**, or **Note** tab, do one of these:

* Click the macro button (next to the paperclip).
* Type **/** at the start of a line or after a space.
* Press **Ctrl+/** (**Cmd+/** on a Mac).

The macro picker opens above the text:

1. Type to search macro names, folders, and text. With no search, the macros you used last come first, then the ones your team uses most.
2. Use the **Up** and **Down** arrow keys to choose. The preview shows the macro filled in for this ticket.
3. Press **Enter** or click the macro to insert it where your cursor is.
4. Edit the text if you need to, then send.

Press **Esc** to close the picker without inserting anything. If you opened it by typing **/**, the **/** is typed after all.

Emails get the macro with its formatting (bold, links, and lists). Chats and notes get plain text: list items start with "- ", and links show their address in parentheses.

## Placeholders

| Placeholder | Fills in |
| - | - |
| `{{customer.first_name}}` | The customer's first name |
| `{{customer.name}}` | The customer's full name |
| `{{customer.email}}` | The customer's email address |
| `{{agent.first_name}}` | Your first name |
| `{{agent.name}}` | Your full name |
| `{{agent.email}}` | Your email address |
| `{{ticket.subject}}` | The ticket subject (email tickets) |
| `{{ticket.id}}` | The ticket number (email tickets) |
| `{{ticket.field.KEY}}` | A [ticket field](https://docs.irisagent.com/helpdesk/Ticket-Fields.md), for example `{{ticket.field.category}}` |

On a chat, the customer's name and email come from the contact linked to the chat. On an email ticket, they come from the sender.

Common Zendesk placeholders also work, such as `{{ticket.requester.first_name}}`, `{{current_user.name}}`, and `{{ticket.title}}`.

### When a placeholder has no value

Add a fallback after a bar to use when there is no value. For example, `Hi {{customer.first_name | there}},` becomes "Hi there," when the customer's name is unknown.

A placeholder with no value and no fallback is left out. A yellow note under the text names it, for example "No value for customer name, so it was left out. Check the text before sending."

## Manage macros

1. Open the user menu and choose **Settings**.
2. In the **Helpdesk** section, find the **Macros** card and click **Manage**.

There are two kinds of macros:

* **Team macros** are shared with everyone. Only an IrisAgent **admin** can add, edit, or delete them.
* **My macros** are personal. Only you can see and change them.

To add a macro:

1. Click **New macro**.
2. Enter a **Name** (up to 80 characters) and, optionally, a **Folder** to group it with similar macros.
3. Write the text. To add a placeholder, put your cursor where it goes and click it under **Insert**. Your ticket fields are listed there too.
4. Admins: select **Share with the team** to make it a team macro.
5. Click **Add macro**.

Each macro shows how many times it has been used. Click **Edit** or **Delete** on a macro you can change. You can't change whether a macro is shared after you create it.

An account can have up to 500 team macros, and each person up to 100 macros of their own.

### Starter macros

A new account starts with no macros. Admins can click **Add 3 starter macros**, in Settings or in the empty macro picker, to add a greeting, a request for more details, and a reply for closing a resolved ticket. Edit them to match your team's tone.

## Email signatures

Your signature is added under every email you send from IrisAgent: email replies, emails to a chat contact, and new email tickets. Chats and notes don't get a signature.

The signature shows in the email editor under a "--" line before you send, so you can change it for one email. If there is nothing above the signature, **Send email** stays off.

### Set your signature

1. Open the user menu and choose **Settings**.
2. In the **Helpdesk** section, find the **Email signatures** card and click **Configure**.
3. Under **My signature**, choose:
   * **Use the team signature**: your emails get the team signature.
   * **Use my own**: write your own signature.
4. Click **Save my signature**.

Until you save your own, you use the team signature.

### Set the team signature

Admins set the signature for everyone who uses the team signature. Under **Team signature**, write the signature and click **Save team signature**.

Use `{{agent.name}}`, `{{agent.first_name}}`, or `{{agent.email}}` so one team signature shows each agent's own name. For example:

```
{{agent.name}}, Support team
Acme Water Utility
```

## Related pages

* [Conversations inbox](https://docs.irisagent.com/helpdesk/Conversations-Inbox.md)
* [Email tickets](https://docs.irisagent.com/helpdesk/Email-Tickets.md)
* [Ticket fields](https://docs.irisagent.com/helpdesk/Ticket-Fields.md)
* [IrisAgent Helpdesk overview](https://docs.irisagent.com/helpdesk/Overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.