Workflows
A workflow is a small rule: when this happens, do these things. A deal moves to Closed Won, so create a follow-up task. A contact gets the tag hot, so text them. A form on your website posts a lead, so add them and open a deal. Each workflow reacts to one trigger and runs its steps once, top to bottom, for the record the trigger was about.
Find Workflows in the folded row at the bottom of the sidebar (click it to show the pages behind it; Settings → Appearance → Navigation moves pages into the main list), or in the More menu on Android.
If you've used sequences (or cadences) in another CRM, this is that: a workflow that sends a message, waits, and sends the next. A long Wait step can end the run instead of continuing if the contact replied, booked a meeting or opted out in the meantime (see the step table below).
The three parts of a workflow
Every workflow has the same shape. The editor shows them as three blocks.
- WHEN — the trigger. What has to happen for the workflow to start.
- ONLY IF — an optional condition. If it is false for this run, no steps run; the run shows as skipped in the history.
- THEN — the steps, in order. Each step either does something (send a text, apply a tag, create a task) or controls the flow (wait, branch).
The editor's Switched on box is ticked for a new workflow; save with it ticked and every matching event starts a run from that moment. A duplicate starts switched off, and editing keeps a workflow's current on/off state.
The record a run is about
Almost everything in a workflow refers back to the record the trigger fired on. When a contact is created, the record is that contact. When a deal is won, it is that deal. When a tag is applied, it is whatever got tagged. The engine loads that record at the start of the run and makes it available as entity in conditions and templates, and steps that need a record (apply tag, create note, text this person) use it automatically.
Two kinds of run start without a record: scheduled runs and Run now on a workflow that has no contact picked. In those runs a step that needs a record is skipped with a note in the history, not failed. If you want a scheduled workflow to text or email someone, put a literal number or address in the step's To field.
Triggers
When something happens — an event inside Groundbase. Pick one from the list.
| Event | Fires when | Record | Extra values on trigger.payload |
|---|---|---|---|
contact.created | A contact is added in the app, by a form, a booking, an inbound webhook or the API. A CSV import doesn't fire it | the contact | first_name, last_name, email, phone |
contact.updated | A contact is edited one at a time (bulk edits don't fire it) | the contact | changed_fields (list of column names; absent when an inbound webhook made the change) |
contact.status_changed | A contact's status changes (not by import or bulk edit) | the contact | from_status, to_status (names), from_status_id, to_status_id, source |
contact.deleted | A contact is deleted | none | contact_id |
company.created / company.updated | Same for companies | the company | name, industry, website; changed_fields on update |
company.deleted | A company is deleted | none | company_id |
deal.created | A deal is opened | the deal | title, value_cents, stage_id, contact_id, company_id |
deal.updated | A deal is edited | the deal | changed_fields |
deal.stage_changed | A deal moves between stages | the deal | from_stage_id, to_stage_id, to_stage_name, is_won, is_lost, title, contact_id |
deal.won / deal.lost | A deal moves into a stage marked Won or Lost | the deal | deal_id, title, value_cents, stage_id, stage_name, contact_id, plus lost_reason on lost |
deal.deleted | A deal is deleted | none | deal_id |
task.created | A task, event or meeting is added | the task | title, kind, due_at, contact_id, deal_id |
task.updated | One is edited | the task | changed_fields |
task.completed | One is marked done | the task | title, kind, contact_id, deal_id |
task.deleted | One is deleted | none | task_id |
note.created | A note is added to a contact, company or deal | the note | note_id; from the app or API also body, contact_id, company_id, deal_id; from a workflow or inbound webhook, entity_type and entity_id |
tag.applied / tag.removed | A tag is added to or removed from a contact, company or deal | the tagged record | tag_name, tag_id, entity_type, entity_id |
sms.sent | You send a text by hand or from a workflow (campaign texts don't fire it) | the contact | body, to_number, from_number, segments, message_id |
sms.received | A text arrives on one of your numbers | the contact, when the number matched one | body, from_number, to_number, keyword, is_opt_out |
sms.delivered / sms.failed | Twilio reports the outcome of a text | the contact | to_number, twilio_sid; error_message on failure |
email.sent | You send an email from a connected inbox | the contact | to, cc, bcc, subject, from |
email.received | An email from a contact arrives in a connected inbox. Out-of-office and other automatic replies don't count | the contact | from, subject, message_id |
meeting.booked / meeting.rescheduled / meeting.cancelled | A meeting with a contact is booked, moved or cancelled: on your booking page or by you in the app. Moving or cancelling it in Google Calendar fires the last two too; an event made in Google doesn't fire meeting.booked | the meeting's contact | start_at, contact_id; booked_by, rescheduled_by or cancelled_by says who (booker, host, google_calendar) |
call.completed | A call ends | the contact, when the call matched one | direction, status, duration_seconds, from_number, to_number, twilio_call_sid |
voicemail.received | A voicemail lands | the contact, when the caller matched one | from_number, to_number, duration_seconds, recording_url |
invoice.issued / invoice.voided | An invoice is issued or voided | the invoice's contact | number, total, currency, contact_id, company_id |
invoice.paid | An invoice's balance reaches zero. A deposit is payment.recorded, not this | the invoice's contact | total |
payment.recorded | Any payment is recorded against an invoice | the invoice's contact | invoice_id, number, amount, balance, method, currency, contact_id, company_id |
quote.issued | A quote is issued (numbered) | the quote's contact | number, total, currency, valid_until, deposit, contact_id, company_id |
quote.accepted / quote.declined | The customer accepts or declines a quote, on its link or marked by you | the quote's contact | number, currency, total, contact_id, company_id; accepted_by_name, accepted_via and deposit_paid on accept; reason on decline |
form.submitted | Someone submits one of your lead forms | the contact it created or matched | form_name, form_id, answers, created_contact (true when the contact is new) |
Documents for signature also fire events (document.sent, document.viewed, document.signed, document.completed, document.declined, document.voided); see Documents & e-signatures.
On a schedule — once at a date and time, or every day or week, in the timezone you pick; or every hour at a chosen minute (that minute is counted in UTC, which only matters in a half-hour time zone such as India or Newfoundland). The editor shows the next four run times as you edit. Under Run for, pick Once, with no contact (there's no record in the run, so use it for reports and webhooks), or Each contact with any of these tags (up to five): every time it fires, it runs once for each matching contact, with that contact loaded, so tag, field and send steps act on them. If more than 500 contacts match, that run is refused and shows as failed in the run history; narrow the tags.
Inbound webhook arrives — an outside system (a form builder, Zapier, your own site) posts to one of your inbound webhooks from Settings → Connections. The record is the contact the webhook created or matched, and the whole posted body is on trigger.payload, so {{trigger.payload.first_name}} reads a field called first_name from the post (use dots for nested fields, such as {{trigger.payload.data.first_name}}).
I run it manually — nothing starts it but the Run now button.
Conditions
A condition is one or more comparisons. With two or more lines, choose all must match (every line must be true) or any can match (one is enough). A Branch step's condition is always all must match. Each line is a field, a comparison, and usually a value.
Fields you can compare
| Write | Meaning |
|---|---|
entity.<column> | A column on the record the run is about. See the column legend below. |
entity.tags | The record's tags. Use with includes tag. |
contact.<column> | The contact the run is about. On a deal, task or note that is its contact; on a contact it is the record itself. contact.cf.<key> works too. |
cf.<field_key> | One of your custom fields, by its key (Settings → Fields & pipeline → Custom fields). |
trigger.payload.<key> | A value the event carried, from the table above. On tag.applied that is trigger.payload.tag_name. |
trigger.event | The event name, for example deal.won. |
trigger.entity_type / trigger.entity_id | What kind of record the run is about, and its id. |
steps.<step id>.output.<key> | Something an earlier step in the same run produced. See step outputs below. Only in a Branch step's condition: in the workflow's ONLY IF no step has run yet, so it is always empty. |
A bare column name such as source | Short for entity.source. |
Write trigger.payload.tag_name, not payload.tag_name. The editor refuses the short form because the engine would read it as empty every time and the workflow would silently never run.
Comparisons
| Comparison | Reads as | Needs a value |
|---|---|---|
| equals / not equals | the same text, ignoring case | yes |
| contains / not contains | the value appears anywhere in the field | yes |
| starts with / ends with | ignoring case | yes |
| is set | the field has any value (is not empty) | no |
| is empty | the field is blank | no |
| includes tag | the record the run is about carries this tag, whatever field you write (use entity.tags). Contacts, deals and companies have tags; on a task or note run it is never true | yes, a tag name |
| greater than / greater or equal / less than / less or equal | as numbers when both sides are numbers, otherwise as text, which sorts dates correctly | yes |
| older than (days) / newer than (days) | the field is a date more (or less) than this many days ago. On last_contacted_at, "older than" includes contacts never contacted | yes, a number of days |
Examples: entity.source equals website. entity.phone is set, so a text step cannot fail. entity.tags includes tag VIP. entity.value_cents greater than 500000 for deals over $5,000. entity.last_contacted_at older than (days) 30 (includes never contacted).
Steps
Each step has a type, its own settings, and an On error choice: Stop workflow (the run fails at this step) or Continue to next step.
| Step | What it does | Settings | Needs a record |
|---|---|---|---|
| Send SMS | Texts through your Twilio number. Honours STOP opt-outs. | Message body (required). To optional: blank texts the run's contact (on a deal, task or note, its contact), or type a number or {{contact.phone}}. | A contact, unless To is filled in |
| Send email | Emails from your connected inbox. An address that has hard-bounced before is skipped, and the run carries on. | To optional: blank emails the run's contact, or an address or {{contact.email}}. Subject and Body required. | A contact, unless To is filled in |
| Apply tag / Remove tag | Adds or removes a tag on the record. The tag is created if it does not exist. | Tag name (required). Through the API or your AI assistant, an entity type and id can target a different record. | Yes |
| Create task | Adds a task, linked to the record: a contact links itself and its company, a deal links the deal and its contact and company, a company links itself. | Title (required), Description, Due in days (0 to 3650, lands at 9 am your time). Through the API or your AI assistant also Due at (a date), Kind (task, event, meeting) and Location. | No, but unlinked without one |
| Create note | Drops a note on a contact, company or deal. | Body (required). | Yes |
| Update field | Changes one native column on the record. | Entity type, Field and Value. Contact: first_name, last_name, email, phone, phone_secondary, primary_phone, position, city, source, notes, company_id. Company: name, website, industry, notes, city, state. Deal: title, value_cents, stage_id, notes, contact_id, company_id, close_date. Task: title, description, due_at, end_at, location, kind, completed_at, priority (0 or 1). | Yes |
| Set contact status | Moves the run's contact (on a deal, task or note, its contact) to a status. Its timeline shows the change, and Contact status changed workflows run. | Status (required). | A contact |
| Set custom field | Writes one of your custom fields. | Field key and Value. | Yes |
| Fire webhook | POSTs to an outside URL: Slack, Zapier, your own service. A reply other than 2xx fails the step; redirects aren't followed, so use the final address; it times out after 15 seconds. | URL (required), Method (GET, POST, PUT, PATCH, DELETE). The body is {event, trigger, entity}; custom Headers and Body can be set through the API or your AI assistant. Private addresses and Groundbase's own hosts are refused. | No |
| Add to campaign | Puts the run's contact into an ongoing campaign, at its first step, under the campaign's own rules — skipped if they have no address on the campaign's channel, have unsubscribed or have opted out; never added twice. The step fails if the campaign is one-time or not currently sending. | Campaign (an ongoing one). | A contact |
| Create deal | Adds a deal for the run's contact (on a deal, its contact; on a company, the company), at the end of the stage you pick. Fires Deal created workflows. | Title (required, can use {{contact.first_name}}), Value (an amount like 1200 or 1,200.50, or a template), Stage (blank = your first open stage). | No |
| Move deal to stage | Moves the deal, exactly as dragging it on the board: it goes to the end of the column, its timeline says so, and a Won or Lost stage fires Deal won / Deal lost workflows too. Already there: nothing changes. | Stage (required). Deal optional: blank is the deal the run is about; for a run about a contact, use a Create deal step's deal_id. | A deal, unless Deal is filled in |
| Set deal value | Changes the deal's value. | Value (required, an amount or a template). Deal optional, as above. | A deal, unless Deal is filled in |
| Wait | Pauses the run. For a length of time: up to 60 seconds happens inline; anything longer parks the run and it resumes within about a minute of the deadline, up to 30 days. Until a time of day: the next 9:00 (or whatever time you pick) in your account's timezone, later today if it hasn't come yet, otherwise tomorrow. Until a date: a fixed date or a date field on the record (for example a custom Renewal date field), on the day or a number of days before or after it, at the time you pick (9:00 if you don't). A date that has already passed carries straight on; a contact with no date in that field stops the run there, shown as skipped, without counting as a failure. A date more than a year away fails the run. A long wait can also end the run early: tick Replied, Booked a meeting or Opted out, and when the wait is over the run stops instead of continuing if the contact has done that since the run started. A stopped run shows as skipped with the reason. | How long, or until when, plus the stop conditions. A wait inside a branch is capped at 60 seconds and can't be a wait-until; put long waits at the top level. | No |
| Branch | If this, then these steps, else those. | A condition (same rules as above), a then list and an else list. | No |
A workflow may have up to 50 steps and branches three deep. Short waits (a minute or less) can add up to 4 minutes in one workflow at most; use a longer Wait for anything more.
Quiet hours
At the top of the Workflows page, Only send during set hours sets the days and hours your workflows may text, email or call anyone. It covers every workflow. When a run reaches a Send SMS or Send email step outside those hours, it waits and sends at the start of the next open hour; the run history shows quiet hours, runs at …. Steps before the held text or email run straight away; the held step and everything after it wait until the hours open. A Branch that contains a text or email waits as a whole. Hours are in your own time zone. It's off until you turn it on. Quiet hours and the daily limits below are on the Workflows page in the web and desktop apps, and apply to every workflow.
How many workflows, and how long a run can wait
You can have up to 50 workflows on an account. Delete one to add another.
A run waiting on a Wait step that's held back (the workflow is paused, or the account isn't active) doesn't resume weeks later with a stale message: if it's more than 7 days past the time it should have continued, it closes as expired and the run history says so.
Daily limits
Under quiet hours, Daily limits caps how many emails and texts all your workflows together may send in a day. Workflow emails go out from your own mailbox, and Gmail and Outlook lock an account that sends too much in a day; texts cost you on Twilio. A send over the limit isn't dropped: the run waits and sends just after midnight. The box shows how many went out today. Unless you change them, the limits are 200 texts and 400 emails a day; you can raise or lower either one, up to 100,000 a day, and clearing a box puts it back to the default. Campaigns have their own daily limit, in Settings → Email → Campaigns.
Templates: putting values into text
Any text field in a step can contain {{...}} placeholders. They are filled in when the step runs. Unknown placeholders come out empty rather than stopping the run.
| Placeholder | Gives you |
|---|---|
{{first_name}}, {{last_name}}, {{full_name}}, {{email}}, {{phone}} | Those columns on the record. {{company_name}} and {{city}} work too. {{deal_value}} and {{my_name}}, which work in campaigns and one-off texts, don't work in workflows and come out blank; use {{entity.value_cents}} on a deal run. |
{{entity.<column>}} | Any column on the record. {{entity.title}} on a deal, {{entity.position}} on a contact. |
{{cf.<field_key>}} | A custom field. |
{{trigger.event}} | The event name. |
{{trigger.payload.<key>}} | A value the event carried. {{trigger.payload.to_stage_name}} on a stage change; {{trigger.payload.email}} for a field called email in an inbound webhook post. |
{{steps.<step id>.output.<key>}} | Something an earlier step produced. Give the step an id in the editor so the reference survives edits. |
Press Variable beside any field to insert one from a list instead of typing it.
Column legend: what entity. can reach
| Record | Columns |
|---|---|
| Contact | first_name, last_name, full_name, email, phone, phone_secondary, primary_phone, company_id, position, city, source, notes, last_contacted_at, created_at, updated_at, plus tags |
| Company | name, industry, website, city, state, country, notes, created_at, updated_at, plus tags |
| Deal | title, value_cents (whole cents: $1,500 is 150000), stage_id, contact_id, company_id, close_date, notes, created_at, updated_at, plus tags |
| Task | title, description, due_at, end_at, kind, location, priority, contact_id, company_id, deal_id, completed_at, created_at, updated_at |
Step outputs: what steps.<id>.output. can reach
| Step | Output keys |
|---|---|
| Send SMS | message_id, segments, status, to, contact_id |
| Send email | message_id, rfc_message_id, to, subject, contact_id |
| Apply tag / Remove tag | tag_name, entity_type, entity_id |
| Create task | task_id, title, due_at, contact_id |
| Create note | note_id, entity_type, entity_id, body |
| Update field / Set custom field | entity_type, entity_id, field or field_key, value |
| Fire webhook | url, method, status_code, response_body |
| Add to campaign | campaign_id, contact_id, queued, already, skipped |
| Create deal | deal_id, title, value_cents, stage_id, contact_id |
| Move deal to stage | deal_id, stage_id, stage_name, moved, is_won, is_lost |
| Set deal value | deal_id, value_cents |
| Branch | passed (true or false), ran |
| Set contact status | contact_id, status, status_id, changed |
| Wait | delay_seconds and resumed_from inline for a wait of 60 seconds or less; a longer wait gives no output; a wait-until whose date had already passed gives until and resumed_from past |
Running one by hand
Run now on a workflow's row starts it immediately. It's on switched-on workflows that you run by hand or that react to a record event (not scheduled or inbound-webhook ones). For workflows that react to a record event it asks you to pick a contact first, and that contact becomes the record. Two things to know:
- Run now has no event behind it, so a condition on
trigger.payload.<key>is always false and the run is skipped. To test a tag-triggered workflow, apply the tag for real. - It runs every step for real. A Send SMS step sends the text, subject to quiet hours and the daily limits.
Reading the run history
Open a row's chevron to see its latest 30 runs, newest first (the Android app shows the last 5). Each run has a status and one line per step.
| Run status | Meaning |
|---|---|
completed | The run reached the end. Every step ran or was skipped, except a step set to Continue to next step on error, which can show failed inside a completed run. |
skipped | Either the ONLY IF condition was false for this record and nothing ran, or a Wait step's stop condition ended the run early (they replied, booked or opted out); in that case the steps before the wait already ran. |
failed | A step errored with On error set to Stop, or a waiting run couldn't continue (the workflow was deleted, or the step it waited on was removed). The red line under the run says why. |
paused | The run is parked on a Wait step. The row shows N waiting. |
running | The run is going now. |
expired | The run waited more than 7 days past its time (see above) and was closed without sending. |
Step lines read ok with what happened ("created task … linked to deal", "applied hot to contact Jane Doe"), skipped with the reason, or failed with the error.
Pausing, editing and deleting
- Pause stops new runs and holds any runs that are waiting on a delay. They stay parked until you resume, then continue.
- Editing a workflow with waiting runs shows a warning. Removing the step a run is waiting on (or moving it into a branch) makes that run fail when it resumes. If you only reorder the steps, the run carries on with whatever now follows that step. Pause first if you would rather it did not run at all.
- Delete stops it immediately and removes its history. Runs that were waiting send nothing more, and are closed as failed when their wait would have ended.
- Paused by the engine · N failed runs on a row means it failed twenty times in a row and was switched off for you; we email you when that happens. From five failures in a row the row shows a red N failures in a row badge, so you can step in before it pauses. Open the history, fix the cause, then Resume. If the cause is still there it will pause again after twenty more.
Ask the assistant instead
If you use Groundbase with Claude or ChatGPT through AI integrations, you can say what you want in a sentence ("when a deal is won, create a task to send the welcome kit") and the assistant will build it. It can also read the run history and tell you why a workflow skipped or failed.