Magai

How to Use AI to Write Support Macros, Top 20 First

How to use AI to write support macros: rewrite your top 20 so they sound like a person, keep every placeholder, and test them before they ship.

By Dustin W. StoutPublished 20 min read
A support lead's desk with a stack of identical printed form letters, one of them rewritten by hand in blue pen

Your macros sound like macros, and your customers can tell.

Here's how to use AI to write support macros that read like a person. Skip the blank page. Hand it the twenty you already send most, give it your voice and one hard rule about the variables, and let it rewrite what's there.

In Magai that's one agent, built once, that runs on whichever model handles each macro best and keeps its memory when you switch.

You know the lines. "Thank you for contacting us." "We apologize for any inconvenience." "Please do not hesitate," which is the one thing a customer will now hesitate to do.

You also have a queue of two hundred and an escalation waiting for a summary, so none of this can take a week.

The twenty macros your agents apply most are the ones customers read most. That makes them the cheapest place to start.

The rewrite itself is the easy part. The part that bites is the variables. A macro that sounds warm and sends "Hi ," to forty customers is worse than the stiff one you started with.

Rewrite the twenty macros your agents apply most, lock the variables, and ship them as personal macros before anyone else sees them.

Here's the job in order, with every prompt typed out so you can copy it.

Pull the twenty macros your agents apply most

Start with the macros that get used, not the ones that embarrass you.

Sort your macro list by how many times each was applied in the last ninety days. Check the macro list itself or your helpdesk's reporting for a usage count. If you can't find one, ask the three agents who close the most tickets which macros they reach for before lunch. Their answer is your list.

Take the top twenty and paste each into one document exactly as it sits in the helpdesk, variables and all. Don't tidy anything.

The model needs to see what your customers see.

Twenty index cards sorted into five piles on a desk, the first step when you use AI to write support macros

Look at the twenty before you go on. Near duplicates are common: two refund macros that differ by one sentence, or one greeting question answered three ways by three people who never met. Merge them now. Rewrite two versions of the same macro and you maintain both for as long as the helpdesk exists.

Next, make a freeze list. Some macros aren't yours to reword. Policy statements, privacy and data requests, security incident notices and anything that quotes your terms were signed off by someone in legal or finance. The agent will check those for typos and broken variables, and it won't change a sentence.

Write the owner's name next to each frozen macro today. When something needs changing in six months, you'll know who to ask.

A first cut through a typical pile looks like this, using sample macros:

Macro Kind What happens
Where is my order Answer Rewrite
Password reset steps Answer Rewrite, steps stay in order
Refund processed Answer Rewrite, with a confirm flag for the refund window
Shipping delay Apology plus Answer Split in two, then rewrite
Refund policy statement Bad news Frozen, check only
Data deletion request Hand off Frozen, check only
Security incident notice Hand off Frozen, check only

Now open a new thread in Magai, paste all twenty, and send this:

Below are my top twenty support macros, pasted exactly as they are, variables included. Sort them into five kinds: Answer, Bad news, Ask for info, Apology, Hand off. List each macro's name under its kind. If a macro does two jobs, tell me and show me where to split it. Do not rewrite anything yet.

Don't ask for rewrites yet. Twenty macros in five piles is a job. Twenty macros in one pile is a mood.

Expect a few macros flagged as doing two jobs. The shipping delay notice is the classic case: it apologizes for four lines before it says when the order will ship. Split it into one macro that answers and one that apologizes, and each gets easier to rewrite.

The five kinds are also the five sets of rules you'll hand the agent in a few steps.

For the frozen macros, the agent's job is a proofread. Send those with a different instruction:

These macros are frozen. Do not change any wording. Check each one for typos, doubled spaces, broken or mismatched variables and sentences that contradict each other. List what you find and the line it is on. If you find nothing, say so.

Anything the agent flags goes to the owner of the wording as a question. It never goes back as an edit.

Build one agent that holds your voice and your rules

A rewrite goes wrong the same way every time. You paste a macro and type three lines about tone, and the result is decent. Then you paste the next one and retype the three lines, a little different.

By macro eleven the voice has drifted and nobody remembers the rule about the variables.

Magai's answer is an agent. You save your instructions once, and they apply to whichever model you pick for the message. Your team can share it, so whoever rewrites macro thirty-one next quarter follows the rules you wrote today. If you've never built one, how to build an AI agent without writing code walks through the screen, and here you only need the instructions.

First, gather three voice samples. Pick three replies your best agent wrote by hand, the kind customers thanked them for. Strip names, emails, order numbers and addresses before they go anywhere. You want the sound of the reply, not the customer in it.

Three folded paper replies pinned to a corkboard beside a pair of headphones, for hearing a reply's voice aloud

Choose with care. A sample is a teacher, and a bad one teaches bad habits. Skip anything written in the middle of an angry thread, anything that quotes a policy word for word, and anything with a joke that only works for one customer.

Good samples are plain: a clear answer, a correct apology, a next step.

If you can, add a fourth that goes the other way, a reply you would never send, and label it that way in the instructions. Models take a contrast well, and a labeled bad example gives your banned list a face.

Then open Magai, create an agent, and paste these instructions. Fill the brackets with your own details.

You rewrite customer support macros for [COMPANY], which [ONE LINE ON WHAT WE SELL AND TO WHOM].

VOICE
1. Write like one capable person talking to another. First names, contractions, short sentences.
2. Put the answer in the first sentence. If an apology is owed, give it one sentence and name what went wrong.
3. Never use: inconvenience, valued customer, please be advised, do not hesitate, kindly, rest assured, at this time.
4. One exclamation mark per macro at most, and only for good news.
5. Sign off with the agent's first name and nothing else.

VARIABLES
1. Every {{ }} and {% %} item in the original must appear in the rewrite exactly as written, character for character.
2. Never rename, translate or reorder a variable, and never replace one with sample text.
3. Never add a variable that was not in the original.
4. The one exception is the greeting. Wrap the first name so a blank name still reads well: {% if ticket.requester.first_name %}Hi {{ticket.requester.first_name}},{% else %}Hi there,{% endif %}

FACTS
1. Use only facts that appear in the macro I paste. Never add a number, a deadline, a price, a policy or a promise.
2. When the rewrite needs a fact that is missing, write [CONFIRM: what is missing] and keep going.

OUTPUT, IN THIS ORDER
1. The rewritten macro in a code block.
2. Every variable in the original and every variable in the rewrite, side by side, with a count for each.
3. Every CONFIRM flag, and anything you changed beyond wording.

VOICE SAMPLES
[PASTE YOUR THREE SCRUBBED REPLIES]

Each block does one job. Voice gives the model a ruler. "Be warm" is a mood, while a banned phrase list is a rule, because it names the exact words to cut.

Variables is the rule that matters most. A model reads {{ticket.requester.first_name}} as a word in a sentence, and sentences are what models like to rewrite.

Facts is there because models fill gaps with confident guesses. A macro with a guessed deadline in it is a promise your team never made.

Output is your seatbelt. The side by side list means you check four lines instead of hunting through braces.

Test the agent before you trust it. Paste one macro you know well and read the whole reply, variable list included. If the agent breaks a rule on the first try, the instruction is vague, and the fix goes into the instructions rather than into your next message. Fix it once and every later macro benefits.

You can change the model from one message to the next without touching the agent. Start with whichever one you like best for plain business writing, and let the batch step later tell you whether another does better.

Rewrite one macro, then read it the way the customer will

Start with the macro your agents apply most. Here's a sample refund macro written for this walkthrough, with Zendesk style variables. The refund amount sits in a custom ticket field, which Zendesk names by its ID, so your number will differ.

Hello {{ticket.requester.first_name}},

Thank you for contacting us regarding ticket {{ticket.id}}. We apologize for any inconvenience this may have caused. Your refund request has been processed. Please be advised that the refund of {{ticket.ticket_field_505156}} will be issued to the original payment method. Should you have any further questions, please do not hesitate to contact us.

Kind regards,
{{current_user.first_name}}
Customer Support

The prompt is short, because the agent already holds the rules:

Kind: Answer. Rewrite this macro.

[PASTE THE MACRO]

Here is the kind of reply that comes back from instructions that stop after Voice and Variables:

Hi {{ticket.requester.first_name}},

Your refund is done. {{ticket.ticket_field_505156}} is on its way back to the card you paid with, and it should show up within 3 to 5 business days.

If it hasn't by then, reply here and I'll dig into it.

{{current_user.first_name}}

The voice is right. The answer comes first and the sign off is a name. Then you read it as the customer and as the lead who owns the policy, and three things are wrong.

The variable list shows three against four, because the ticket number is gone.

"Within 3 to 5 business days" appears nowhere in the original, so it's a promise your team never made. And "card" isn't in the original either, which says original payment method. Somebody who paid through a wallet now thinks you got it wrong.

That's why the Facts block exists. Add it, run the same macro again, and the reply changes:

{% if ticket.requester.first_name %}Hi {{ticket.requester.first_name}},{% else %}Hi there,{% endif %}

Your refund on ticket {{ticket.id}} has gone through. {{ticket.ticket_field_505156}} is on its way back to the payment method you used.

Your bank sets how fast it shows up, and I can't see that from here. [CONFIRM: how many days we tell customers to wait] If it isn't there by then, reply to this email and I'll look into it.

{{current_user.first_name}}

The CONFIRM flag is the agent doing its job. Your lead answers it from policy, and only then does the line go in. Say your policy is five business days. Send one follow-up in the same thread:

Answer to the CONFIRM: customers wait 5 business days. Update the macro. Keep everything else the same and show me the variable list again.

The reply swaps one sentence and leaves the rest alone, which is what a thread with memory is for. You never paste the macro again. The line now reads: "Give it 5 business days, and if it isn't there by then, reply to this email and I'll look into it."

The greeting survives a blank name now too. Zendesk's documentation says that when a placeholder references a field with no value, the placeholder is blank in the macro, so "Hi ," is a live risk.

Before the macro goes anywhere, test it on a ticket where the requester has no first name. If the greeting says "Hi there," the Liquid works. If it says "Hi ," the line didn't survive the paste, and a stray space or a curly quote in the macro editor is the first place to look.

Read the final reply as the customer. It answers in the first sentence and names the ticket. It says where the money is going and what to do if it isn't there. The original took three sentences to say what happened.

The "Customer Support" signature is gone too. A name signs the reply now, which is the cheapest change in the whole macro, because customers answer people.

Lock the variables so a good rewrite can't break a send

A rewrite can read beautifully and still break in the inbox. The failures are few and predictable.

Here's what each looks like to the customer and how you catch it before they do:

What the model does What the customer sees How you catch it
Drops a variable A sentence that refers to a ticket number that isn't there The side by side list shows three against four
Replaces a variable with sample text "Hi John," sent to everyone Search the rewrite for any name you didn't type
Alters the braces Raw code in the middle of an email Count the double braces in both versions
Adds a variable you don't have A blank or raw code where a value should be Variables rule 3, plus the list
Leaves a name blank "Hi ," The if and else line in the greeting

Count the double braces in both versions. The counts match, or the macro doesn't ship.

A printed letter with short slots marked in blue highlighter where variables sit, and a hand checking one with a pen

Then give the agent a glossary. A model can see a variable's name but not what it holds. {{ticket.ticket_field_505156}} tells it nothing, so it may write "your refund of $" around a value that already carries its own dollar sign. Add a block to the agent's instructions:

VARIABLE GLOSSARY
1. {{ticket.requester.first_name}} holds the customer's first name. It can be blank.
2. {{ticket.id}} holds the ticket number, digits only.
3. {{ticket.ticket_field_505156}} holds the refund amount with the currency symbol already included.
4. {{current_user.first_name}} holds the first name of the agent who applies the macro.

Four lines, written once, and the doubled dollar sign problem goes away. Build the glossary as you go. Every time a macro surfaces a variable the agent hasn't met, add its line.

The model that made a mistake is the worst one to catch it. So switch models in the same thread and ask for an audit. Because the thread keeps its memory across a switch, the second model sees the original, the rewrite and your rules without you pasting any of it again. Switching models mid-workflow is the Magai capability this whole step leans on.

/GPT Audit the last rewrite. List every {{ }} and {% %} item in the original, in order, then every one in the rewrite, in order. Tell me if they match exactly. Then list every fact in the rewrite that is not in the original. Do not rewrite anything.

Sometimes the audit comes back clean, and that's the point. It costs one message, and a broken send costs forty customers a worse first impression.

One more case belongs to your admin. Zendesk's documentation says a macro applied to a Problem ticket renders its placeholders when the macro is applied, so the requester's name can go to every linked incident. The fix is a backslash in front of the placeholder, as in Hello \{{ticket.requester.first_name}}.

If your team works with Problem and Incident tickets, tell the agent which macros are used on them and ask your admin before shipping any macro that contains a name.

The syntax itself is plain Liquid. Objects go in double curly braces and tags go in brace and percent pairs, as Liquid's own introduction shows, and that's all the agent needs to keep intact.

Use AI to write support macros in batches of one kind

Rewriting twenty macros one at a time works, but the voice drifts. Five at a time, grouped by kind, keeps it steady because every macro in the batch plays by the same rules.

Each kind from the first step has its own rule, and these go into your batch prompt:

Kind What the rewrite does What to watch
Answer Leads with the answer, then gives steps in order Steps that got merged into a paragraph
Bad news Says no in the first sentence, gives the reason, offers the next move Apologizing three times
Ask for info Asks for the one thing you need, then says why Five questions at once
Apology One sentence that names what went wrong The word "inconvenience" anywhere
Hand off Says who has it now and when the customer will hear A deadline the model made up

Then send the batch:

Rewrite these five macros in one pass. Kind: Bad news. Say no in the first sentence, give the reason in plain words, then offer the next move. Keep each macro separate, keep every variable exactly, and flag anything missing with CONFIRM.

[PASTE FIVE MACROS]

Five small trays in a row on a desk, each holding a short stack of cards, ready to be worked one batch at a time

Here's a second sample, a feature declined macro:

Hello {{ticket.requester.first_name}},

Thank you for your feedback. Unfortunately, the feature you requested is not currently available. We apologize for any inconvenience this may cause. Your suggestion has been forwarded to our product team for consideration. Thank you for your understanding.

Kind regards,
{{current_user.first_name}}

The first rewrite can come back with "I completely understand how frustrating this must be" in the opening line. It isn't on the banned list, because nobody thought of it, and it's the new "inconvenience."

Add it to the list, along with "I want to assure you," and the next batch is cleaner. A banned list is never finished. Treat it like a spell checker's dictionary and add to it every time a batch teaches you something.

The version after that flags the real problem:

{% if ticket.requester.first_name %}Hi {{ticket.requester.first_name}},{% else %}Hi there,{% endif %}

We don't have that feature today, and I can't tell you when we will. I'm sorry. I know that isn't the answer you were hoping for.

I've passed your request to our product team with the details you gave us. [CONFIRM: does every request reach the product team?]

{{current_user.first_name}}

The original said the suggestion had been "forwarded to our product team." Does anyone read those? If nobody does, the macro lies in a friendly voice, and the flag is how you find out.

Your lead answers it, and if the answer is no, the sentence changes to something true.

Ask for info macros show the other kind of catch. Here's a sample:

Hello {{ticket.requester.first_name}},

Thank you for reaching out. In order to assist you further, we will need you to provide your order number, the email address used at checkout, the item in question, photos of the damage, and a description of the issue. Once we receive this information we will be able to proceed.

Regards,
{{current_user.first_name}}

The rewrite comes back like this:

{% if ticket.requester.first_name %}Hi {{ticket.requester.first_name}},{% else %}Hi there,{% endif %}

Sorry the item arrived damaged. To fix it I need two things from you: your order number and a photo of the damage.

Reply with both and I'll take it from there.

{{current_user.first_name}}

It cut five asks to two. That's a policy decision, and the model made it silently. Does your team need the checkout email and the written description, or does the helpdesk already hold them?

If you need all five, the macro goes back to the agent with a rule: ask for all five, in a numbered list, with one line on why. The agent can't know which asks carry weight. You do.

Hand off macros are where you'll answer the most CONFIRM flags. If the original says "a specialist will be in touch shortly," the agent has nothing to turn "shortly" into, so it flags it. Your answer might be "by the end of the next business day." Hand off macros are where support teams hide vagueness, and the flag makes you say the number.

Then run the same batch past a second model in the same thread. Send it once with /Claude and once with /GPT, same prompt. Read both aloud and keep the one that sounds closer to your best agent. Models have different default voices, so one of them will sit nearer yours.

Write the winner next to each kind, and the next batch starts there.

Read every rewrite aloud, then hold it against policy

A rewrite that passes the variable check still has to pass the person who owns the policy. This takes a few minutes per macro, and it keeps your name off a bad promise.

Run each rewrite through these checks:

  1. Read it aloud. If you stumble, a customer will.
  2. Facts. Every number, deadline, price and policy is in the original or in your answer to a CONFIRM flag.
  3. Promises. Nothing new that your team now has to keep, such as a refund window, a callback time or a guarantee.
  4. Variables. The counts match and the greeting survives a blank name.
  5. Channel. If the macro uses formatting or images, check its plain text version. Zendesk applies the plain text fallback in channels that don't support rich text, such as SMS and messaging, so a macro that leans on bold or a picture can arrive as a mess there.
  6. Actions. The rewrite changes the comment and nothing else. Macros also set tags, status, assignee and attachments, and none of those are the agent's to touch.
  7. Reading level. Short words, one idea per sentence, the action first.

Here's the promise check earning its keep. Say a rewrite of the shipping delay macro tells customers "Your order will ship within two days." The original said "as soon as it's available." The new sentence reads better and commits you to a date the warehouse never agreed to. Check 3 catches it, and the fix is to put the original's wording back or get a real date from the warehouse.

The last check has a public yardstick. The U.S. government's plain language guidance exists because the Plain Writing Act of 2010 requires content for the public to be written for its specific audience. You aren't a federal agency, but the ruler works on a macro too.

Ship the twenty as personal macros first

Don't swap the shared macros on a Monday morning. Put the rewrites in front of three agents first.

Zendesk lets any agent create personal macros, which only their creator can use and which admins can see in Admin Center. An admin can clone a personal macro and recreate it as a shared one. That makes personal macros a built in pilot. If you use another helpdesk, prefix the rewritten macros with NEW and keep the originals beside them.

A board with ten paper slips pinned in two rows, a few with blue stickers and one with a red sticker, while a hand lifts one to read it

Before the pilot starts, pull ten recent solved tickets that each macro would have answered. Strip the personal data. Read the rewrite as if you were sending it to that customer.

A macro that fits eight of ten tickets and sounds odd on two is telling you where it needs a branch, a second macro or a CONFIRM answered.

Then have each pilot agent keep a tally for a week, one mark per use:

  1. Sent as is.
  2. Edited a little.
  3. Edited a lot.
  4. Switched back to the original.

Set the bar before the week starts. For example, any macro that gets edited before sending in more than half of its uses goes back to the agent. When agents keep changing the same sentence, the sentence is wrong. Give that sentence to the agent and say so.

Read the tally by agent too. If one agent edits every macro and the other two barely touch them, the macros aren't the problem. That agent's own voice sits further from the samples you chose, and the useful move is a conversation about which voice the team wants, with that agent's favorite replies on the table. Sometimes the heavy editor is right, and their edits become your next round of voice samples.

Once a macro clears the bar, an admin clones it to a shared macro. Retire the original only after the shared version has been live for a couple of weeks. The frozen ones stay exactly as they were.

Your helpdesk's built-in AI drafts macros and stops at the helpdesk door

Zendesk's documentation notes that with its Copilot add-on you can use generative AI writing tools to help create macros. It's convenient, and it sits where your agents already work.

It's also one tool's drafting aid. Your banned phrase list, your variable rule, your voice samples and your audit step have nowhere to live inside it, and they don't follow you to the next helpdesk or to the help center.

In Magai those live in one agent. It rewrites the macro, then drafts the help center article that doesn't answer the question, then summarizes the escalation for engineering. The voice is the same because the instructions are the same.

The jobs differ, though. The help center article needs the same plain voice. The escalation to engineering needs the opposite: dry, exact, with ticket numbers and the steps to reproduce. So you keep one set of voice samples and give each job its own Output block, and you pick the model per message when a job calls for it. A long escalation thread may suit one model and a short macro another, and the thread stays put either way.

Next time, paste the macro and one line

The next time a policy changes, you open the same agent, paste the macro and type the one line that changed: "Refund window is now ten days." The voice, the variable rule and the audit are already in it.

Rewriting an old macro becomes a one line job.

Duplicate the agent and change the Output block, and you have one for the help center article and one for the escalation summary. Same voice, different output.

Once the twenty are live, the other hundred and eighty macros go through the same batches by kind. The first twenty took the setup. The rest take the batch prompt. Do the frozen ones last, and only as a proofread.

Standard is $20 a month and includes unlimited agents, and extra seats are $20 each, so the person who inherits your macros inherits your agent too. Every plan carries a 30 day money back guarantee. You can see the plans on the pricing page.

Your customers read your macros more than anything else you write. Open Magai, build the agent, and rewrite macro number one before the next ticket lands.

Make it sound like you.

More in AI for Business