πͺ Destructure Object
πͺ Destructure Object
The Destructure Object block lets you pull out every property of an Object variable at once, each to its own output, instead of chaining several "Get from Object" blocks.
Imagine a player record that holds a name, a score and a level all together: instead of adding one "Get from Object" block per piece of information, a single Destructure Object block makes all of them appear at once, ready to be wired wherever you need them.
π₯ Inputs
- object (Object): The Object variable to break apart. As soon as it is connected, each of its properties automatically gets its own output on the block β there is nothing else to configure.
π€ Outputs
- (Dynamic outputs): One output per property found in the connected object, named after that property and holding its value.
π‘ Example
Scenario: Extracting name, score and level from a player record in one step
- A
playerobject contains{"name": "Alice", "score": 1200, "level": 5}. - That
playerobject is connected to theobjectinput of a Destructure Object block. - Three outputs,
name,scoreandlevel, automatically appear on the block, ready to be wired separately into the rest of the graph β without having to ask for them one by one.
βοΈ Technical Details
- Internal ID:
destructureObject - No flow points: unlike most blocks, this one has no "in"/"out" point to connect in the story's flow. It is a pure value transformer β other blocks read its outputs directly.
- Dynamic output generation: outputs are created automatically from whatever properties actually exist in the connected object (unlike the "Decode JSON" block, there is no schema or list of keys to fill in by hand).
- Object that changes shape: if the connected object later loses a property, the matching output can return an empty value (null) for any block still wired to it.
Documented version: v1
Updated on: 06/09/2026
Thank you!
