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.
- For workflow emails, we will automatically pass resources data from workflow 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
Workflow Resources
For workflow emails, we will automatically attach additional resources based on selected trigger. For example, the following resources will be attached for low stock email.
- Low Stock Notification
- Product
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
}}