https://retellai.com/?utm_source=discord&utm_medium=seo logo
can you help me understand this issue on the extra...
# ❓・ai-evy-support
n
@AI Evy can you help me understand this issue on the extract variable node: {"error":"Failed to extract dynamic variables"}
a
Thanks for tagging me @nicolas_46952. I'll look through relevant sources and get back to you shortly.
### Answer The error {"error":"Failed to extract dynamic variables"} in the extract variable node typically means the node was unable to successfully extract the specified dynamic variable from the conversation at that point. This can happen if the information needed isn't present in the user's input, or if the variable configuration (name, type, or extraction settings) is incorrect [(1) ]() . Additionally, there are multiple community reports of issues when transitions are added inside the extract variable node—sometimes causing extraction failures or LLM errors [(2) ]() [(3) ]() . If you have a transition set up in the node, try removing it to see if extraction works; if so, the transition logic or its interaction with the node may be the cause . Check your variable configuration (name, type, description) and make sure the expected input is provided before this node runs [(1) ]() . If you’re using transitions, test with and without them to isolate the issue [(2) ]() [(3) ]() .
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] extract variable](https://discord.com/channels/1186424376300679209/1414908562999742515) [[3] Bug in Extract Variables node – "Failed to get LLM response"](https://discord.com/channels/1186424376300679209/1417198938272039024) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
@AI Evy you mean that i should not have transition inside the extract variable node? how do i go to another node in that case? I have conversation node that connects to extract variable node that connects to another conversation node
a
Thanks for the follow-up, @nicolas_46952. I'll get back to you soon.
### Answer You can have transitions out of an extract variable node—this is how you move to the next step in your flow. The typical pattern is exactly what you described: a conversation node connects to an extract variable node, which then connects to another conversation node [(1) ]() . The extract variable node itself is not meant for holding a conversation, but for extracting and storing information as a dynamic variable [(2) ]() . Transitions are supported between nodes, including after an extract variable node [(1) ]() . If you are experiencing errors, double-check your variable configuration and transition conditions, but having a transition from an extract variable node to another node is the correct approach for moving forward in the conversation flow [(2) ]() [(1) ]() .
​ To learn more, see the sources I considered: [[1] Node Overview](https://docs.retellai.com/build/conversation-flow/node) [[2] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
@AI Evy on the extract variable node, what is the best way to get a list of strings from the conversation?
a
Thanks for the follow-up, @nicolas_46952. I'll get back to you soon.
### Answer There is no explicit information in the available sources about extracting a list of strings (an array) from the conversation using the extract variable node in Retell AI. The sources discuss extracting dynamic variables and provide some troubleshooting advice, but do not specify support for list/array types or best practices for extracting them [(1) ]() . Check out these potentially useful sources: [extract variable]() , [Stuck in Extract Variable Node]() , [Node Overview]() Would you like a general answer based on what is typically done in conversation AI platforms?
​ To learn more, see the sources I considered: [[1] extract variable](https://discord.com/channels/1186424376300679209/1414908562999742515) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
n
@AI Evy yes please
a
Thanks for the follow-up, @nicolas_46952. I'll get back to you soon.
### Answer There is no explicit documentation in the official Retell AI sources about extracting a list of strings (an array) using the extract variable node. The extract variable node supports variable types: Text (any word or sentence) , Number, Enum (predefined list, but not an array of arbitrary strings) , and Boolean [(1) ]() [(2) ]() . None of the documented types indicate native support for extracting or storing an array of strings as a single variable. If you need to handle multiple values, you may need to extract them as separate variables (e.g., item1, item2, item3) or as a single Text variable containing a delimited string, and then process that string later . There are no official instructions or examples for handling arrays/lists in the extract variable node. Check out these potentially useful sources for more details or updates: [Extract Dynamic Variable Node]() , [Extract Dynamic Variables]() , [extract variable]() . Would you like more general guidance on how arrays are typically handled in conversation AI platforms? Let me know if so.
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
h
@AI Evy for custom function parameters, how are the parameters values calculated and input? Do they take dynamic variables? or are they automatically determined from the context of the conversation node that feeds into it
a
Thanks for the follow-up, @hintenjoyer. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] Function Calling Overview](https://docs.retellai.com/build/single-multi-prompt/function-calling) ​
### Answer For custom function parameters in Retell AI, the parameter values are automatically determined from the conversation context by the LLM [(1) ]() [(2) ]() . When you define parameters using JSON schema format, the LLM extracts the required information from the conversation and passes it to your custom function [(2) ]() . The process works as follows [(3) ]() : 1. **Agent Decision**: Based on the conversation context, the LLM determines when a function is needed 2. **Parameter Extraction**: The agent extracts required information from the conversation 3. **Function Execution**: Retell calls your function with the extracted parameters When Retell sends the request to your endpoint, the body includes an
args
field containing the arguments for the custom function as a JSON object [(1) ]() [(2) ]() . For example, if you define a parameter schema like this:
Copy code
json
{
 "type": "object",
 "properties": {
 "city": {
 "type": "string",
 "description": "The city of the weather"
 }
 },
 "required": [
 "city"
 ]
}
[(2) ]() The LLM will automatically extract the city name from the conversation and include it in the
args
when calling your function. Regarding dynamic variables, you can use them in custom headers and query parameters , but the parameter values themselves are extracted automatically by the LLM from the conversation context rather than being explicitly set as dynamic variables.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.