Skip to main content
All CollectionsWhatsApp Business App
How to use Variables in WhatsApp Business?
How to use Variables in WhatsApp Business?

Everything you need to know about variables. - WhatsApp Business

Updated over a week ago

Variables are dynamic fields based on the customer data on your e-commerce platform, such as {{contact.name}} and {{cart.link}}. These fields will vary according to the customer data on your e-commerce platform. In other words, each customer will receive a WhatsApp message customized with their registered name or their cart link in your e-commerce platform.

⚡ Attention

Variables are recognized only if they are enclosed in double curly brackets, like {{order.link}}.

Usage

There are different usages of variable fields based on the automation type. Check the table below to know each field and the value it brings from your e-commerce platform.

Variable Field

Value

{{contact.name}}

The customer's name as registered on your ecommerce platform.

{{cart.link}}

The cart link that was abandoned by the customer.

{{order.id}}

The customer's order number.

{{order.link}}

The customer's order Link.

{{order.status}}

The order status as it changes on your ecommerce platform.

Availability on automations

Each automation includes available variable fields that you can utilize in the automation message. Please refer to the table below to see the available variable fields for each automation.

Automation

Variable Fields Available

Cart Abandonment

{{contact.name}}, {{cart.link}}

Order Creation Notification

{{contact.name}}, {{order.id}}, {{order.link}}

Order Status Notifications

{{contact.name}}, {{order.id}}, {{order.status}}, {{order.link}}

⚡ Attention

You cannot use a variable field that is not listed in the automation you are setting up.

You can determine the available variables in the automation as depicted in the screenshot below:

Did this answer your question?