nikhilmishra_53806
10/16/2025, 5:40 AMAI Evy
10/16/2025, 5:40 AMAI Evy
10/16/2025, 5:40 AMretell_llm_dynamic_variables may not yet be "hydrated" (fully loaded into memory for the flow engine) [(1) ]() . If a Split node tries to read the variable too early, it sees null/empty and takes the wrong path .
The solution is to implement a "hydration guard" - a condition that checks if the variable exists before comparing its value . Instead of just checking {{facility}} == "Hospital", you should first verify the variable is loaded:
facility exists
or
facility != ""
This ensures "the variable is loaded with something" before you compare it to "Hospital" .
If you need to handle cases where the variable isn't loaded yet, you can implement 1-2 retries using a counter so it loops back until the variable loads . If after a couple tries it's still empty, you can fall back gracefully by asking the caller .
Your payload structure looks correct - dynamic variables should be passed as strings in the retell_llm_dynamic_variables object [(2) ]() , [(1) ]() . The issue is timing-related rather than format-related.AI Evy
10/16/2025, 5:40 AMAI Evy
10/16/2025, 5:40 AM