Dynamic Variables in Automated Responses

Re:amaze supports certain dynamic variables for Response Templates, Autoresponders, and Workflow Responses. Variables are related to the customer associated with the conversation context and further variables are made available depending on integrations that you've enabled in your account.

Dynamic Variables are based on Liquid and can be used with simple logical statements. Please refer to the Liquid documentation for advanced template usage.

Basic Variables


  • {{ customer.name }} -- The full name of the customer
  • {{ customer.friendly_name }} -- The "friendly name" of the customer. This defaults to the first token in the customer's name\, which works for names with an English origin. Otherwise\, you can also change the friendly name of a customer under the contact page.
  • {{ customer.email }} -- The email of the customer. Available only when the conversation context is Chat or Email


  • {{ thread_url }} -- A permalink to the conversation
Integration Variables

Integration Variables are only made available when you have integrations connected with Re:amaze. Also, integration variables are actually nested attributes, so there is a lot of data made available conditional to what's made available via the third-party integration API. The listed variables below are just a sample of what's made available.

Shopify Variables

  • {{ integrations.shopify.orders[0].id }} -- ID of the last order
  • {{ integrations.shopify.orders[0].order_number }} -- Number of the last order
  • {{ integrations.shopify.orders[0].order_status_url }} -- Status URL for the last order
  • {{ integrations.shopify.orders[0].fulfillments[0].tracking_url }} -- Tracking URL of the last order
  • {{ integrations.shopify.orders[0].fulfillments[0].tracking_number }} -- Tracking number of the last order
  • {{ integrations.shopify.orders[0].refunds[0].processed_at }} -- Last refund date on the last order

Bigcommerce Variables

  • {{ integrations.bigcommerce.orders[0].id }} -- ID of the last order
  • {{ integrations.bigcommerce.orders[0].status }} -- Status of the last order
  • {{ integrations.bigcommerce.latest_tracking.tracking_number }} -- Tracking number of the last order
  • {{ integrations.bigcommerce.latest_tracking.shipping_method }} -- Shipping method of the last order

Woocommerce Variables

  • {{ integrations.woocommerce.orders[0].id }} -- ID of the last order
  • {{ integrations.woocommerce.orders[0].number }} -- Number of the last order
  • {{ integrations.woocommerce.orders[0].refunds[0].total }} -- Last refund amount on the last order

Notes on usage

Because of the complex nature of integration variables, some values may not exist. We recommend using logical statements to work around these cases. That is, before using a variable it's highly recommended to check for its existence as in the simple example below:

{% if integrations.shopify.orders and integrations.shopify.orders[0].order_status_url %}
  Some text including {{ integrations.shopify.orders[0].order_status_url }}
{% else %}
  Something that doesn't include the variable, since it's not available.
{% endif %}

The more complete example below is a sample of how logical statements can be used to generate a response, which can be used a starter template for your own situation:

Hi {{ customer.friendly_name }},

{% if integrations.shopify.orders and integrations.shopify.orders != empty -%}
Here is shipping information related to your last order:

Order #: {{ integrations.shopify.orders[0].order_number }} 
Status URL: {{ integrations.shopify.orders[0].order_status_url }}
{% if integrations.shopify.orders[0].fulfillments[0].tracking_number -%}
Tracking number: {{ integrations.shopify.orders[0].fulfillments[0].tracking_number }}
Tracking URL: {{ integrations.shopify.orders[0].fulfillments[0].tracking_url }}
{%- endif -%}
{%- else -%}
We don't have any records of recent orders. Please let us know if you placed your order under a different email address than {{ customer.email }}
{%- endif  %}