Set Broadcaster Variable
The Set Broadcaster Variable effect assigns a new value to a broadcaster-scoped variable. Unlike flow variables, broadcaster variables persist across flow executions and even across stream sessions. They are stored on the server and are available to all of your flows.
Use broadcaster variables for values that need to survive beyond a single flow run, such as loyalty point totals, death counters, or persistent settings.
Inputs
| Name | Type | Description |
|---|---|---|
Value | string, number, or boolean | The new value to assign to the broadcaster variable. |
Configuration
- Variable: The name of the broadcaster variable to set.
Example
Create a !deaths counter for a challenging game. Each time a moderator types !death, use a Math node to add 1 to the current value of the deathCount broadcaster variable, then pass the result to a Set Broadcaster Variable effect. Since broadcaster variables persist, the count carries over even if you restart the flow or go offline and come back.