This article lists every dynamic variable you can use in CoCo WhatsApp templates, where each one is allowed, how default values work, and how CTA button links handle locales and UTM attribution. It applies whenever you build or edit a template in the Flow builder or the Template Editor, including templates for campaigns (called Icebreakers in your dashboard).
What dynamic variables can I use in a WhatsApp template?
You can use the variables listed below, and you insert them from the dropdown at the top of the body section in the template builder. Each dynamic variable is written as [[path]]. Where a variable can go depends on its type: text variables go in the body, link variables go in a button, and image variables go in the header.
Text variables, for the message body:
[[contact.name]]: the contact's name, with a default value you set (see below)[[cart.summary]]: for abandoned cart messages[[order.summary]]: the items in the order[[shop.name]][[subscription.summary]][[shopify.dynamic_discount]]The carrier and delivery set:
[[order.carrier]],[[order.shipping-status]],[[order.delivery-promise]],[[order.delivery-method]], and[[order.carrier-raw-status]]
Link variables, for a button only (never the body):
[[cart.recovery-url]][[cart.buy-now-url]][[order.tracking-url]][[order.tracking-page-url]][[fulfillment.tracking-url]]
Image variables, [[cart.product-image]] and [[custom-image]], are handled by the header component. Never type them into message text.
This is the complete list of variables CoCo supports. The AI Flow Builder is instructed never to invent variables outside it, such as [[first_name]] or [[customer_name]], and you should stick to the same list when writing templates by hand.
Why can't I see the variable I expected in the dropdown?
A variable appears only when your flow's trigger provides the data it needs. Each variable requires one of five contexts: default, checkout, order, fulfillment, or subscription.
Cart variables appear on flows triggered by Checkout Started.
Order variables appear on order-triggered flows.
Subscription variables appear only where a subscription context exists.
If a variable is missing, check that your flow's trigger provides the matching context.
Is there an order number variable, or only order.summary?
There is no order number variable today. The order variables available are [[order.summary]], [[order.tracking-url]], [[order.tracking-page-url]], [[order.carrier]], [[order.shipping-status]], [[order.carrier-raw-status]], [[order.delivery-promise]], and [[order.delivery-method]].
For a post-purchase message, use [[order.summary]], which shows the items in the order. Then add a Track Order button using [[order.tracking-page-url]], so the customer can identify their order without needing the number. For abandoned cart messages, use [[cart.summary]] instead.
Why does my preview show an extra space where the customer's name should be?
A blank gap in the preview means the default value for [[contact.name]] is empty for that template and language. It is not a deliberate placeholder.
[[contact.name]] has a default value that CoCo uses when a contact has no name on file. In the Template Editor, it is the field labeled "Default value for contact.name (if not available)", and you cannot save the template until it is filled in. The preview shows that default value in place of the variable. For example, "Hi [[contact.name]]" with a default of "there" previews as "Hi there".
Set a default value in every language before activating a template, whether you built it by hand or with AI.
Does the default (fallback) text get translated into each language?
No single fallback is shared across languages. Each language of a message is its own separate template, with its own variables and its own default value.
When you build or translate a flow with AI, the AI writes each language's message copy natively instead of copying English across. Even so, set the default value for [[contact.name]], and any other variable with a default, in every language before you activate. Open each language's Template Editor and check it yourself rather than assuming the AI has already set it.
How do I add a checkout or cart recovery link to a button?
Open the CTA button dropdown and pick the dynamic link you need. Checkout and tracking links are button URLs, not body variables, which is why you won't find them in the body variable dropdown.
[[cart.recovery-url]]: abandoned cart recovery[[cart.buy-now-url]]: a Shopify draft-order invoice link pre-loaded with the abandoned cart items[[order.tracking-url]]or[[order.tracking-page-url]]: post-purchase order tracking
Every cart recovery message should carry at least one button using [[cart.recovery-url]] as the main call to action.
Should my button links include a locale like /fr or /de?
Use your standard store links and let your website's own internationalization logic send the customer to the right language. Don't rely on CoCo to add a locale for you. Static button URLs are sent as you enter them, with UTM parameters added (see the next section).
If you need a specific locale for a specific market, add that full locale URL directly on that language's version of the message.
How do links get WhatsApp attribution, and can several flows share the same UTM link?
CoCo adds UTM parameters to your links automatically at send time, and you control the pattern on the Settings page. By default:
utm_sourceiswhatsapputm_mediumiscampaignsorautomations, depending on the send typeutm_campaignis the template's name, converted to a URL-friendly slug
Because the campaign value comes from the template name, the links CoCo generates differ from template to template. To have several flows or templates share one attribution link, put your own utm_ parameters directly on the button URL. When a link already carries utm_ parameters, CoCo leaves it untouched.
To change the automatic pattern instead, edit the UTM settings on the Settings page. Your pattern can use the {medium} and {template_name} tokens.
Flow sends are tagged utm_medium=automations.
Why do my links look like dashboard.my-coco.ai/api/redirect?
Dynamic button links are wrapped in a CoCo redirect link, which forwards the customer to the real destination. CoCo does not add UTM parameters a second time to a link that is already wrapped this way.
Why is my template name limited to 50 characters?
The Template Name you type in the Template Editor is capped at 50 characters, and it must be unique in your account. If you reuse a name, you'll see "Template name must be unique. A template with this name already exists."
This is the display name you see in the CoCo dashboard. It is separate from the technical name submitted to Meta, which CoCo generates automatically in the pattern {flow title}_{step name}_{language}_{timestamp}_{random suffix} and which often runs 85 characters or longer.
If your naming convention doesn't fit in 50 characters, shorten the flow and market parts of the display name. The technical name is not affected. CoCo doesn't publish a recommended naming convention, so choose a short format that fits your team.