Resources are similar to macros.
- It determines data variables you can use in your email.
- For example, you can use
{{ contact.first_name }}
to render contact's first name. - You can attach multiple resources to an email.
- When you use flow to send email, we will automatically pass resources data from flow to email.
See list of resources available for your account.
By default, all emails will have access to the following resources:
- Contact
- Email Profile
- Email Recipient
You can attach additional resources to use. This is required if you are using flow and want to insert dynamic data into your email.
Example: Shopify's Checkout Abandonment Email
In the case of Shopify's Checkout Abandonment Email, you may want to display cart items from visitor's shopping cart.
To do that, you would need to attach Shopify Checkout Started resource.
Drag product list block to editor.
- Select Resource Property for Data Input.
- Select Shopify Checkout Started for Config > Resource. You can only select Shopify Checkout Started if it's an attached resource.
This config will display cart items from Shopify Checkout Started resource with product list block.
Associations
OnVoard allows you to access values from associated resource. For example, you may want to display total_spent for Shopify customer.
To do that, you can add Shopify Customer association for Contact resource. Once association is added, you can access total_spent with {{ contact.shopify_customer.total_spent
}}
Using Flow to Send Email
When you use flow to send email, OnVoard will automatically pass resources data from flow to email.
In this example, Shopify Customer
and Shopify Order
resources data will be passed when you send email on step 2.