Workflows: automate the CRM
Build workflows that act on your records when something happens, from tasks and notes to follow-up drafts and agents.
A workflow does routine work in the CRM for you. When something happens to a record, and your conditions hold, it carries out the steps you chose, such as raising a task or updating a field. Workflows are shared across your workspace; use All and Mine to see every workflow or only yours.
Build a workflow
- On Workflows, click + New workflow.
- Give it a name and choose the kind of record it works on, such as a deal. This cannot change once it is saved.
- Build it on the canvas, which reads from top to bottom. Click any card to edit it in the panel beside it.
- Click Create workflow, or Save changes when editing.
When: what starts it
On the When card, choose what starts it:
- Run manually: only when someone runs it, on every record or on one.
- A record is created, or A field changes, optionally to a value you choose.
- It is added to a list: choose the list. Only lists with automations switched on start workflows.
- On a schedule: every day, every week on a chosen day, or every month on a chosen day from 1 to 28, at a chosen hour, UK time.
- A date on the record comes round: so many days before or after one of the record's date fields (up to 730), at a chosen hour, UK time; once, or again every so many days a set number of times. Each record runs once for each date it reaches, so a changed date starts it again; a date missed in the last week is caught up, but nothing runs for dates before the workflow was made. A record with No automatic contact ticked is passed over.
- A meeting is booked or A meeting has ended, from connected calendars.
- A call is recorded: once a recorded call's transcript is done (and its summary, if one was asked for), for each record the call is on. You can ask for calls of at least so many minutes. An agent or a drafted follow-up the workflow starts reads the call's summary. See recording meetings.
- An email arrives from them, at a connected mailbox.
- A note is added or A task is added by a person. Notes and tasks a workflow adds do not start workflows, so one workflow cannot set off another in a loop.
Then choose once per record or each time it triggers. Start on (optional) holds the workflow until a date.
Only if: conditions
Click Only run if… (add conditions), then Add condition to choose a field, a test such as "is" or "contains", and a value. Every condition must hold. A condition can also read a field on a linked record, such as the tier of a deal's company.
Steps
Click a + point to add a step exactly there: an Action, a Wait, an If / otherwise branch or For each. An action can:
- Create a task, Add a note or Update a field.
- Add to a list or Remove from a list of that kind of record.
- Create a related record: a new record of another kind that links to this one, such as a deal for a person, with the fields you choose. It belongs to this record's owner.
- Draft a follow-up email, with an optional line about what to say.
- Run an agent: one of your switched-on agents for that kind of record.
- Assign owner: give the record to someone in your team, or to nobody. Choose in turn, among several and tick the people to hand records out one after another; anyone who has left is skipped.
- Enrol in a sequence: on people only, put the record in one of your sequences, sent by the record's owner or a chosen member who has let that sequence send from their mailbox. Someone already in a sequence, or on the do-not-email list, is left as they are.
- Post to Slack: when your workspace has connected Slack, post to a channel, with merge fields from the record and a button to open it. A restricted field cannot be posted. See Slack.
- Add to a Mailchimp audience: when your workspace has connected Mailchimp, add the person to an audience with tags, as pending (Mailchimp asks them to confirm) or, once an owner has recorded the workspace's consent, as subscribed. Nobody on the do-not-email list is added. See Mailchimp.
Most actions can work on this record or on a linked record, such as the company of a deal.
A wait pauses the record for some minutes, hours or days, then carries on. Choose until a date on the record to wait instead until a date field, or a number of days before or after it, such as seven days before a renewal date. If that date is empty or has passed, it carries straight on.
A branch takes the Then path when its conditions hold and the Otherwise path when they do not; both then carry on to the next step. A path can hold a branch of its own, up to three deep. Use Move up, Move down and Delete to rearrange steps. A step that still needs something is shown in red, and the workflow cannot be saved until it is finished or deleted.
Describe it in plain English
Open Describe it in plain English, and the assistant draws it for you, write what you want, for example "when a deal is marked won, wait two days then raise a thank-you task", and click Build with AI. The assistant draws it on the canvas for you to check. Nothing is saved until you click Create workflow or Save changes.
Run, turn on and off
Each workflow in the list says in plain words what it does, how many times it has run, and how many records are waiting at a wait step.
- Run now runs it straight away on every record of its kind whose conditions hold.
- To run a workflow set to Run manually on one record, open the record and use Run a workflow. It shows what happened, and the run is listed under Runs.
- Turn off stops it and Turn on starts it again.
- Runs shows every time it has run, and Edit opens it on the canvas. Delete removes it.
See its runs
Runs lists each run, newest first: the record, when it started and ended, and how it ended. Done means every step ran; Skipped, that the record did not meet the conditions; Waiting, that it is at a wait step, with when it carries on; Failed, that a step could not be done; and Stopped, that someone stopped it or the workflow was turned off. Choose Failed, Waiting and the others at the top to see only those runs. The list of workflows says how many runs have failed.
Start from another system: a webhook
Choose Another system sends a webhook under When, and the workflow starts each time another system, such as a website form, a comparison site or your own code, sends JSON to the workflow's own address. Map each field of the JSON, such as contact.email, to a field of the record with Map another field, choose which one finds the record under Find the record by, and whether to Make the record when none is found and Bring a record found up to date with the mapped fields. At most sets how many requests a minute it takes.
Once saved, the workflow's page shows its address under Webhook. Keep it private: anyone with it can start the workflow. Replace the address gives a new one and stops the old one at once. Make a signing secret gives a secret, shown once, for the other system to sign its requests with; then Require a signature refuses any request not signed with it. After a test request, the page lists the fields it held, to map, and what recent requests did.
Call another system
The action Call a web address sends a request to another system, such as a funder's or a comparison site's: choose the method, give the https:// address, and add any headers. Fields in braces, such as {email}, are filled from the record; a restricted field is never sent. Choose how it signs in: A bearer token, An API key in a header, An API key in the address, or A signature header, each with a secret kept for the purpose. The body can be All the record's fields or JSON I write. Under Save a field of the answer, name a field of what comes back, such as data.id, and the field of the record to keep it in.
The run waits for the answer, then carries on. If the other system cannot be reached, answers that it is busy, or fails, the request is tried again for up to three days; if it refuses for any other reason, the run stops there and says why. At most sets how many requests a minute the workflow makes. Each request, and how it went, is listed on the workflow's Runs page.
Secrets are kept under Secrets on the Workflows page, by an owner or administrator: give one a name, paste the token or key, and click Keep secret. It is kept encrypted and never shown again; to change one, keep it again under the same name.
Repeat steps with For each
For each repeats the steps inside it for each item: each record linked to this one (such as each person at a company, or each deal of a person), each record on a list, each option chosen in a field that holds several, or each person named in a Person in the team field. Choose what it goes through in the panel on the right, and, if you like, At most so many (it goes through up to 500). Then add steps inside it with its own + points.
Steps inside act on each record in turn when it goes through records, and on this record when it goes through options or people. In their wording, {item} is the item's name, {item_position} its place and {item_count} how many there are, as in a task called "Call {item}". A For each can hold one more For each, such as each deal of each person at a company, but not a wait: its items are all done together.
Change a workflow safely: drafts and versions
When you edit a workflow, Save draft keeps your changes without touching the live workflow, and Publish changes makes them live. Each time changes are published, the workflow gets a new version. Runs already going, including any waiting on a step, carry on with the version they started on; only runs that start afterwards take the new one.
Click Versions beside a workflow to see every version, who published it and when, and how many runs are still going on each. Open a version to see its steps, with what differs from the live version marked. Restore puts an earlier version in the draft, so you can check it and publish it. Publish changes or Discard changes on the same page finish a draft.
When a step fails
A step that cannot be done stops its run. The steps before it stand, and none after it runs. The run shows which step failed and why, and the record's timeline says so too.
Fix the cause first, for example by changing the step or the record. Then click Retry from here to carry on from the step that failed, or Retry from the start to run every step again, both on the live version so your fix is used. Retry on its own version runs every step again as the workflow was when the run started. A retry is a new run, linked to the one it retries, so nothing in the history is lost. The workflow must be turned on, and your role must let you change records.
Stop a waiting run
On a run that is waiting, Stop takes the record out: it will not carry on.
Test on a record
Under Test on a record, choose a record and click Test. You see whether its conditions hold, which way each branch would go, and each step it would take, in order. Nothing is changed and no run starts, so you can test before turning a workflow on.
When a change needs sign-off
If your workspace owner has switched on sign-off in Approvals, a new workflow, or a change to its trigger, conditions, steps, run mode or start date, waits until an approver signs it off. You will see a See approvals link, and the list shows that a change is waiting. Renaming, turning on or off and deleting never wait.
Follow-up emails are only drafts
The Draft a follow-up email step never sends anything. It puts a draft on the record as a Suggested follow-up card, which someone reads, edits if they like, and either sends with Send or removes with Dismiss. A workflow never emails anyone itself; a person it enrols in a sequence is emailed only as that sequence emails, which by default means each email waits for its sender to read and send it. See email from the CRM.
If something is not right
If a workflow did not act on a record, open Runs: a failed run says why, and a skipped one that the conditions did not hold. Test on a record shows the path it would take. Check too that it is turned on, that its start date has passed, that the record meets every condition, and whether it runs once per record and has already run on that one. A change waiting for approval is not live yet. If you are still stuck, ask your workspace owner, or ask our team through Service.
Related
- Agents: assistants that work on your recordsInstall or build agents that look at a record and suggest, or do, the next step, with you in charge of what they may do.
- Approvals: signing off changes and our team's accessDecide whether automation changes need sign-off, choose who approves, review what our team builds, and give our team time-limited access to records.
- Email from the CRMSend an email from a record, from your own mailbox if you allow it, use a template, a snippet or Draft with AI, review drafts a workflow prepared, and connect your mailbox so emails file themselves.
- Lists of records, saved views and boardsFind, sort and filter your companies, people and deals, save the way you like to see them, and work a pipeline as a board.
- Slack: notifications, workflow posts and record channelsConnect your Slack so each member can have their notifications there, workflows can post to a channel with buttons that act, a company or deal can have its own channel, and links to records show a preview. The app never reads what anyone writes in Slack.