Goopa Snoops
01/22/2026, 5:37 PMAI Evy
01/22/2026, 5:37 PMAI Evy
01/22/2026, 5:38 PM{{variable_name}} syntax and can be used in prompts and tool descriptions. [(1) ]() Make sure {{previous_agent_state}} is actually being populated with a value—if it's empty or undefined, the LLM won't have the context needed to make the decision.
2. Be explicit in your prompt about when to call each function
It's best to include in the prompt explicitly when is the best time to invoke each function. [(2) ]() For example:
When {{previous_agent_state}} equals "state_a", call the `function_one` function.
When {{previous_agent_state}} equals "state_b", call the `function_two` function.
3. Consider using multi-prompt states with edges instead
If you're using a multi-prompt agent, you may get more reliable behavior by using states with edges rather than relying solely on dynamic variable checks within a single state. States help reduce prompt length and tool choices, allowing the LLM to better focus and follow rules, minimizing hallucination. [(3) ]()
You can't jump to nodes using just the prompt—you have to use the edges for state transitions. [(4) ]()
4. Check your model selection
Some users have reported that state transitions and conditional logic work more reliably with certain models. If you're experiencing inconsistent behavior, you might try a different model.AI Evy
01/22/2026, 5:38 PMAI Evy
01/22/2026, 5:38 PM