On this page
4. Global Variables System
External sub-processes can push native decoupled key-value tokens into the memory workspace pool. Once injected, users can embed these entities anywhere inside chat templates or custom redeems layouts using the dynamic brace syntax schema {variable_name}:
{
"type": "set_global_variable",
"payload": {
"variable_name": "diapstash_product",
"variable_value": "SUNKISS Masterpiece (Blue)"
}
}Variable Parameter Mapping Specifications
| JSON Key | Type | Allocation Specification Definition |
|---|---|---|
type | string | Must equal 'set_global_variable' strictly to execute dictionary updates. |
payload.variable_name | string | The key identifier token string. Registered targets are cross-parsed anywhere across layout strings via bracket encapsulation. |
payload.variable_value | string | The concrete text sequence that dynamically substitutes matched database target identifiers when templates evaluate. |