Event Trigger
Event triggers start your workflow automatically when a specific event is emitted. This enables real-time, event-driven automation based on actions in your system.Overview
Event triggers are ideal for:- Responding to user actions immediately
- Processing data as it arrives
- Building reactive workflows
- Integrating with external systems via webhooks
Configuration
When you configure an Event trigger, you’ll need to:Select an Event
Choose the event that will start your workflow. Events are defined in your Flowripple account and represent specific occurrences in your system.If you don’t see the event you need, create it first in the Events section of your dashboard. Events define the data structure (variables) that will be available in your workflow.
Event Variables
Once you select an event, the event’s variables become available throughout your workflow. These variables represent the data payload that comes with the event. Example Event Variables:user.id- User identifieruser.email- User email addressorder.amount- Order total amountorder.items- Array of order items
How Event Triggers Work
- Event is Emitted: An event occurs in your system (e.g., user signs up, order is created)
- Workflow Starts: All workflows with matching event triggers start executing
- Variables Available: Event data is available as workflow variables
- Steps Execute: Workflow steps run in sequence, using event data
Example Use Cases
User Onboarding
Trigger a welcome sequence when a user signs up:Order Processing
Process orders immediately when they’re created:Webhook Integration
Trigger workflows from external systems:Best Practices
Define Clear Event Structures
Define Clear Event Structures
When creating events, define clear variable structures that match your use case. This makes it easier to use event data in workflows.
Use Descriptive Event Names
Use Descriptive Event Names
Use clear, descriptive event names (e.g.,
user.signup instead of event1) to make workflows easier to understand and maintain.Validate Event Data
Validate Event Data
Use flow control steps to validate event data before processing. This prevents errors from invalid or unexpected data.
Handle Missing Variables
Handle Missing Variables
Consider using flow control steps to check if required variables exist before using them in subsequent steps.