Trigger: Deal Won
Fires a workflow automatically the moment a CRM deal is marked as won.
The Deal Won trigger fires a workflow the moment a CRM deal is marked won, in any pipeline (or a specific one). It's the ready-made version of the generic stage-changed trigger, pre-filtered for status = won.
When to use it
- Congratulate the sales team in a Team space.
- Kick off customer onboarding (send a WhatsApp welcome template).
- Auto-create a "send invoice" or "activate account" task on a board.
- Tag the contact as "Customer" instead of "Lead".
Requirements
The CRM module (Deals/Pipelines) must be enabled on your workspace.
Filter available
- Specific pipeline (optional; blank = any pipeline).
Variables available
$trigger.title,$trigger.stage_id(the current stage's ID),$trigger.stage_name,$trigger.status(always "won")$trigger.contact_idplus contact variables ($contact.display_name,$contact.email,$contact.company…)- ⚠️
$trigger.amountand$trigger.pipeline_id— not available on this trigger: the "won" event travels as a stage change, and that payload doesn't include the deal's amount or pipeline (only title, stage, status, and contact). If you use them in a message, the result comes back empty. If you need the amount or pipeline in your automation, look up the deal via a node that queries$record.object_idinstead of relying on the trigger variable.
How to build it
- Go to Workflows → New workflow.
- Drag a Trigger node → pick Deal Won (under CRM & records).
- Filter by pipeline if you need to.
- Add actions: Notify team, Log activity, or chain a delay + welcome message.
- Save and activate.
Example
Workflow "Celebrate sale": fires on any pipeline → Notify team in "Sales": 🎉 We won {{trigger.title}} from {{contact.display_name}}! (don't include {{trigger.amount}}, it comes back empty today) → Log activity: "Deal closed, start onboarding".
Tips
Start from the ready-made "Celebrate a won deal" template under Workflows → Templates instead of building from scratch.
Troubleshooting
- If you see no runs, confirm the deal was actually moved to "won" from the CRM pipeline, and that the workflow ended up Active after saving.
- If your message shows blank where you expected
{{$trigger.amount}}or{{$trigger.pipeline_id}}: that's a known issue, those variables don't travel in the stage-change event that feeds this trigger.
Related articles
-
Build your first workflow
Omnifox workflows automate your operation: a trigger starts the automation and action nodes do the work. Build a welcome message in minutes.
-
Workflow triggers catalog
Learn which events can start a workflow automatically in Omnifox.
-
Action nodes available in workflows
Discover the actions a workflow can run automatically.
-
Conditions and branching (if/then) in a workflow
Make your flows take decisions and follow different paths based on each contact data.
-
Ready-to-use workflow templates
Start your automations in minutes from prebuilt flows you can customize.