Appearance
Event Trigger
Starts the workflow when an event matching the chosen eventType is received by OneHazel. Events can come from your own code (via POST /events), from a Connection's webhook, or from internal signals like connection health changes.
When to use
- You want a workflow to fire whenever a specific event happens in your product.
- Examples: "When a transaction is settled, sync it to our accounting tool." "When a player's session ends, compute GGR and update their KPIs." "When a connection becomes degraded, notify the ops channel."
Configuration
| Field | Required | What it does |
|---|---|---|
eventType | Yes | The event type string the workflow listens for. Pick from the dropdown or type a custom one. |
Built-in event types
The dropdown ships with the common iGaming event types plus two connection- health events:
transaction: player deposit/withdrawalgame_activity: session play eventssession: session start/stopbonus: bonus awarded/consumedblock: account block/unblocksupport: support ticket created/updatedaffiliate: affiliate-related eventsdeposit: a player deposit (financial preset)withdrawal: a player withdrawal (financial preset)kyc_verified: a player's identity/KYC check passedrisk_flag: a responsible-gaming / risk signal was raisedconnection.health.degraded: a Connection has started failing health checksconnection.health.recovered: a Connection's health checks are passing again
The financial and responsible-gaming presets (deposit, withdrawal, kyc_verified, risk_flag) come with a known payload shape, so their required fields are validated when an event arrives, a deposit missing its amount is rejected before the workflow runs.
You can also emit custom event types from your own code, any string works.
What it outputs
The trigger writes the event payload to the workflow context. Downstream nodes can reference it as {{trigger.data.<field>}}. The exact shape depends on which event type arrived. See the producer's docs (for a built-in type) or your own emitter code (for a custom type).
Deciding between the three trigger types
- Event Trigger: for internal events OneHazel already knows about, or events you emit yourself via
POST /events. - Webhook Trigger: for external systems that can hit a unique URL (Stripe webhook, GitHub webhook, custom integration). No pre-existing event type needed.
- Schedule: for time-based runs with no external event (nightly rollup, hourly health check, etc.).
Limitations
- Exactly one trigger node per workflow. If you need multiple trigger paths, create multiple workflows.
eventTypeis matched as an exact string; no wildcards today.