Back to page

SetVariable Node

Raw Markdown & AI/RAG Chunks
Raw Markdown Source 1059 chars
# SetVariable Node

The **SetVariable** module stamps custom metadata strings straight into the active session execution scope dynamically.

---

## Context Update Flow

```mermaid
graph LR
    SetKey["Define Parameter Pair<br/>(Key: 'AccountID', Value: '1004')"] ==>|"Commit Context Scope"| StasisMemory["Runtime Execution Storage"]
    StasisMemory ==>|"Advance Token Edge"| ContinueFlow["Execute Subsequent Nodes"]

    classDef baseToken fill:#0f172a,stroke:#38bdf8,stroke-width:2px,color:#fff,rx:6px,ry:6px;
    classDef memToken fill:#312e81,stroke:#ec4899,stroke-width:2px,color:#fff,rx:6px,ry:6px;

    class SetKey,ContinueFlow baseToken;
    class StasisMemory memToken;
```

---

## Variable rules

### 1. Interpolation Targets
Assigned fields persist immediately across all descending layout linkages, allowing you to embed stored names straight inside custom greeting lines smoothly.

### 2. Multi-Level Scope Persistence
Scope settings govern isolation rules cleanly. Call context keys expire safely after physical socket connection lines clear.
AI Chunks (RAG) 3 chunks
Chunk #1 SetVariable Node
# SetVariable Node

The **SetVariable** module stamps custom metadata strings straight into the active session execution scope dynamically.

---
Chunk #2 Context Update Flow
## Context Update Flow

```mermaid
graph LR
    SetKey["Define Parameter Pair<br/>(Key: 'AccountID', Value: '1004')"] ==>|"Commit Context Scope"| StasisMemory["Runtime Execution Storage"]
    StasisMemory ==>|"Advance Token Edge"| ContinueFlow["Execute Subsequent Nodes"]

    classDef baseToken fill:#0f172a,stroke:#38bdf8,stroke-width:2px,color:#fff,rx:6px,ry:6px;
    classDef memToken fill:#312e81,stroke:#ec4899,stroke-width:2px,color:#fff,rx:6px,ry:6px;

    class SetKey,ContinueFlow baseToken;
    class StasisMemory memToken;
```

---
Chunk #3 Variable rules
## Variable rules

### 1. Interpolation Targets
Assigned fields persist immediately across all descending layout linkages, allowing you to embed stored names straight inside custom greeting lines smoothly.

### 2. Multi-Level Scope Persistence
Scope settings govern isolation rules cleanly. Call context keys expire safely after physical socket connection lines clear.