https://retellai.com/?utm_source=discord&utm_medium=seo logo
can I store an array using dynamic variables
# ❓・ai-evy-support
p
@AI Evy can I store an array using dynamic variables?
a
Thanks for tagging me @pavankalyan2312. I'll look through relevant sources and get back to you shortly.
### Answer Based on the official documentation, dynamic variables in Retell AI currently support specific data types, but arrays are not explicitly listed as a supported type [(1) ]() [(2) ]() . The supported variable types are [(2) ]() : - Text - Any word or sentence - Number - A numeric value - Enum - A value from a predefined list - Boolean - True or false For API calls, the documentation specifies that "all values must be strings" [(1) ]() . There is a community request for array support in dynamic variables [(3) ]() , which suggests this functionality is not currently available but has been requested by users. For your use case of tracking a list of items, you might need to work around this limitation by using text variables to store comma-separated values or using multiple numbered variables (like
item_1
,
item_2
, etc.) until native array support is added.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[2] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[3] Add Array Support to Dynamic Variables](https://discord.com/channels/1186424376300679209/1240745567194190036) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.