Data - Context
Type identifier:
data:contextCategory: Data Operations
Description
Provides access to run context values. Use this node to retrieve metadata about the current run, such as the Space ID, run ID, or the identity of the user who triggered the Flow.
Input Handles
This node has no input handles. It provides context values from the run environment.
Output Handles
Handle | Data Type | Description |
|---|---|---|
|
| The requested context value |
Output Handle Details
value
Type:
stringforspaceId,flowExecutionId,flowRunId,spaceIdentityIddateforcreatedAt,startedAt
- Notes: Data type depends on the selected
valueId
Configuration Options
Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| Yes |
| Display label for the node |
|
| Yes |
| Which context value to output |
Configuration Details
valueId
- Type:
"spaceId"|"flowExecutionId"|"flowRunId"|"spaceIdentityId"|"createdAt"|"startedAt"
Available Values:
Value | Output Type | Description |
|---|---|---|
|
| CUID2 identifier of the current Space |
|
| CUID2 identifier of the current run; in Flow v2, this is the same value as |
|
| CUID2 identifier of the current run; available as a Studio choice when Flow v2 is enabled for the Space |
|
| CUID2 identifier of the user/identity who triggered the Flow |
|
| ISO 8601 timestamp when the run was created |
|
| ISO 8601 timestamp when the run started |
Behaviour
Execution Flow
- When the node is processed, it reads the requested context value
- The value is set as output on the
valuehandle - Date values are converted to ISO 8601 JSON string format
Context Values
spaceId: The Space in which the Flow is runningflowExecutionId: Identifier for this run. Existing Flows continue to use this value; Flow v2 returns the same identifier asflowRunId.flowRunId: Identifier for this run. This value is available in Studio when Flow v2 is enabled for the Space.spaceIdentityId: The identity that triggered the Flow (user or API client)createdAt: When the run record was created (before any processing)startedAt: When the run actually began processing
Edge Cases
Scenario | Behaviour |
|---|---|
Unknown | Error: "Unknown valueId: ..." |
No identity context |
|
Examples
Get Space ID
{
"type": "data:context",
"data": {
"label": "Get Space ID",
"valueId": "spaceId"
}
}Output Handles:
value(string) — labelled "Space Id"
Get Space Identity ID
{
"type": "data:context",
"data": {
"label": "Get User ID",
"valueId": "spaceIdentityId"
}
}Output Handles:
value(string) — labelled "Space Identity Id"
Get Run Start Time
{
"type": "data:context",
"data": {
"label": "Get Start Time",
"valueId": "startedAt"
}
}Output Handles:
value(date) — labelled "Started At"
Usage Pattern - Personalized Response
[data:context (spaceIdentityId)] → [object:query (User)] → [object:pick (name)] → [text:template ("Hello, {name}!")]