---
title: "Variables available in automations"
description: "Variable syntax and the full list per trigger: contact, order, customer, shipping address, cart, shipment, discount code, API, webhook, Recharge."
url: https://help.getkanal.com/en/articles/121-variables-available-in-automations
collection: "Automations"
updated: 2026-11-29
language: en
alternates: [fr-fr]
---

# Variables available in automations

Variable syntax and the full list per trigger: contact, order, customer, shipping address, cart, shipment, discount code, API, webhook, Recharge.

Variables personalize your messages with data from the contact, the trigger or an earlier step of the flow. They are replaced by their value when the message is sent.

## How to insert a variable

-   In a free-form message (Send Message, Send Message with button link, Ask text, Ask List Option...), insert the variable with the variable picker, or type it with its exact syntax: `{{recipient.name}}` for the contact, `{{variables.name}}` for all other data.
    
-   In a template, map each template variable to a piece of data with **Add a variable**. Variables typed by hand in a template's text are rejected.
    

> **Warning:** Only the `{{recipient.xxx}}` and `{{variables.xxx}}` formats are replaced. `{{firstname}}`, or `{{shopify_tracking_url}}` without the variables. prefix, reach the customer exactly as typed.

The variables offered depend on the trigger: an order variable does not exist in an Inbound message flow. Below, the variables are written without the `{{variables. }}` wrapper for readability: `shopify_order_id` is written `{{variables.shopify_order_id}}` in a message.

## Recipient (every flow)

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Variable</p></th><th colspan="1" rowspan="1"><p>Content</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>{{recipient.name}}</code></p></td><td colspan="1" rowspan="1"><p>Contact name (offered in the picker)</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>{{recipient.first_name}}</code></p></td><td colspan="1" rowspan="1"><p>First name. Not offered in the automation picker: if the contact has no first name, the text is sent as is.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>{{recipient.last_name}}</code></p></td><td colspan="1" rowspan="1"><p>Last name. Not offered in the automation picker: if the contact has no last name, the text is sent as is.</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>{{recipient.phone}}</code></p></td><td colspan="1" rowspan="1"><p>Phone number (offered in the picker)</p></td></tr></tbody></table>

> **Warning:** **Empty first name:** in an automation, if the contact has no first name, the text {{recipient.first\_name}} is sent as is to the customer. Only use this variable when the first name is known (for example after an Ask text question), or use {{recipient.name}} instead. In a Shopify flow, the shopify\_customer\_first\_name variable reads the first name from the Shopify customer record.

## Contact variables

Variables saved on the contact (Manage contact variables and Ask text actions) are used as `{{variables.variable_name}}`.

## Order (Post-purchase)

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Variable</p></th><th colspan="1" rowspan="1"><p>Content</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_order_id</code></p></td><td colspan="1" rowspan="1"><p>Order number</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_order_total_price</code></p></td><td colspan="1" rowspan="1"><p>Total amount</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_order_status_url</code></p></td><td colspan="1" rowspan="1"><p>Shopify order status page</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_product_image_first</code></p></td><td colspan="1" rowspan="1"><p>Image of the first product</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_product_image_most_expensive</code></p></td><td colspan="1" rowspan="1"><p>Image of the most expensive product</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_product_image_cheapest</code></p></td><td colspan="1" rowspan="1"><p>Image of the cheapest product</p></td></tr></tbody></table>

Product images are used as media, for example as a message header image.

## Customer (Post-purchase, Abandoned cart)

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Variable</p></th><th colspan="1" rowspan="1"><p>Content</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_customer_first_name</code></p></td><td colspan="1" rowspan="1"><p>First name</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_customer_last_name</code></p></td><td colspan="1" rowspan="1"><p>Last name</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_customer_complete_name</code></p></td><td colspan="1" rowspan="1"><p>Full name</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_customer_locale</code></p></td><td colspan="1" rowspan="1"><p>Language</p></td></tr></tbody></table>

## Shipping address (Post-purchase, Shipment update)

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Variable</p></th><th colspan="1" rowspan="1"><p>Content</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_first_name</code></p></td><td colspan="1" rowspan="1"><p>First name</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_last_name</code></p></td><td colspan="1" rowspan="1"><p>Last name</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_name</code></p></td><td colspan="1" rowspan="1"><p>Full name</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_phone</code></p></td><td colspan="1" rowspan="1"><p>Phone</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_address1</code></p></td><td colspan="1" rowspan="1"><p>Address line 1</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_address2</code></p></td><td colspan="1" rowspan="1"><p>Address line 2</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_city</code></p></td><td colspan="1" rowspan="1"><p>City</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_zip</code></p></td><td colspan="1" rowspan="1"><p>Postal code</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_province</code></p></td><td colspan="1" rowspan="1"><p>Region / Province</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_country</code></p></td><td colspan="1" rowspan="1"><p>Country</p></td></tr></tbody></table>

## Cart (Abandoned cart)

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Variable</p></th><th colspan="1" rowspan="1"><p>Content</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_abandoned_checkout_url</code></p></td><td colspan="1" rowspan="1"><p>Link to resume the cart</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_total_price</code></p></td><td colspan="1" rowspan="1"><p>Total cart amount</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_product_image_first, _most_expensive, _cheapest</code></p></td><td colspan="1" rowspan="1"><p>Product images, as in the Order section</p></td></tr></tbody></table>

The Customer variables (first name, last name, full name, language) are also available.

## Shipment (Shipment update): 14 variables

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Variable</p></th><th colspan="1" rowspan="1"><p>Content</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_tracking_number</code></p></td><td colspan="1" rowspan="1"><p>Tracking number</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_tracking_url</code></p></td><td colspan="1" rowspan="1"><p>Tracking URL</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_tracking_company</code></p></td><td colspan="1" rowspan="1"><p>Carrier</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_order_status_url</code></p></td><td colspan="1" rowspan="1"><p>Shopify order status page</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_first_name</code></p></td><td colspan="1" rowspan="1"><p>First name</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_last_name</code></p></td><td colspan="1" rowspan="1"><p>Last name</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_name</code></p></td><td colspan="1" rowspan="1"><p>Full name</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_phone</code></p></td><td colspan="1" rowspan="1"><p>Phone</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_address1</code></p></td><td colspan="1" rowspan="1"><p>Address line 1</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_address2</code></p></td><td colspan="1" rowspan="1"><p>Address line 2</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_city</code></p></td><td colspan="1" rowspan="1"><p>City</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_zip</code></p></td><td colspan="1" rowspan="1"><p>Postal code</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_province</code></p></td><td colspan="1" rowspan="1"><p>Region / Province</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>shopify_destination_country</code></p></td><td colspan="1" rowspan="1"><p>Country</p></td></tr></tbody></table>

Example of a free-form message after a customer reply: `Your parcel is on its way: {{variables.shopify_tracking_url}}`. In a template, map the variable with Add a variable.

## Discount code (Generate discount code)

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Variable</p></th><th colspan="1" rowspan="1"><p>Content</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>voucher_code_ID</code></p></td><td colspan="1" rowspan="1"><p>The generated code: prefix, hyphen and 6 characters (e.g. KANAL-3F9A2C)</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>voucher_value_ID</code></p></td><td colspan="1" rowspan="1"><p>The discount value, shown as "15%" or "10.00 EUR"</p></td></tr><tr><td colspan="1" rowspan="1"><p><code>voucher_expires_ID</code></p></td><td colspan="1" rowspan="1"><p>Expiration date (dd/mm/yyyy hh:mm, UTC time, 1 to 2 hours behind French time), or "Illimité" with no expiration</p></td></tr></tbody></table>

ID is the node identifier: insert these variables with the picker rather than by hand.

## API response (API Call)

Each field mapped in an API Call node becomes `{{variables.api_response_ID_name}}`, where ID is the node identifier and name the variable name you chose. It is offered in the picker of the next nodes.

## Incoming webhook

The keys sent in the call's `variables` object (and declared in the node panel) are used as `{{variables.key}}`. Example: `"variables": { "code": "WELCOME10" }` gives `{{variables.code}}`. The name, first\_name, last\_name and email fields fill in the contact: then use `{{recipient.first_name}}`.

## Recharge (Recharge event)

Recharge variables are written `{{variables.recharge_...}}` and depend on the event:

-   **All events**: recharge\_event, recharge\_customer\_email, recharge\_customer\_first\_name, recharge\_customer\_last\_name, recharge\_external\_customer\_id, recharge\_address\_id, recharge\_customer\_id.
    
-   **Charge events** (Upcoming renewal, Payment failed, Payment permanently failed, Renewal paid): recharge\_charge\_id, recharge\_status, recharge\_scheduled\_at, recharge\_total\_price, recharge\_currency, recharge\_product\_title (title of the first product), recharge\_line\_items\_count, recharge\_error\_type, recharge\_number\_times\_tried, recharge\_retry\_date.
    
-   **Subscription events** (Subscription started, Subscription cancelled, Delivery skipped): recharge\_subscription\_id, recharge\_variant\_title, recharge\_sku, recharge\_price, recharge\_quantity, recharge\_next\_charge\_scheduled\_at, recharge\_order\_interval\_frequency, recharge\_order\_interval\_unit, recharge\_cancellation\_reason, recharge\_cancellation\_reason\_comments, recharge\_product\_title (product title).
    

No variable provides a link to update the payment card: use a fixed link to your customer portal.

## Custom store

The Store order created and Store shipment update triggers offer in the picker the data your store sends through the Commerce API: order, cart, shipment and customer tags. Use the picker to insert them.

## Learn more

-   [Understanding Automation Triggers](https://help.getkanal.com/en/articles/82-understanding-automation-triggers.md)
    
-   [Actions available in an automation](https://help.getkanal.com/en/articles/119-actions-available-in-an-automation.md)
    
-   [Conditions available in an automation](https://help.getkanal.com/en/articles/120-conditions-available-in-an-automation.md)
