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.
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. 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
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.
Editing a macro
Pick Edit on the row. Changes take effect for the next insertion. Replies already sent keep the old wording.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. Tickets where it was already used are unaffected, since the text was pasted in at insertion time.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 20,000.
- Chatbase stores replies as plain text. Bold, links, and other formatting from the editor do not survive the save.
- The variable list covers customer, agent, ticket, and Shopify fields. Anything else inside
{{ }}stays as typed.
