cavan_mitchell
11/03/2025, 4:42 PMAI Evy
11/03/2025, 4:42 PMAI Evy
11/03/2025, 4:42 PM==) instead of single equals (=) for comparisons [(1) ]() .
Change your equation transitions from:
- {{ is_serviced }} = "true"
- {{ is_serviced }} = "false"
To:
- {{ is_serviced }} == "true"
- {{ is_serviced }} == "false"
However, there's a second critical issue: your webhook is returning a boolean value (true) , but all dynamic variables in Retell must be strings [(2) ]() . Your tool result shows {"is_serviced":true} (boolean) , but your equation is comparing against the string "true".
To fix this completely:
1. Modify your n8n webhook to return the string "true" or "false" instead of boolean values
2. Use the correct comparison operator (==) in your equation transitions [(1) ]()
The documentation confirms that equation conditions use double equals for comparisons, with examples like {{user_location}} == "New York" .
Additionally, make sure "Wait for Result" is enabled on your Function Node so the transition waits for the function to complete before evaluating conditions [(3) ]() .AI Evy
11/03/2025, 4:42 PMAI Evy
11/03/2025, 4:42 PMcavan_mitchell
11/03/2025, 4:49 PM