Request flow
Installation
Add the dependency to yourpubspec.yaml:
Initialization
Analytics (event tracking)
Personalization
Single workflow run
Multiple workflows in parallel
Click tracking
RunOptions
| Parameter | Type | Required | Description |
|---|---|---|---|
workflowId | String | Yes | Workflow ID from the platform |
entrypoint | String | Yes | Entrypoint ID within the workflow |
userId | String? | No | Override identity (default: auto-resolved from setUser() / device ID) |
params | Map<String, String>? | No | Additional URL parameters forwarded to the runner |
locale | String? | No | Locale for content resolution |
timeout | Duration? | No | Per-call timeout override |
RunResult
| Field | Type | Description |
|---|---|---|
status | int | HTTP status code (0 for fallback) |
source | RunSource | .runner or .fallback |
body | RunContent | Discriminated content: JsonRunContent, HtmlRunContent, ImageRunContent, or EmptyRunContent |
metadata | Map<String, dynamic> | Metadata from x-rlvt-output-node-metadata header |
properties | Map<String, dynamic> | Properties from x-rlvt-output-properties header |
runId | String? | Workflow run ID for tracking correlation |
executionPath | List<String> | Branch IDs taken during execution |
redirectionUrl | String | Pre-built click-through URL |