How to Build a Workflow to Send an Email
This tutorial explains how to build an automated workflow to send an email. For this example, consider the following scenario: A patient places an order and they should receive a confirmation email.
On our end, we need to create the workflow that triggers when a new order is created and sends the patient a confirmation email.
Step 1: Create and Name Your Workflow
First, let's start building the new automation.
From the CRM Portal, expand the Admin section in the left-hand menu.
Click on Workflows. You will now see a list of all the existing workflows you have.
Click the Create Workflow button.
A new, untitled workflow will appear. Give it a clear and descriptive name, such as "New Order Confirmation Email". This will help your team understand its purpose at a glance.
Step 2: Set Up the Trigger
The trigger is the event that starts your workflow. In this case, the trigger is a new order being created.
In the Trigger section of your new workflow, click on the dropdown menu.
Select Order as the resource.
In the second dropdown, select Created as the event. Your trigger is now set to
Order Created. This means the workflow will automatically run every time a new order is successfully processed in the system.(Optional) You can also enter a Description for your workflow.
Click on OK. Your new workflow will appear listed. Now, you need to access it to continue with the rest of the steps.
The workflow is automatically created as Enabled. This means that your workflow is active. However, it’s not working yet. You need to add the action as explained below.
Step 3: Add the "Send Email" Action
Now that the trigger is defined, we need to tell the workflow what to do. This is called an action.
Access your newly created workflow and drag and drop the CRM Action component below the Trigger.
Click the Configuration icon.
Expand the dropdown menu and select Message.
From the list of CRM actions, choose Send Email.
Step 4: Configure Your Email
This is where you will configure the email that the patient will receive. You can use dynamic variables to pull information directly from the order that triggered the workflow. This makes each email personal and relevant.
Fill out the fields as follows:
Read the related guide How to Create Templates to learn how to do it.
One ready, click on Save. That's it! Your workflow is now active. Every time a new patient completes a purchase, they will automatically receive the confirmation email you just created.
Find below a step-by-step guide that shows you how to use placeholder variables to personalize email actions in a workflow, for example, inserting the customer’s email address or including the order ID in the subject line.
Next Steps
Now that you can build a workflow to send an email, you may find these related guides helpful:
How to Create a Subscription Renewal Reminder: Learn to set up a workflow to sends out an SMS message to the patient before their subscription renews.
How to Create Templates: Learn how you can create a template to use as the body of an email.