Variables
Inputs, outputs, and defaults of the 8 built-in nodes in the Variables category.
Generated from the pinned SoulFire source. Regenerate these pages with bun run generate-node-reference.
Get connection variable
variable.get_session_bot
Reads temporary data for this bot connection. A new connection starts without these values.
Also called: Get Session Bot Variable, variable, session, bot, temporary, get, retrieve, memory.
Inputs
| Port | Type | Required / default | Description |
|---|---|---|---|
in (In) | exec | Optional | Execution input |
bot (Bot) | bot | Optional | Optional override of the bot in execution context |
key (Key) | string | Required | Variable key |
defaultValue (Default) | any | null | Value if not found |
Outputs
| Port | Type | Description |
|---|---|---|
out (Out) | exec | Execution output |
value (Value) | any | Retrieved value |
found (Found) | boolean | Whether variable was found |
Get persistent bot variable
variable.get_persistent_bot
Reads persistent metadata for the bot account, which survives reconnects and SoulFire server restarts.
Also called: variable, persistent, bot, load, get, retrieve, permanent.
Inputs
| Port | Type | Required / default | Description |
|---|---|---|---|
in (In) | exec | Optional | Execution input |
bot (Bot) | bot | Optional | Optional override of the bot in execution context |
namespace (Namespace) | string | "script" | Variable namespace |
key (Key) | string | Required | Variable key |
defaultValue (Default) | any | null | Value if not found |
Outputs
| Port | Type | Description |
|---|---|---|
out (Out) | exec | Execution output |
value (Value) | any | Retrieved value |
found (Found) | boolean | Whether variable was found |
Get persistent project variable
variable.get_persistent_instance
Reads persistent project metadata, which survives SoulFire server restarts.
Also called: Get Persistent Instance Variable, variable, persistent, instance, load, get, retrieve, permanent.
Inputs
| Port | Type | Required / default | Description |
|---|---|---|---|
in (In) | exec | Optional | Execution input |
namespace (Namespace) | string | "script" | Variable namespace |
key (Key) | string | Required | Variable key |
defaultValue (Default) | any | null | Value if not found |
Outputs
| Port | Type | Description |
|---|---|---|
out (Out) | exec | Execution output |
value (Value) | any | Retrieved value |
found (Found) | boolean | Whether variable was found |
Get project runtime variable
variable.get_session_instance
Reads temporary data for this project runtime. Values reset when the SoulFire server restarts.
Also called: Get Session Instance Variable, variable, session, instance, temporary, get, retrieve, memory.
Inputs
| Port | Type | Required / default | Description |
|---|---|---|---|
in (In) | exec | Optional | Execution input |
key (Key) | string | Required | Variable key |
defaultValue (Default) | any | null | Value if not found |
Outputs
| Port | Type | Description |
|---|---|---|
out (Out) | exec | Execution output |
value (Value) | any | Retrieved value |
found (Found) | boolean | Whether variable was found |
Set connection variable
variable.set_session_bot
Stores temporary data for this bot connection. A new connection starts without these values.
Also called: Set Session Bot Variable, variable, session, bot, temporary, store, set, memory.
Inputs
| Port | Type | Required / default | Description |
|---|---|---|---|
in (In) | exec | Optional | Execution input |
bot (Bot) | bot | Optional | Optional override of the bot in execution context |
key (Key) | string | Required | Variable key |
value (Value) | any | Required | Value to store |
Outputs
| Port | Type | Description |
|---|---|---|
out (Out) | exec | Execution output |
success (Success) | boolean | Whether storage succeeded |
Set persistent bot variable
variable.set_persistent_bot
Stores persistent metadata for the bot account, which survives reconnects and SoulFire server restarts.
Also called: variable, persistent, bot, save, store, set, permanent.
Inputs
| Port | Type | Required / default | Description |
|---|---|---|---|
in (In) | exec | Optional | Execution input |
bot (Bot) | bot | Optional | Optional override of the bot in execution context |
namespace (Namespace) | string | "script" | Variable namespace |
key (Key) | string | Required | Variable key |
value (Value) | any | Required | Value to store |
Outputs
| Port | Type | Description |
|---|---|---|
out (Out) | exec | Execution output |
success (Success) | boolean | Whether storage succeeded |
Set persistent project variable
variable.set_persistent_instance
Stores persistent project metadata, which survives SoulFire server restarts.
Also called: Set Persistent Instance Variable, variable, persistent, instance, save, store, set, permanent.
Inputs
| Port | Type | Required / default | Description |
|---|---|---|---|
in (In) | exec | Optional | Execution input |
namespace (Namespace) | string | "script" | Variable namespace |
key (Key) | string | Required | Variable key |
value (Value) | any | Required | Value to store |
Outputs
| Port | Type | Description |
|---|---|---|
out (Out) | exec | Execution output |
success (Success) | boolean | Whether storage succeeded |
Set project runtime variable
variable.set_session_instance
Stores temporary data for this project runtime. Values reset when the SoulFire server restarts.
Also called: Set Session Instance Variable, variable, session, instance, temporary, store, set, memory.
Inputs
| Port | Type | Required / default | Description |
|---|---|---|---|
in (In) | exec | Optional | Execution input |
key (Key) | string | Required | Variable key |
value (Value) | any | Required | Value to store |
Outputs
| Port | Type | Description |
|---|---|---|
out (Out) | exec | Execution output |
success (Success) | boolean | Whether storage succeeded |
How is this page?
Last updated on
