# Save reply templates (macros) in the Helpdesk > Save the replies your team writes every day and drop them into any ticket from the composer A macro is a saved reply in the QwryAI Helpdesk. You write it once, give it a name, and from then on any teammate can drop it into a ticket from the composer, adjust it if the situation calls for it, and send. Macros suit the answers your team repeats: a refund timeline, a request for an order number, a "we're looking into it" holding reply, a closing line. A macro can fill in the customer's name, the ticket number and your own name, and it can add tags to the ticket when the reply goes out. Macros are shared. Every macro belongs to one AI agent and is visible to everyone who works its Helpdesk; there are no private macros. A workspace with two AI agents keeps a separate list for each. A macro holds two things: reply text and tags. It can't change a ticket's status, priority or assignee. To automate those, use [Triggers](/docs/user-guides/chatbot/help-desk/triggers). ## Inserting a macro Open a ticket and select **Macros** in the composer toolbar. It has a lightning-bolt icon and sits next to **Draft reply with AI**. Press `M` to open it from the keyboard. ![The Macros picker open above the ticket composer, with Search macros, the Refund on its way macro and a preview of its text under the pointer, and Add macro at the bottom.](annotated/07-picker.webp "Select Macros in the composer and pick one.") **1. Pick a macro** Each macro shows its name and the start of its reply. Type in *Search macros* to filter by name or by words in the reply. **2. Read it over** The macro's text is added at the end of the composer, after a blank line, so anything you've already typed stays put. Its variables are already filled in from the ticket. **3. Edit and send** An inserted macro is ordinary text. Trim it, add a sentence, or send it as is. ![The ticket composer with the macro inserted, greeting the customer by first name, naming ticket TKT-2 and signed with the teammate's first name, and Adds tags: refund-request above Send.](annotated/08-inserted.webp "The variables are filled in and the macro's tags wait to be added.") Macros work in both the **Reply** and **Note** composer. ### When the macro's tags are applied Tags on a macro are added when you send, not when you insert it. After you insert a macro, its tags show above the composer as **Adds tags:**, and they're added to the ticket together with your reply or note. Select the **X** on a tag to drop it before you send. Inserting a second macro adds its tags to the list. If you can manage macros, the bottom of the picker also offers **Add macro**, which opens the **New macro** dialog without leaving the ticket. It's handy when you've just typed a reply you know you'll need again. ## Variables A macro can carry placeholders that fill in from the ticket the moment you insert it. Write `{{ticket.requester_first_name}}` and the teammate sees `Hi Maria,` instead of a blank to fill. | Variable | In the list as | Fills in with | | - | - | - | | `{{ticket.requester_name}}` | Customer name | The customer's full name | | `{{ticket.requester_first_name}}` | Customer first name | The first word of the customer's name | | `{{ticket.requester_email}}` | Customer email | The customer's email address | | `{{ticket.id}}` | Ticket ID | The ticket number, such as `TKT-2` | | `{{ticket.subject}}` | Ticket subject | The ticket's subject | | `{{agent.name}}` | Your name | Your full name | | `{{agent.first_name}}` | Your first name | The first word of your name | Variables resolve when the macro is inserted, using the ticket you have open and the account you're signed in with. Two teammates inserting the same macro get different signatures. ### Fallbacks Not every ticket has a customer name. Add a fallback after a `|` and it's used whenever the variable is empty: ```text Hi {{ticket.requester_first_name | there}}, ``` A variable with no value and no fallback is left out, so `Hi {{ticket.requester_first_name}},` becomes `Hi ,`. Give every variable that might be empty a fallback, and read the inserted text before you send. > [!TIP] > > Keep fallbacks generic. `there` reads fine in every ticket; `valued customer` sounds like a form letter the moment it appears. Anything in double braces that isn't one of the variables above stays in the reply as typed. ## Creating a macro **1. Open Macros** Go to **Settings › Helpdesk › Macros**, described there as *Saved replies your team can insert into the ticket composer.* Select **Create macro**. ![The Macros settings page with its description Saved replies your team can insert into the ticket composer, the Search macros box, the Create macro button under the pointer, and the empty state No macros yet.](annotated/01-empty.webp "Settings › Helpdesk › Macros, before the first macro.") ![The New macro dialog with the Name and Reply fields, the Variable list, the If missing, use box and Insert variable, the Adds to ticket tag picker, and Cancel and Create macro.](annotated/02-new-macro.webp "The New macro dialog.") **2. Name it** Give it a **Name** your team will recognise in the picker, such as `Refund on its way`. Names must be unique within the agent. **3. Add variables** Put the cursor where the variable should go in **Reply**, choose it from the **Variable** list, type a fallback in **If missing, use** if you want one, and select **Insert variable**. ![The New macro dialog with the name Refund on its way, the reply starting Hi, there typed in If missing, use, and the Variable list open with the pointer on Customer first name.](annotated/03-variable.webp "Pick a variable and a fallback, then select Insert variable.") **4. Write the reply** Write the rest of the reply around the variables. Replies are plain text; line breaks are kept. ![The Reply field reading Hi {{ticket.requester_first_name | there}}, then that the refund for {{ticket.id}} is on its way and usually arrives within 5 business days, signed {{agent.first_name}}.](annotated/04-reply.webp "Write the reply around the variables.") **5. Add tags (optional)** Under **Adds to ticket**, pick the tags this macro should add. They're *Added to the ticket when the reply or note is sent.* ![The bottom of the New macro dialog with refund-request picked under Adds to ticket, the note Added to the ticket when the reply or note is sent, and the pointer on Create macro.](annotated/05-tags.webp "Tags under Adds to ticket are added when the reply is sent.") **6. Save** Select **Create macro**. It's available in every ticket's composer straight away. ### Example ```text Hi {{ticket.requester_first_name | there}}, Your refund for {{ticket.id}} is on its way. It usually reaches your account within 5 business days. Best, {{agent.first_name}} ``` ## Managing macros ![The Macros list with Refund on its way, a preview of its reply, its refund-request tag, and the pointer on its edit button next to delete.](annotated/06-list.webp "Each macro shows its reply and tags, with Edit and Delete.") The list shows each macro's name, the start of its reply and its tags, with a **Search macros** box above it. * **Edit:** select the pencil, change anything, then **Save**. * **Delete:** select the bin and confirm **Delete** in the **Delete macro** dialog. Replies already sent with it aren't affected. * **Archived tags:** a macro that uses an archived tag shows a warning; archived tags aren't added to tickets until you restore them in **Tags** or remove them from the macro. Only teammates who can manage Helpdesk settings can create, edit or delete macros. Everyone who works the Helpdesk can insert them. ## Limits | Limit | Value | | - | - | | Macros per AI agent | 500 | | Name | 100 characters | | Reply | 10,000 characters | | Tags per macro | 20 | ## Frequently asked questions > [accordion] Can a macro change a ticket's status or assignee? > > No. A macro adds text and tags. Use [Triggers](/docs/user-guides/chatbot/help-desk/triggers) to change a ticket automatically. > [accordion] Can I attach files to a macro? > > No. Add attachments in the composer after inserting the macro. > [accordion] Can I use a macro in an internal note? > > Yes. **Macros** works on the **Note** tab too, and its tags are added when you save the note. > [accordion] Can I format a macro with bold text or links? > > Macro replies are plain text. Paste a full link and it's sent as written. > [accordion] Are there private macros? > > No. Every macro is shared with everyone who works the agent's Helpdesk. > [accordion] Can macros use custom fields or Shopify order details? > > No. Macro variables cover the customer, the ticket and you. For order details, open the **Shopify Orders** panel in the ticket; see [Shopify](/docs/user-guides/chatbot/help-desk/integrations/shopify).