Summary
Wati's Shopify app lets you create automated WhatsApp messages for your customers. To personalize these messages, you can use predefined variables. These variables automatically pull customer or order information from your Shopify store and display them in your messages.
This article explains the available variables and how you can use them in your template messages for Shopify automation.
Instructions
What Are Predefined Variables?
Predefined variables in Wati help you personalize automated WhatsApp messages by adding dynamic content like the customer's name, order number, tracking details, or checkout links.
These variables are especially useful when setting up automated messages for scenarios like:
Abandoned cart reminders
Order confirmations
Shipping updates
Cash on Delivery (COD) confirmation or cancellation
When you insert a variable in your template message, Wati will automatically replace it with the relevant customer or order data from your Shopify store.
Available Variables in Wati Shopify App
Below is the list of predefined variables you can use in your Shopify automated messages.
Store Information Variables
| Variable | Description | |----|----| | ####{{shop_name}}
| Displays the name of your Shopify store. |
Customer Information Variables
| Variable | Description | |----|----| | ####{{first_name}}
| Displays the customer's first name. | | ####{{last_name}}
| Displays the customer's last name. |
Order Details Variables
| Variable | Description | |----|----| | ####{{order_number}}
| Displays the order number. | | ####{{total_price}}
| Displays the total price of the order. | | ####{{discount_code}}
| Displays any discount code applied to the order. | | ####{{order_status_url}}
| Provides a link to view the order status page on Shopify. |
Abandoned Checkout Variables
| Variable | Description | |----|----| | ####{{abandoned_checkout_url}}
| Provides a direct checkout link in the message body for abandoned cart recovery. | | ####{{abandoned_checkout_url_partial_variable}}
| To be used in CTA buttons to generate the checkout link dynamically. |
Tracking Details Variables
| Variable | Description | |----|----| | ####{{tracking_url}}
| Provides a link to track the order shipment. | | ####{{tracking_company}}
| Displays the name of the shipping provider. | | ####{{tracking_number}}
| Displays the shipment tracking number. |
Cash On Delivery (COD) Action Variables
| Variable | Description | |----|----| | ####{{cod_cancel_url}}
| Adds a link in the message body for customers to cancel their COD order. | | ####{{cod_confirm_url}}
| Adds a link in the message body for customers to confirm their COD order. | | ####{{cod_cancel_url_partial_variable}}
| To be used in CTA buttons to generate the COD cancel link dynamically. | | ####{{cod_confirm_url_partial_variable}}
| To be used in CTA buttons to generate the COD confirm link dynamically. |
Product Image Variable
| Variable | Description | |----|----| | ####{{product_image_url}}
| Displays the image of the product in the message. Useful for abandoned cart or order confirmation messages. |
Where Can You Use These Variables?
You can use these variables while creating or editing a template message for your Shopify automation in Wati.
There are two main places to use them:
In the message body text for personalization.
In CTA (Call-to-Action) buttons for dynamic links (requires partial variables like
####{{abandoned_checkout_url_partial_variable}}
).
Note: When using partial variables in buttons, you must add https://s.wati.io/
before the variable for the link to work correctly.
Example:https://s.wati.io/####{{abandoned_checkout_url_partial_variable}}
Important Things to Remember
These variables will only work when used in Shopify automated template messages.
Wati will automatically fetch the correct value for the variable when sending the message.
Links added using URL variables in the message body are automatically shortened by Wati.
Variables such as
####{{product_image_url}}
help create visually engaging messages.
Frequently Asked Questions (FAQs)
General Questions
1. What are variables in Wati Shopify app template messages?
→ Variables are placeholders you can add to your template messages in Wati's Shopify app. When the message is sent, these variables automatically pull real data from your Shopify store, like customer names, order details, or tracking information.
2. Where can I use these variables?
→ You can use these variables in the body text or buttons of template messages specifically for Shopify automated messages.
3. Will these variables work in any template message?
→ No. These variables will only display values when used in template messages designed for Shopify automated messages.
4. How do I add these variables to my message?
→ Simply insert the variable name (like ####{{shop_name}}
or ####{{order_number}}
) into the body text or button field when creating a template message in Wati.
Variable Usage Questions
5. Can I use variables in message buttons?
→ Yes, certain variables like ####{{abandoned_checkout_url_partial_variable}}
, ####{{cod_cancel_url_partial_variable}}
, and ####{{cod_confirm_url_partial_variable}}
are specifically meant for use in buttons within template messages.
6. What is the difference between abandoned_checkout_url and abandoned_checkout_url_partial_variable?
→ abandoned_checkout_url
is used in the message body to display the full checkout link, while abandoned_checkout_url_partial_variable
is used to insert the checkout link in a message button.
7. What does order_status_url show in the message?
→ The order_status_url
variable displays a link directing customers to their Shopify order status page.
8. Can I show customer names in the template messages?
→ Yes, you can use ####{{first_name}}
and ####{{last_name}}
variables to personalize messages with the customer's first and last names.
9. Is it possible to display product images in the message?
→ Yes, the ####{{product_image_url}}
variable lets you display the product image in template messages, commonly used for abandoned cart or order confirmation messages.