How to make a Zendesk macro ask the agent for details
By Jake Marsh · Updated
To make a Zendesk macro ask the agent for an order number, amount or date, install Slotwell and write blanks into the macro's reply text, for example [[text:Order number]] or [[date:Ship date]]. When an agent picks the macro in the Slotwell sidebar, each blank becomes a field. Slotwell checks the answers, shows a preview, and Fill reply puts them into the reply.
Steps
- Open the macro. In Admin Center, go to Workspaces > Agent tools > Macros and edit the macro.
- Replace each gap with a blank. Where the reply said "We refunded $XX.XX", write
We refunded $[[number:Refund amount; min=1; max=500]]. - Save the macro.
- Check it. Open Slotwell from the left navigation bar, click Check macros, and fix anything listed. Try it shows the reply for any set of answers.
- Use it on a ticket. The agent clicks the macro in the Slotwell sidebar, answers the form, watches the Preview, and clicks Fill reply. The macro's normal actions (status, group, tags, fields) apply as usual, then the answers go into the reply.
Blank types
| Token | What the agent gets |
|---|---|
[[text:Order number]] | A one-line field |
[[long:Notes]] | A multi-line field |
[[number:Refund amount; min=1; max=500]] | A number, checked against the bounds |
[[email:Return contact]] | An email address, checked |
[[url:Tracking link]] | A full https:// link, checked |
[[date:Ship date; default=+2 business days; min=today; format=dddd, MMMM D]] | A date picker |
[[choice:Resolution|Refund|Replacement]] | A pick list |
[[multi:Items|Frame|Wheels; sep=" and "]] | Pick several |
Every blank is required unless it says optional. Use the same label twice to print the same answer twice.
Start with values from the ticket
default= fills a blank before the agent sees it, so they only correct it when needed:
| Default | Fills in |
|---|---|
requester.first_name, requester.email, requester.field.<key> | From the requester |
org.name, org.field.<key> | From the organization |
ticket.id, ticket.subject, ticket.field.<id> | From the ticket |
agent.name, agent.first_name | From the agent |
today, +3 business days, +1 week, 2026-12-24 | A date |
Other settings after ;: hint= adds help text under the field, min= and max= set bounds (numbers, character counts or dates), format= sets how a date prints (default MMMM D, YYYY), and save=<ticket field id> also writes the answer into a ticket field.
Example
Hi [[text:First name; default=requester.first_name]],
We refunded $[[number:Refund amount; min=1]] to your card on
[[date:Refund date; default=today]]. It usually shows within a
few days.
The agent sees three fields with the name and date already filled, types the amount, and the reply is written for them.
Applying the macro from the regular macro menu
Agents don't have to change habits. If someone applies a macro with blanks from Zendesk's own macro menu, the sidebar shows Your reply has N blanks to fill. Fill the blanks opens the same form. Square brackets are safest for macros applied this way; curly-bracket tokens such as {{text:Order number}} also work.
What it costs
Slotwell is billed monthly by Zendesk per Zendesk account, by number of shared macros: Team $99 a month (up to 25), Professional $199 (up to 250), Enterprise $349 (any number). Every feature is on every plan, with a 14-day free trial. The full token reference is in the Slotwell documentation.
Slotwell
Fill-in macro prompts: macros that ask agents for details, check answers and add conditional text. From $99 a month per Zendesk account.
Questions
Can a macro stop agents leaving a field blank?
Yes. Every blank is required unless you add optional. If one is empty or fails its check, Fill reply marks it and doesn't touch the reply until it's fixed.
How is this different from Zendesk placeholders?
Placeholders print data the ticket already has. A blank asks the agent for something the ticket doesn't have, such as a refund amount. Both work in the same macro; see Zendesk's placeholder reference.
Can the answer also go into a ticket field?
Yes. Add save=<ticket field id> to the blank. Drop-down fields match by option name.
Do agents need to learn the token syntax?
No. Only the person writing macros does, and the blank builder in Slotwell's Blank guide writes the token for them.
More Slotwell guides
More Zendesk guides
- How to set up 301 redirects in a Zendesk help center (Sprucewell)
- How to pause or cancel a Recharge subscription from Zendesk (Skipwell)
- How to show BambooHR employee info in Zendesk (Staffwell)
- How to cancel or hold a Magento order from a Zendesk ticket (Satchelwell for Magento and Adobe Commerce)