Using the Notification node in flows
Personalize your notifications and include dynamic information when building flows.
This guide lists the available variables per template, allowing you to create compelling and dynamic content.
- Shopify Checkout Integration
- Migrated Shopify Checkout Integration
Before you start
- Customers must opt-in to marketing to receive notifications. Failed Payment Recovery is the only Revenue Tool that does not require the customer to accept marketing.
- Notifications sent through a Failed Payment Recovery strategy are transactional and cannot contain any marketing content or terminology. Avoid using marketing language in your notifications to remain compliant.
How it works
Each template includes a notification node, so you can automate customer communication. Notifications make it easy to announce free gifts, incentives, or opportunities to recover failed payments.
You can include variables in your notifications to provide customers with dynamic and contextual information and personalize the flow to assert your brand and further customer loyalty.
Send notifications in multiple languages
Translate notifications into multiple languages, and communicate with your customers in their preferred language. Recharge supports multiple translations, allowing you to update the sender name, subject line, and the notification’s email so you can connect with customers globally.
Recharge uses customer data stored on Shopify to determine the customer’s default language before sending the notification. Review customer accounts in Shopify to confirm their preferred contact language.
See Translate your notifications for detailed setup instructions.
Using the Notification node
Edit or add the Notification node to communicate with customers throughout the flow.
Click on the notification node and select Edit email body in any template to personalize the notification content. You can include any of the email variables to personalize your content. Available variables vary depending on the template.
Preview your notification
Click on the preview notification button in the notification node to render the body of the email directly in the template.
Review the notification as if you were a customer, and make sure your variables read correctly. The flow may differ depending on the state of your template:
- Draft templates: Some variables may not render, or Recharge may display placeholder values depending on the template type
- Saved templates: The variables render correctly, and display the correct product name and price
Failed Payment Recovery notifications
Failed Payment Recovery notifications are part of a pre-built strategy, configured through a specific builder. While Recharge offers standard language, you can change the notifications to suit your business needs. Click the pencil icon next to any notification in a strategy to open the notification builder and edit the notification.
Translate your notifications
Translate the notification directly in the Notification node or notification builder depending on the flow:
- Open the flow notification node or builder for an inactive flow.
- For Failed Payment Recovery strategies: Click the pencil icon next to a notification to open the notification builder. Depending on your store setup, you may need to click on the Notification node instead.
- For all other applicable flows: Click the Notification node within the flow builder to access your translation options.
- Click the Language dropdown menu and select a language. Recharge displays languages based on your Shopify language settings. You must configure a language in Shopify before you can add it in Recharge.
- Optional — If the languages you previously added to Shopify are not listed, click Sync languages from Shopify to update your store permissions and sync the list of available languages.
- Enter translations for the sender name, email, and the subject line.
- Click Edit email body and enter your translation into the textbox. Click Done to save the updated notification.
- Select Apply to save your changes.
- Repeat these steps to add additional translations, or activate your flow when ready.
Translate existing notifications for active flows
You cannot add translations to an active flow for flows other than Win Backs. Instead, you must duplicate and recreate your active flow to add new translations:
- Duplicate the flow.
- Add your notification translations to the Notification node.
- Activate the duplicated flow.
- Deactivate the original flow.
Translate existing notifications for active Win Back strategies
You can edit the Notification node for active Win Back strategies to create different translations. Only customers who enter the flow after you’ve added the new translations receive translated notifications.
Include variables in your notifications
Use the following variables in the body of your notifications to personalize the customer experience:
Customer variables
Variable |
Description |
Works with the following templates |
{{customer.first_name}} |
Customer’s first name | |
{{customer.last_name}} |
Customer’s last name | |
{{customer.customer_portal_url}} |
Customer portal URL | |
|
|
A direct link to the customer portal payment methods page or payment methods landing page.
Note: If you use a custom customer portal as your URL, you can add the custom URL to your notifications. Recharge then switches the variable in your notifications from
{{customer.customer_portal_payment_methods_url}} to {{custom_portal_url}}. |
|
{{customer.total_credit_balance}} |
The customer's total credit balance | |
{{customer.credit_currency_code}} |
The currency code for credits (e.g. USD) | |
{{customer.clicked_referral_url}} |
CTA link to claim the offer |
Store variables
Variable |
Description |
Works with the following templates |
{{store.name}} |
Your store name |
Charge variables
Variable |
Description |
Works with the following templates |
{{charge.scheduled_at}} |
The scheduled date of the customer's next charge This is the charge associated with the flow |
|
{{charge.currency}} |
The currency of the customer's next charge This is the charge associated with the flow |
|
{{charge.line_items}} |
Array of products in the order. Each item includes:
|
|
{{charge.total_line_items_price}} |
The combined cost of all line items, calculated by multiplying each item’s price by its quantity, before any discounts are applied. | |
{{charge.note}} |
An optional message attached to a charge, typically added by the merchant or customer | |
{{charge.subtotal_price}} |
The total cost of all line items after product or percentage discounts are applied, but before shipping and taxes | |
{{charge.total_discounts}} |
Total discounts applied | |
{{charge.discounts}} |
A list of discount objects applied to the charge. Each discount includes the code, id, value, value_type (percentage or fixed_amount), title, and application_method. |
|
{{charge.total_duties}} |
Duties or import fees | |
{{charge.shipping_lines}} |
Array of shipping methods and prices | |
{{charge.total_price}} |
Final total | |
{{charge.total_tax}} |
Tax amount | |
{{charge.taxable}} |
Indicates whether the charge is subject to tax calculation. Returns true if the charge is taxable and false if it is tax-exempt. |
|
{{charge.tax_lines}} |
A list of tax line objects applied to the charge. Each tax line includes the title (tax name, for example, "Ohio State Tax"), rate (decimal tax rate, for example, 0.0575), and price (tax amount). |
|
{{charge.total_refunds}} |
The total amount refunded for the charge. Displays "0.00" if no refunds have been issued. | |
{{charge.shipping_address.address1}} {{charge.shipping_address.city}} {{charge.shipping_address.province}} {{charge.shipping_address.country_code}} {{charge.shipping_address.zip}}
|
The shipping address associated with the charge | |
{{charge.billing_address.address1}} {{charge.billing_address.city}} {{charge.billing_address.province}} {{charge.billing_address.country_code}} {{charge.billing_address.zip}}
|
The billing address associated with the charge | |
{{charge.error_type}} |
The error on the charge |
Product variables
Available only when cross_sell_products exists.
Variable |
Description |
Works with the following templates |
{{product.url}} |
Link to product page (Only used if |
|
{{product.image.large}} |
Product image URL. (Only used if |
|
{{product.product_title}} |
Product name (Only used if |
|
{{product.product_price}} |
Sale or current price (Only used if |
|
{{product.product_compare_at_price}} |
Original price (if discounted) (Only used if |
Delay option variables
Available only when delay_options exists.
Variable |
Description |
Works with the following templates |
{{delay_option.url}} |
Link to apply delay (Only used if |
|
{{delay_option.value}} |
Duration of delay (Only used if |
|
{{delay_option.unit}} |
Unit of time (e.g., “day”, “week”, or “custom”) (Only used if |
Offer variables
Variable |
Description |
Works with the following templates |
{{offer.product_title}} |
The title of the product used in an offer | |
{{offer.discounted_price}} |
The discounted price of the product used in an offer | |
{{offer.offer_value}} |
The value of the offer This could be a percentage or fixed value, depending on the offer type |
Credit variables
Variable |
Description |
Works with the following templates |
{{credit_details.credit_currency}} |
The currency code for credits (e.g. USD) | |
{{credit_details.credit_amount}} |
The credit amount the customer earned in credits | |
{{ credit_details.credit_amount | amount_with_currency(credit_details.credit_currency) }} |
The credit amount the customer earned in credits | |
{{ customer.total_credit_balance | amount_with_currency(credit_details.credit_currency) }} |
The customer's total credit balance |
Campaign variables
Variable |
Description |
Works with the following templates |
{{campaign.url}} |
This is the URL to the reactivation landing page. |
Failed Payment Recovery specific variables
Variable |
Description |
Works with the following templates |
{{custom_portal_url}} |
A direct link to your customer portal if you use a custom customer portal. | |
Variable |
Description |
Works with the following templates |
<h3>Items in Shipment</h3><table cellpadding="8px" style="border-collapse: collapse;">{% for item in charge.line_items %}<tr style="border-bottom: 1pt solid #CCC;"><td><img src="{{item.images['small']}}" width="60" height="60" style="border-radius: 8px"/></td><td><div><b>{{item.title}} x {{item.quantity}}</b></div>{% if item.variant and item.variant not in ("Default Title", "None", None) %} <div style="font-size:0.9rem;color:#444;">{{item.variant_title}}</div> {% endif %}</td></tr>{% endfor %}</table>
|
A list of line items included in the failed order | |
|
|
This code checks if a customer has store credits and, if so, displays a message warning customers that they will lose their credits if they cancel their subscription
|
Include images in your notifications
Easily upload and display images in your notifications to elevate communication and emphasize your brand. Use the notification node in the flow canvas to upload an image:
- Click on the notification node in the flow canvas and select Edit email body.
- Click the image icon in the email body editor.
- Drag and drop your image, click select a file to upload your photo, or choose a previously uploaded image from the Image Library options.
- Click Upload when ready to upload the image to your notification.
- Click Close to exit the email body editor.
After selecting the Upload button, Recharge adds the image to the notification using a properly formatted <img> tag.
It's important to set the image size before uploading the photo to your notification, as you cannot edit the image size without using custom code. You can edit the <img> HTML tag to change the size of the image, however, this is outside of Recharge's scope of support.
Considerations
Consider the following when using the Notification node:
Consideration |
Notes |
| Win Backs translations |
|
| Incorrect customer language |
|
