Journey Triggers
Complete guide for triggering automated customer journeys in Masivo using events - from cart abandonment to personalized follow-ups
Overview
Journey triggers in Masivo enable developers to create sophisticated automated workflows that respond to customer behavior in real-time. By sending events through the API, you can trigger journey transitions that move customers through personalized experiences based on their actions and attributes.
Journey triggers work by matching events to journey edge configurations. When an event matches the specified event type and conditions, customers automatically progress to the next step in the journey.
Understanding Journey Triggers
How Journey Triggers Work
Journey triggers operate through a three-step process:
- Event Emission: Developer sends an event via the
POST /behavior/events
endpoint - Journey Evaluation: Masivo evaluates all active journeys to find matching trigger conditions
- Customer Progression: Qualifying customers automatically move to the next journey step
Journey Edge Configuration
Each journey transition (edge) can be configured with:
- Event Type: The specific event that triggers the transition (e.g.,
ADD_TO_CART
,PURCHASE
) - Conditions: Additional criteria that must be met for the transition to occur
- Wait Time: Delay in minutes before the next action is executed
1. Sending Events to Trigger Journeys
Basic Event Structure
Use the POST /behavior/events
endpoint to send events that can trigger journey transitions:
Event Processing for Journeys
When you send an event, Masivo automatically:
- Enqueues for Journey Processing: Events are added to the
journeys_events
queue - Evaluates Active Journeys: Checks all active journeys for matching trigger conditions
- Processes Customer Transitions: Moves qualifying customers to the next journey step
- Applies Wait Times: Schedules future actions based on configured delays
2. Cart Abandonment Journey Example
Scenario: E-commerce Cart Abandonment Recovery
Let’s build a complete cart abandonment journey that triggers when customers add items to cart but don’t complete purchase within 30 minutes.
Step 1: Send ADD_TO_CART Event
Step 2: Journey Configuration
The journey would be configured with these transitions:
Trigger Edge (Root → Wait Node):
- Event Type:
ADD_TO_CART
- Conditions: None (triggers for any cart addition)
- Wait Time: 30 minutes
Follow-up Edge (Wait Node → Email Node):
- Event Type:
null
(time-based transition) - Conditions: Customer has not made a purchase
- Wait Time: 0 minutes (fires immediately after wait period)
Step 3: Handle Purchase Completion
When a PURCHASE
event is received, customers are automatically removed from the cart abandonment journey, preventing them from receiving the abandonment email.
Conclusion
Journey triggers in Masivo provide a powerful way to create responsive, automated customer experiences. By strategically sending events and configuring journey transitions with appropriate wait times and conditions, you can build sophisticated workflows that engage customers at the perfect moments.
The combination of real-time event processing, flexible timing controls, and condition-based branching enables you to create personalized customer journeys that adapt to individual behavior and preferences, driving engagement and conversions at scale.
For more information about creating and managing journeys, see the Create Journeys Guide.