https://retellai.com/?utm_source=discord&utm_medium=seo logo
If i'm using a code node with dynamic variables, t...
# ❓・ai-evy-support
g
@AI Evy If i'm using a code node with dynamic variables, the data retention settings still apply correct? So if I set data retention to "Basic Attributes Only", the call logs should not retain and dynamic variables used in the agent and code node right?
a
Thanks for tagging me @g3nbl0k. I'll look through relevant sources and get back to you shortly.
### Answer Yes, data retention settings apply to code nodes and dynamic variables [(1) ]() . The Code Node documentation specifically warns: "Do not treat dynamic variables or metadata as a secret vault. Avoid placing long-lived API keys, database credentials, or other sensitive secrets in dynamic variables or call metadata for use in Code Node. Both
dv
and
metadata
values are stored in plaintext with every call record — anything you pass in will be visible in call logs and API responses." When you set
data_storage_setting
to a restrictive option like
"basic_attributes_only"
or
"everything_except_pii"
, it affects what gets retained in call logs [(2) ]() [(3) ]() [(4) ]() . The agent configuration includes a
data_storage_setting
parameter that controls this [(3) ]() [(4) ]() . However, the sources don't explicitly detail which specific fields are excluded under each retention setting. To get definitive clarification on exactly what gets retained or excluded with "Basic Attributes Only" (including dynamic variables from code nodes) , I'd recommend: - Checking the most relevant documentation: [Code Node]() , [Update Call]() , [Create Voice Agent]() - Contacting Retell support for specific retention policy details Would you like me to provide a general answer based on typical data retention patterns?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.