Tutorial
Workflow Basics Tutorial
Email each new website lead right away, wait a day, then make a task to call them back.
Chapters
1. Start a Workflow
A workflow does work for you when something happens. In this tutorial, Rivera Plumbing builds one for each new lead from its website form:
- Email the person a thank-you right away.
- Wait one day.
- Create a task to call them back.
Every workflow starts with a trigger. The trigger is the event that starts it.
Create the workflow
- In the menu on the left, click Workflows.
- Click Create, then Create from scratch.
The editor opens. The steps you can add are on the left. You build the workflow in the middle. Settings for the step you click show on the right.
- At the top left, type a name, such as Website lead follow-up.
Add the trigger
- Drag Trigger from the left onto the middle.
- On the right, under Operation, click Entity Event. This starts the workflow when a record changes.
- Set Object to Lead and Event to Created.
- Under Filter conditions, click Add condition. Pick Source widget, then is, then your form, Request a visit form.
Now the workflow runs only for leads from that form. Leads you type in yourself do not start it.
2. Add the Steps
Each step runs after the one before it. You connect them with Next nodes: on each step, pick the step that comes after it.
Step 1: Send an email
- In the search box on the left, type Email. Drag Email onto the middle.
- Click the Trigger. In Next nodes, pick Email. A line now joins them.
- Click the Email step and fill in the right side:
| Field | What to enter |
|---|---|
| To | {{ trigger.data.instance_payload.email }}. This is the email of the new lead. |
| Subject | Thanks for contacting Rivera Plumbing |
| Body | Your message. Type {{first_name}} where the person's first name should go. |
| Sender Email | Your email. Replies come back to it. |
| Sender Name | Your name. |
Words in double curly brackets are filled in for each lead. {{first_name}} becomes Ben for Ben Walker.
Step 2: Wait one day
- Search for Delay and drag it onto the middle.
- Set Duration to 1 and Unit to Days.
- Click the Email step. In Next nodes, pick Delay.
Step 3: Create a task
- Search for Task and drag it onto the middle.
- Fill in the right side:
| Field | What to enter |
|---|---|
| Title | Call {{first_name}} to book the visit |
| Assigned User | Who should make the call. |
| Due Date | {{ current_date }}. The task is due on the day it is made. |
| Subject Type | Lead |
| Subject ID | {{ trigger.data.instance_payload.id }}. The task then shows on the lead's record. |
- Click the Delay step. In Next nodes, pick Task.
Tidy up
Click Auto-arrange at the top. The steps line up from left to right.
A step with a warning sign is missing something. Click it and fill in the fields marked with *.
3. Save, Turn On and Test
A workflow acts for you, so it needs a key to your account. Then you save it, publish it, and test it with a real form.
Give the workflow a key
The key is called an access token. It decides what the workflow may do.
- Click an empty part of the middle. Workflow Info shows on the right.
- Under Authorization, open Select token and click Create.
- Click CRM Access Token.
- Change the title to Website lead workflow.
- Scroll down to Tasks and tick Create and Read. The workflow needs them to make the call-back task.
- Click Create. The token is now selected.
- Turn on Log executions. Then you can see each run later.
Save and publish
- Click Save. The workflow is saved as a Draft. A draft does not run.
- Click Publish. The Draft tag goes away, and Enabled is on.
Test it
- Open your website form and send it as a customer. Use an email address you can read.
- Within a minute the thank-you email arrives.
- In the workflow, click Executions. Each run shows with its time and result.
The task shows on the lead's record one day later.
Stop or change the workflow
- To stop it for a while, turn off Enabled under Workflow Info and click Save.
- To change it, edit the steps, click Save, then Publish again.
This is the end of the Workflow basics tutorial.
