easymessage.

Use variables in templates

Put the customer's name, order number, items, tracking link and more into a message.

A variable is a placeholder that easymessage fills in for each customer when it sends the message. In the template it looks like {{1}} or {{customer_name}}.

Add a variable

  1. In the template editor, put the cursor where the value goes and click Insert a variable.
  2. Give it an Example value for Meta's reviewers.
  3. In the flow's Send WhatsApp template step, choose which store detail fills each variable. The preview shows the result with sample data.

Store details you can use

DetailExample
Customer first name / last nameMona
Order number#1042
Order / cart total and currency1,240 EGP
Cart items with prices2× Linen shirt (M) — 1,240 EGP
Items summary / first product nameLinen shirt
Order status linkLink to the Shopify order status page
Checkout recovery linkLink back to the abandoned checkout
Tracking number, tracking link, shipping carrierEG4829310 · Bosta
Discount codes used, payment methodWELCOME10 · Cash on Delivery
Store name, customer emailNile Threads

Tips

  • Variables can't be the first or last word of the message. Meta rejects that, so add text around them.
  • For links, put the variable at the end of a button URL, for example https://your-store.com/{{1}}. Don't put a whole link in the body.
  • If a value can be empty, such as a tracking number before shipping, send that template from a step that runs after the value exists.

Still stuck? Contact us — tell us what you tried and what you see, and we'll help you finish the setup.

On this page