https://retellai.com/?utm_source=discord&utm_medium=seo logo
flex mode not recognising dymanic variables when t...
# ❓・ai-evy-support
j
@AI Evy flex mode not recognising dymanic variables when testing
a
Thanks for tagging me @JockRusky. I'll look through relevant sources and get back to you shortly.
### Answer There are a few things to check when Flex Mode isn't recognizing dynamic variables during testing: 1. Node-level Knowledge Base is ignored in Flex Mode Node-level KB is ignored in Flex Mode—you need to configure the Knowledge Base at the agent level instead. [(1) ]() 2. Flex Mode handles tools differently Flex Mode can handle tool orchestration differently than standard modes, which may affect how variables and mocks are processed during testing. [(2) ]() Potential workarounds: - Ensure test variables are initialized before the session starts — Flex Mode may not pick up variables or mocks injected mid-stream. - Set default dynamic variables — You can set default values in "Security and Fallback Settings" under "Default Dynamic Variables." [(3) ]() - Check and reset fallback values — One community member found that setting a fallback dynamic value, deleting it, and re-adding it resolved a similar issue with dynamic variables not being recognized. [(4) ]() - Use the inbound webhook URL to pass dynamic variables when testing with actual calls. [(3) ]() If the issue persists, could you share: - The agent ID - Whether this happens only in simulations or also in normal calls This will help narrow down the cause.
​ To learn more, see the sources I considered: [[1] Flex Mode](https://docs.retellai.com/build/conversation-flow/flex-mode) [[2] Flex Mode not using mocks as function call results](https://discord.com/channels/1186424376300679209/1455850410697953435) [[3] Discord message from @mrearthbound on 2025-04-09](https://discord.com/channels/1186424376300679209/1186462578310910112/1359404734137503865) [[4] {{user_number}} - system dynamic value is not working after chat transferred another agent](https://community.retellai.com/t/user-number-system-dynamic-value-is-not-working-after-chat-transferred-another-agent/730) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
@AI Evy The agent ID is agent_52451562ab6b9c64af3cf2c404 It is happening in Test Agent / Test Audio - it is not recognising any Dynamic Variables saved in Test Value.
a
Thanks for the follow-up, @JockRusky. I'll get back to you soon.
### Answer This is a known behavior with the Test Agent feature. Dynamic variable test values entered in the test panel are runtime-only and are not persisted to the database. [(1) ]() What's happening: - When you set dynamic variables in the test panel and refresh the page, existing variable values are reset - New variables you create will appear, but their test values won't persist across refreshes Workarounds: 1. Set agent-level default dynamic variables — Configure default values in your agent settings. These serve as fallbacks when specific variables aren't included in the call request. [(2) ]() 2. Try resetting fallback values — One community member resolved a similar issue by setting a fallback dynamic value, deleting it, then re-adding it. [(3) ]() 3. Use Test Outbound Calls — You can enter dynamic variables when sending a test call directly from the platform, which simulates real scenarios during testing. [(4) ]() Since you've provided your agent ID (
agent_52451562ab6b9c64af3cf2c404
) , I'd recommend reaching out to Retell support directly with this call ID so they can investigate whether there's a platform-side issue specific to Flex Mode and dynamic variable recognition during testing.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Dynamic variables not persisted for test agent](https://discord.com/channels/1186424376300679209/1419312690110660740) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[3] {{user_number}} - system dynamic value is not working after chat transferred another agent](https://community.retellai.com/t/user-number-system-dynamic-value-is-not-working-after-chat-transferred-another-agent/730) [[4] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​