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 predefined variables in the Wati Shopify app?
Predefined variables are placeholders that automatically pull customer or order data from your Shopify store and insert it into WhatsApp messages when they are sent.
2. Why should I use predefined variables in automated WhatsApp messages?
They help personalize messages by adding details like customer name, order number, tracking links, or checkout links, making messages more relevant and effective.
3. Which Shopify automation scenarios support predefined variables?
They can be used for abandoned cart reminders, order confirmations, shipping updates, and Cash on Delivery (COD) confirmation or cancellation messages.
Available Variables and Usage
4. What types of information can I include using variables?
You can include store name, customer details, order information, abandoned checkout links, tracking details, COD action links, and product images.
5. How do abandoned checkout variables help with recovery?
They add a direct checkout link to the message, allowing customers to quickly return and complete their purchase.
6. Can I include tracking details in WhatsApp messages?
Yes, you can share the tracking link, shipping provider name, and tracking number using tracking-related variables.
7. How do COD confirm and cancel variables work?
These variables add links that let customers confirm or cancel their COD orders directly from the WhatsApp message.
Templates and Limitations
8. Where can I use predefined variables in a template?
You can use them in the message body text and in CTA buttons while creating or editing Shopify automated template messages in Wati.
9. Are there any important limitations I should be aware of?
Yes, these variables only work in Shopify automated template messages, partial variables in CTA buttons require https://s.wati.io/ as a prefix, and URL links in message bodies are automatically shortened by Wati.

