Skip to main content

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:
This payload contains:
  • Order identification (orderId)
  • Customer information (nested customer object)
  • 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:
All event variables are prefixed with trigger. to distinguish them from variables created by workflow steps.

Variable Properties

Each extracted variable has these properties:

Type Detection

Flowripple automatically detects variable types based on values:

Strings

Detected as string.

Numbers

Both detected as number.

Booleans

Detected as boolean.

Dates (ISO 8601)

Use ISO 8601 format for dates (YYYY-MM-DDTHH:mm:ssZ). Flowripple recognizes this format and provides date-specific functionality in workflow steps.

Objects

Nested objects are flattened into dot notation paths:
  • trigger.user.idusr_123
  • trigger.user.profile.firstNameJohn

Arrays

Arrays are accessible as variables but individual elements require specific workflow logic to iterate.

Using Variables in Workflows

Reference variables in workflow step configurations using the {{variable.path}} syntax:

Email Step Example

HTTP Request Example

Use the variable picker in any workflow step to browse available variables. Click on a variable to insert it at the cursor position.

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:
  1. Navigate to the event in your dashboard
  2. Click on a variable to edit
  3. Update the label to something more descriptive
  4. Save changes

Regenerating Variables

If your payload structure changes, regenerate variables from a new expected payload:
  1. Edit the event’s expected payload
  2. Click “Regenerate Variables”
  3. Review the new variable list
  4. Save changes
Regenerating variables may affect workflows using the old variable paths. Review all workflows using the event after regenerating.

Payload Best Practices

Always send the same structure for a given event type. Inconsistent payloads lead to missing variables and workflow failures.
Choose clear, descriptive names that explain the data:
Keep nesting to 2-3 levels. Deep nesting creates long variable paths:
Add creation timestamps for audit trails and time-based workflow logic:

What’s Next?

Triggering Events

Learn how to trigger events from your application.

Event Trigger

Configure workflows to start when events occur.