Workflow Triggers
Configure when and how workflows are activated
Triggers determine when workflows execute. Understanding trigger options helps you create workflows that activate at the right moments.
Trigger Modes
Goldilocks supports three trigger modes:
AI Mode
The AI decides when to trigger based on context.
How it works:
- AI reads your workflow description
- During conversation, AI evaluates if trigger is appropriate
- AI triggers if conditions seem met
Best for:
- Complex, context-dependent triggers
- Nuanced decision-making
- When rules are hard to define
Example description:
Trigger when the customer expresses frustration after receiving an
unhelpful response and seems ready to give up.Intent Mode
Trigger based on specific phrases or intents.
How it works:
- You define trigger phrases
- Customer message is compared to phrases
- Trigger fires if similarity exceeds threshold
Best for:
- Clear, specific requests
- Predictable customer language
- High-confidence triggers
Example phrases:
- "cancel my subscription"
- "I want to cancel"
- "stop my account"
- "unsubscribe"Hybrid Mode
Combines intent matching with AI judgment.
How it works:
- Intent matching runs first
- If no match, AI evaluates context
- Either can trigger the workflow
Best for:
- Catching both explicit and implicit triggers
- Comprehensive coverage
- Important workflows
Configuring Intent Triggers
Adding Intent Phrases
- Open workflow configuration
- Find Trigger Settings or Intent Phrases
- Add phrases customers might use
- Set similarity threshold
Writing Good Phrases
Include variations of how customers express the intent:
# For cancellation workflow
"cancel my subscription"
"I want to cancel"
"cancel my account"
"how do I cancel"
"stop charging me"
"end my subscription"
"close my account"
"I don't want to continue"Similarity Threshold
Controls how closely a message must match:
| Threshold | Behavior |
|---|---|
| 0.9+ | Very strict, near-exact match |
| 0.75-0.9 | Balanced (recommended) |
| 0.5-0.75 | Loose, catches variations |
| Below 0.5 | Too loose, false positives |
Start with 0.75 and adjust based on results.
Memory Conditions
Trigger based on what you know about the customer.
Condition Types
| Operator | Description | Example |
|---|---|---|
| exists | Memory exists | Customer has preference set |
| not_exists | Memory doesn't exist | No previous contact |
| equals | Exact match | Plan equals "enterprise" |
| contains | Partial match | Issue contains "billing" |
Example Conditions
VIP Customer Alert:
conditions:
- category: customer_tier
operator: equals
value: "vip"Returning Customer with Issue:
conditions:
- category: previous_issues
operator: existsNew Customer Welcome:
conditions:
- category: onboarding_complete
operator: not_existsWorkflow Priority & Overrides
When multiple workflows might trigger:
Override Slugs
Specify which workflows this one takes priority over:
override_slugs:
- general-support
- default-responseIf both cancel-order and general-support would trigger, cancel-order runs because it overrides general-support.
Priority Order
- Workflows with explicit overrides
- Higher similarity matches (intent mode)
- More specific memory conditions
- Earlier creation date (tie-breaker)
Testing Triggers
Preview Testing
- Go to Widget > Preview
- Type messages that should trigger
- Verify workflow fires
- Test edge cases
Testing Checklist
- Direct trigger phrase works
- Variations work
- Similar but different phrases don't trigger
- Memory conditions evaluated correctly
- Priority/overrides work as expected
Debugging Triggers
Workflow Not Triggering
- Check enabled - Is workflow turned on?
- Check description - Is it clear enough for AI?
- Check phrases - Do they match customer language?
- Check threshold - Is it too strict?
- Check conditions - Are memory conditions met?
Triggering Too Often
- Increase threshold - Make matching stricter
- Refine phrases - Remove overly broad phrases
- Add conditions - Require additional context
- Adjust description - Be more specific
Wrong Workflow Triggering
- Check overrides - Priority order correct?
- Make phrases unique - Distinguish between workflows
- Add memory conditions - Differentiate by context
Best Practices
Be Specific
Specific triggers reduce false positives:
Good: "cancel my subscription" Too broad: "cancel"
Cover Variations
Customers phrase things differently:
- "Cancel" vs "stop" vs "end"
- "Subscription" vs "account" vs "plan"
- Question vs statement form
Test Thoroughly
Before production:
- Test expected triggers
- Test similar-but-different messages
- Test edge cases
- Monitor after launch
Monitor and Adjust
After launch:
- Review workflow execution logs
- Check for missed triggers
- Check for false triggers
- Adjust thresholds and phrases