Prerequisites
- A running SnackBase instance
- At least one collection (we’ll use
ordersin this example) - Familiarity with Workflow Automation concepts
Building Your First Workflow
Advanced Patterns
Webhook-Triggered Workflows
Accept events from external services (e.g., Stripe, GitHub):Parallel Notifications
Send multiple notifications simultaneously:Loops
Process each item in a list:Troubleshooting
Workflow not triggering on events
Workflow not triggering on events
- Verify the workflow is
enabled - Check
trigger_config.eventmatches the actual event - If using
collection, verify the collection name is correct - Check if a
conditionin the trigger config is filtering out events
Instance stuck in 'waiting' status
Instance stuck in 'waiting' status
This is normal for
wait_delay steps. The instance will resume automatically after the delay. You can also manually resume it via the API.Step logs show 'failed' status
Step logs show 'failed' status
Check the
error_message in the step log. Common causes:- Invalid template variable references
- External service unavailable (for webhook actions)
- Record not found (for update/delete actions)
Next Steps
- Workflow Automation Concept — full reference
- Workflows API Reference — all endpoints
- Workflows SDK Reference — SDK methods