In this article, we will explain how to automatically send an email to customers who made a purchase on your website.
After a shopper purchases a product on your website you may want to thank them, collect their feedback regarding their shopping experience, or offer them a promo code for a future purchase. The Product Purchase workflow can help you improve your service or product and build a stronger relationship with your customers.
Before you start
- Before setting up your Product Purchase workflow, make sure the Brevo tracker is installed on your website and the track events have been created.
- We advise you to create your email template before starting this procedure as you will be asked to choose or create a template in Step 3 below. Learn how to create an email template in Create an email template.
How does the Product Purchase workflow work?
After installing the Brevo tracker and creating track events on your website, you will be able to track and add identified shoppers who make a purchase on your website to your Product Purchase workflow. After a specific delay, a personalized email will be sent to thank them, collect their feedback, or offer them a promo code!
The Product Purchase workflow consists of 3 actions and conditions:
Select the Product Purchase workflow
To select the Product Purchase workflow:
- Go to Automations.
- Click Create an automation.
- Select the Product Purchase workflow.
- Click Use this automation.
From now on, you will automatically be guided through a series of 3 steps to create your Product Purchase workflow.
Step 1: Contact purchases their cart (entry point)
The entry point for the Product Purchase workflow is An event happens. Events are alerts that Brevo can receive from your website when certain key activities occur, such as when a shopping cart is purchased.
To add your entry point:
- In the Custom Event (Track Event) field, enter the event name that indicates when a cart is purchased.
Note: if you are using the Brevo plugin, the event name is order_completed. If you are using your own custom events, please enter your own event name.
- If you want to apply a specific condition to the event:
- Select Add conditions to the selected JS event.
- Create your condition by selecting data in the drop-down lists and fields.
In our example, we added a condition so that a contact will only enter the workflow if they purchase a specific product (based on the URL of the product).
- Click NEXT.
Now, as soon as a contact makes a purchase on your website, or purchases a specific product if you've added a condition, they will enter the workflow.
To learn more about track events, read our technical documentation.
Step 2: Add a delay before the sending of your email
In the Product Purchase workflow, you will be prompted to add a 1-minute delay between the time of the purchase and the sending of the email. You can update the delay to best meet your needs.
To update the delay:
- In the first field, enter the delay you want your contact to wait for.
- In the drop-down, select the time units you want to use.
- Click NEXT.
Step 3: Send your email
Once the delay is up, the next step in the Product Purchase workflow is to send an email. You will have to choose the email template you want to send to your contact.
Select your email template.
Note: If you haven't created your email template yet, read Create an email template to learn how to create and personalize an email template.
If necessary, select the following options:
I want to send a hidden copy of this email: select this option if you want to receive a copy of the email every time a contact receives it. You can send a hidden copy of the email to specific recipients separated by commas or to contacts that contain a certain contact attribute.
I want to choose when to send this email:
Send at best time: select this option to maximize the open rate by delivering your emails at the optimal time for each recipient over a 24-hour period.
Choose a specific time frame: select this option to choose when you want to send the email, for example any day of the week at 8 am.
- Send at best time: select this option to maximize the open rate by delivering your emails at the optimal time for each recipient over a 24-hour period.
Use my event data to customize the email: if you have personalized your email template with placeholders (contact name, quantity of items, etc.), you must select this option in order to pull data from the event. Otherwise, the values in the email sent will be empty.
- The event data which triggered the workflow: customize your email with additional parameters included in the event you added as your entry point
Data from the last received event: customize your email with the values generated by the last received event of the workflow
- Click NEXT.
Activate your workflow
Once you are done setting up the workflow, you can activate it to allow contacts to enter it and receive your email after their purchase.
To activate your workflow, click Status: Inactive and select Active.
Test your workflow [highly recommended]
To make sure your workflow works well, you can test it yourself. For the Product Purchase workflow, we recommend testing the workflow with a real test scenario:
- Create an account on your store.
- Purchase a product.
This should trigger the workflow and provide you with a true sense of how the workflow is functioning.