In this article
A value in Flow State belongs to one execution; durable configuration and conversation memory use different mechanisms and should not be inferred from it.
Choose the lifetime the value needs
A workflow extracts a document category and uses it in a later branch. That intermediate value needs to survive steps in the current execution, not become a permanent preference. Flowise provides several places that can look like variables. Identify the required lifetime before selecting a namespace, because a working reference in one run does not prove persistence into the next conversation.
Declare execution state at the Start node
The Agentflow V2 reference defines $flow.state as an execution-local key/value store. Every key that later nodes update must be initialized at Start, including an empty default when appropriate. Operational nodes update pre-existing keys rather than creating an arbitrary new schema. Check both declaration and the node’s explicit Update Flow State mapping when a later branch sees an empty value despite a successful model response.
Keep configured variables separate
The Variables guide distinguishes saved static values from runtime values fetched from the environment. These use $vars, a different mechanism from $flow.state. A configured service label, an environment-derived setting, and an extracted category can have the same visible spelling while referring to different sources. Record the namespace in the design note rather than describing all of them as “the variable” when troubleshooting.
Do not infer conversation memory from state
Flow State is destroyed when that execution ends, and concurrent executions have independent stores. The Prediction guide separately documents session identity and supplied conversation history. Start’s Ephemeral Memory option controls whether prior messages participate in the run; it does not turn execution state into a cross-session database. Decide whether the task needs previous conversation text, a current-run result, or a separately maintained durable record.
Verify a branch and a new run
Use an intermediate result that differs clearly between sample inputs. Confirm its update before the consuming branch, then start an independent execution and inspect the initialization behavior. The task-contract guide helps define the intended lifetime; tool observations distinguish a generated response from a stored state update. Keep these observations separate so a successful chat reply does not conceal a missing mapping.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.