Event Payloads & Variables
Event payloads are JSON objects containing data about an occurrence in your system. Flowripple automatically extracts variables from payloads, making the data available throughout your workflows.What is an Event Payload?
A payload is the JSON data you send when triggering an event. It contains context about what happened:- Node.js (SDK)
- HTTP (cURL)
- Order identification (
orderId) - Customer information (nested
customerobject) - Order items (array of products)
- Order total and timestamp
Automatic Variable Extraction
When Flowripple receives a payload, it automatically extracts variables using dot notation paths:| Payload Path | Variable | Type | Sample Value |
|---|---|---|---|
orderId | trigger.orderId | string | ord_789 |
customer.id | trigger.customer.id | string | cust_123 |
customer.email | trigger.customer.email | string | [email protected] |
customer.name | trigger.customer.name | string | Jane Smith |
total | trigger.total | number | 109.97 |
createdAt | trigger.createdAt | date | 2024-01-15T14:30:00Z |
All event variables are prefixed with
trigger. to distinguish them from variables created by workflow steps.Variable Properties
Each extracted variable has these properties:| Property | Description |
|---|---|
| Path | Dot notation path to the value (e.g., customer.email) |
| Label | Human-readable name shown in the variable picker |
| Type | Data type: string, number, boolean, date, object, array |
| Sample | Example value from the expected payload |
Type Detection
Flowripple automatically detects variable types based on values:Strings
string.
Numbers
number.
Booleans
boolean.
Dates (ISO 8601)
Objects
trigger.user.id→usr_123trigger.user.profile.firstName→John
Arrays
Using Variables in Workflows
Reference variables in workflow step configurations using the{{variable.path}} syntax:
Email Step Example
HTTP Request Example
Managing Variables
Viewing Variables
In the Events section of your dashboard, click on an event to view its extracted variables. Each variable shows:- Variable path
- Detected type
- Sample value from the expected payload
Editing Variable Labels
Variable paths are auto-generated, but you can customize the display labels:- Navigate to the event in your dashboard
- Click on a variable to edit
- Update the label to something more descriptive
- Save changes
Regenerating Variables
If your payload structure changes, regenerate variables from a new expected payload:- Edit the event’s expected payload
- Click “Regenerate Variables”
- Review the new variable list
- Save changes
Payload Best Practices
Keep payloads consistent
Keep payloads consistent
Always send the same structure for a given event type. Inconsistent payloads lead to missing variables and workflow failures.
Use meaningful field names
Use meaningful field names
Choose clear, descriptive names that explain the data:
Avoid deeply nested structures
Avoid deeply nested structures
Keep nesting to 2-3 levels. Deep nesting creates long variable paths:
Include timestamps
Include timestamps
Add creation timestamps for audit trails and time-based workflow logic: