# Macros

> Save the answers your team gives often, and drop them into a reply with the customer's name and the ticket number filled in.

A macro is a saved reply. Administrators write them under **Settings → Macros**, and anyone who can reply to tickets can use them.

## Create a macro

1. Go to **Settings → Macros** and click **Add macro**.
2. Enter a **Title**. It's what agents see when they pick a macro, so make it clear, such as "Password reset steps".
3. Write the **Reply**. Markdown works: `**bold**`, lists, links.
4. Click **Add macro**.

### Placeholders

Three placeholders are filled in when someone uses the macro:

- `{{ customer_name }}`: the customer's first name, or "there" when Lagotto doesn't know their name
- `{{ agent_name }}`: the first name of the person using the macro
- `{{ ticket_number }}`: the ticket's number

So a macro that starts `Hi {{ customer_name }},` becomes "Hi Jordan," or "Hi there,". Anything else between double braces is left as you typed it.

## Use a macro on a ticket

1. Open the ticket and click in the reply box where the text should go, such as above your signature.
2. Choose a macro from **Insert macro…** above the reply box.
3. The macro's text appears at your cursor with the placeholders filled in. Edit it as you need, then click **Send**.

Inserting a macro never sends anything by itself. It works on the **Internal note** tab too. The **Insert macro…** menu appears once your workspace has at least one macro, with macros in order of title. Read-only seats don't have a reply box, so they don't use macros.

## Edit or delete a macro

On **Settings → Macros**, click **Edit** beside a macro to change it. To remove it, click the delete button named after the macro at the bottom of that page, such as **Delete Password reset steps**, and confirm. Replies already sent with a macro aren't changed.

Adding, changing and deleting macros is recorded in the [audit log](https://www.lagottolabs.ai/support/people-and-security/audit-log.md).

Macros are also available to AI assistants connected through MCP, and through the API. See [Connecting Claude](https://www.lagottolabs.ai/support/integrations/connecting-claude.md) and [API and webhooks](https://www.lagottolabs.ai/support/integrations/api-and-webhooks.md).
