WorkestraDocs
ModulesCRM

CRM Automations

Automate CRM workflows — create deals, update stages, notify owners, send emails — triggered by CRM events.

CRM Automations

The CRM module doesn't host a dedicated automations UI. CRM automations live on two shared surfaces so you can mix CRM triggers with actions from any other module in a single flow.

The old /crm/automations page has been retired. Use the Visual Builder for custom workflows, or the Quick Rules settings page for common on/off toggles.


Where to go

NeedSurfacePath
Build a custom multi-step workflow (trigger on a CRM event, act anywhere)Visual Automation Builder/automations
Toggle a pre-configured CRM rule on/offQuick Rules/settings/automations
Per-project automations on tasksProject settings → Automations/projects/[id]/automations

See the Automations platform guide for the full feature walkthrough.


CRM triggers available in the Visual Builder

TriggerFires when
Contact CreatedA new contact is added to the CRM
Deal CreatedA new deal is created
Deal Stage ChangesA deal moves to a new pipeline stage
Deal Closed WonA deal reaches the Closed Won stage

Every trigger above is wired automatically — creating a contact from the UI, an import, or the API fires matching active workflows without any extra setup.


CRM actions available in the Visual Builder

ActionWhat it does
Create DealInsert a new deal record
Update DealUpdate whitelisted fields on an existing deal (title, stage, status, value, currency, probability, notes)
Update Win ProbabilitySet probability on a deal (0–100)
Assign OwnerReassign the owner of a deal, contact, ticket, task, issue, or project
Flag as StaleRecord a stale_flagged event in the audit log for follow-up reporting

You can combine these with actions from any other module in a single workflow — for example, Deal Closed Won → Create Project + Send Template Email + Create Invoice.


Example — Welcome a new contact

StepSetting
TriggerContact Created
Action 1Send Template Email — template welcome_lead, to_field = "email"
Action 2Log Eventevent = "lead_welcome_sent"
Error handlingContinue on error

Save, activate. New contacts created anywhere in the app (UI, import, API) trigger the flow.


Example — Celebrate a closed-won deal

StepSetting
TriggerDeal Closed Won
Action 1Send In-App Notificationuser_id = <sales_manager_id>, message = "{{title}} just closed for {{value}} {{currency}}"
Action 2Create Projectname = "Onboard {{title}}", pre-populated from the deal's contact_id
Action 3Create Invoicecurrency = {{currency}}, contact pre-filled
Error handlingRetry on error (3×)

Troubleshooting

A workflow isn't firing?

  1. Check the workflow is Active at /automations.
  2. Check the Runs tab at /automations/runs for the matching trigger window — if the run appears with status failed, open it for the exact error per action.
  3. Confirm the feature flag is on — the admin must have set NEXT_PUBLIC_AUTOMATIONS_ENABLED=true.
  4. Confirm the triggering action really happened in CRM (look at the audit log / recent record changes).

Next Steps