Skip to content
SoulFire LogoSoulFire

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

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
key (Key)stringRequiredVariable key
defaultValue (Default)anynullValue if not found

Outputs

PortTypeDescription
out (Out)execExecution output
value (Value)anyRetrieved value
found (Found)booleanWhether variable was found

Implementation

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

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
namespace (Namespace)string"script"Variable namespace
key (Key)stringRequiredVariable key
defaultValue (Default)anynullValue if not found

Outputs

PortTypeDescription
out (Out)execExecution output
value (Value)anyRetrieved value
found (Found)booleanWhether variable was found

Implementation

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

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
namespace (Namespace)string"script"Variable namespace
key (Key)stringRequiredVariable key
defaultValue (Default)anynullValue if not found

Outputs

PortTypeDescription
out (Out)execExecution output
value (Value)anyRetrieved value
found (Found)booleanWhether variable was found

Implementation

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

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
key (Key)stringRequiredVariable key
defaultValue (Default)anynullValue if not found

Outputs

PortTypeDescription
out (Out)execExecution output
value (Value)anyRetrieved value
found (Found)booleanWhether variable was found

Implementation

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

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
key (Key)stringRequiredVariable key
value (Value)anyRequiredValue to store

Outputs

PortTypeDescription
out (Out)execExecution output
success (Success)booleanWhether storage succeeded

Implementation

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

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
namespace (Namespace)string"script"Variable namespace
key (Key)stringRequiredVariable key
value (Value)anyRequiredValue to store

Outputs

PortTypeDescription
out (Out)execExecution output
success (Success)booleanWhether storage succeeded

Implementation

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

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
namespace (Namespace)string"script"Variable namespace
key (Key)stringRequiredVariable key
value (Value)anyRequiredValue to store

Outputs

PortTypeDescription
out (Out)execExecution output
success (Success)booleanWhether storage succeeded

Implementation

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

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
key (Key)stringRequiredVariable key
value (Value)anyRequiredValue to store

Outputs

PortTypeDescription
out (Out)execExecution output
success (Success)booleanWhether storage succeeded

Implementation

How is this page?

Last updated on