Inserting a macro
Open a ticket and click the Macros button in the reply composer toolbar. It has a lightning-bolt icon and sits next to the AI compose button.1
Pick a macro
The list is alphabetical. Once you have five or more macros a Search macros… box appears at the top so you can type part of a name instead of scrolling.
2
Read it over
The text lands at your cursor. If the line you are on already has text, the macro starts on a new line beneath it. Anything you have already typed stays put.
3
Edit and send
A macro is ordinary text once inserted. Trim it, add a sentence, or send it as is.
Variables
A macro can carry placeholders that fill in from the ticket at the moment you insert it. Write{{customer.first_name}} and the agent sees Hi Dana, instead of a blank to fill.
Variables resolve when the macro is inserted, using the ticket you have open and the account you are signed in with. Two agents inserting the same macro get different signatures.
In the variable picker these are grouped under Customer, Human agent, and Ticket.
Shopify variables
If the AI agent has a Shopify store connected, macros can also pull in the customer’s order. Two more groups appear in the picker, Shopify order and Shopify customer, and both read from the most recent order Chatbase can match to the person who opened the ticket. That makes a shipping-update macro a one-click reply instead of a trip to the Shopify admin:
Shopify customer covers the account the order was placed under, which is not always the person emailing you.
Province and country arrive as Shopify’s codes, so expect
CA rather than California and US rather than United States. Write the surrounding sentence to suit: “ships to {{shopify.last_order.city}}, {{shopify.last_order.province}}” reads fine, “the great state of {{shopify.last_order.province}}” does not.
Tracking fields come from the first fulfillment on the order that carries any tracking at all. A split shipment with two parcels gives you one tracking number, not both. For those, paste the second from the Shopify Orders panel in the ticket sidebar.
tracking on an unconnected agent tells you where to go rather than returning nothing.
Fallbacks
Not every ticket has a customer name, and not every customer has an order. Add a fallback after a| and it is used whenever the variable is empty:
{{shopify.last_order.number}} and all. That is deliberate: it is loud enough that you catch it before sending, rather than quietly shipping “your order has shipped”. Read the inserted text before you hit send.
Formatting
The reply field in the macro dialog is the same editor as the ticket composer, with the same formatting toolbar:- Headings: Normal text, Heading 1, Heading 2, Heading 3
- Bold, Italic, Underline, Strikethrough
- Links, through Insert Link
- Bullet List and Ordered List
- Blockquote, Inline Code, Code Block, and Divider
A few rules to keep in mind:
- Links must start with
http://,https://, ormailto:. A variable can’t be part of a link URL, sohttps://example.com/orders/{{ticket.number}}is rejected with Variables can’t be used in link URLs. Put the variable in the link text or next to the link instead. - Format a variable as a whole or not at all. A variable with bold applied to only part of it stays in the reply as literal text. Select the full
{{...}}before you apply a style. - Images can’t be added to a macro reply. Attach them as files instead.
- Macros saved before formatting arrived open as plain paragraphs, one per line. Edit and save one to add formatting.
Files
A macro can carry up to five files. Inserting it adds them to the reply as attachments, next to the text, the same as if you had attached them yourself. In the picker and on the settings page, a paperclip and a number next to a macro show how many files it carries. A reply holds at most five files. If the composer already has some, the macro fills the free slots and skips the rest with a Maximum 5 attachments per message warning. Inserting two macros, or the same macro twice, adds the files each time, so check for doubles before you send. You cannot send until every file has finished copying in. A file that fails shows an error on its chip and the message Some of the macro’s files could not be attached. Remove that file to send without it. Two kinds of ticket take no attachments at all: Instagram comments, and WhatsApp conversations whose messaging window has expired when no template is selected. On those, the macro’s text and tags still go in, and a warning says how many files were skipped.Managing macros
Macros live on Settings → Helpdesk → Macros. The page lists every macro by name with a preview of its reply, a Search macros… box, and a Create macro button. Each row has an Edit and Delete action behind its menu.Creating a macro
1
Click Create macro
The New macro dialog opens.
2
Name it
The name is how agents find the macro in the composer, so make it the thing they would search for:
Refund policy, not Reply 12. Names are unique within the AI agent, ignoring case.3
Write the reply
Type the text as you want it to land, and format it with the toolbar above the field (see Formatting). Type
{{ anywhere to open the variable list, or click Add variable above the field. The Add variable popover has an If missing, use box, so you can set the fallback and pick the variable in one step.4
Attach tags (optional)
Click Add tag under the reply field to pick the tags the ticket should receive when the macro is used. They appear on the Adds to ticket row, and the × on a chip removes one. See Tags.
5
Attach files (optional)
Click Attach files below the reply field and pick up to five files. Each can be up to 25 MB, and any file type works. Click an image to preview it. Create macro stays greyed out until every upload has finished.
6
Click Create macro
The macro appears in every agent’s composer straight away.
{{customer.phone}}, the dialog warns you that it will be inserted as text. Nothing stops you saving it, so read the warning.
A macro needs at least a reply, a tag, or a file, so a macro that only sends a file is fine. Closing the dialog without saving throws away any files you uploaded in it.
Editing a macro
Pick Edit on the row. Changes take effect for the next insertion. Replies already sent keep the old wording and the old files.Deleting a macro
Pick Delete on the row and confirm. The macro is removed for everyone on the AI agent, and there is no undo. The macro’s files are deleted with it.Who can do what
Owners can manage macros. For everyone else it is a separate permission, granted per role alongside the other Helpdesk permissions. Most support agents only need to insert. Keep the manage permission with the few people who decide how your replies should sound.
Good to know
- Macros are part of the Helpdesk, so they need a plan that includes it.
- Each AI agent can hold up to 300 macros. At the cap, Create macro greys out and tells you why when you hover it.
- Names can run to 200 characters. A reply can run to 2,500 characters of text. Formatting doesn’t count toward that limit.
- A macro can carry up to five files of up to 25 MB each.
- The variable list covers customer, agent, ticket, and Shopify fields. Anything else inside
{{ }}stays as typed.
