https://retellai.com/?utm_source=discord&utm_medium=seo logo
Is it best to create variables within the conversa...
# 💬・general
r
@AI Evy Is it best to create variables within the conversation node or use extract variables component?
a
Thanks for tagging me @renovia_70920. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation, you cannot extract variables inside Conversation Nodes [(1) ]() . Conversation Nodes are specifically designed for having conversations with the user and do not extract variables . For extracting variables, you need to use the dedicated Extract Dynamic Variable Node [(2) ]() . This node is specifically "used to extract information from conversation and store them as dynamic variable" and "It's not intended for having a conversation with the user" . However, one user mentioned that they "found out I can extract variables at any point in the conversation" and replaced multiple extract variable nodes with "one that extracts all variables" [(1) ]() . This suggests there may be flexibility in when variables can be extracted during the conversation flow, but the extraction itself still requires the dedicated Extract Dynamic Variable Node [(2) ]() . **Best practice**: Use the Extract Dynamic Variable Node for variable extraction rather than attempting to do so within Conversation Nodes [(2) ]() [(1) ]() .
​ To learn more, see the sources I considered: [[1] Discord message from @q40478 on 2025-10-19](https://discord.com/channels/1186424376300679209/1186462578310910112/1429489660366946414) [[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.
r
@AI Evy Any idea what components are?
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer ### Answer Components are reusable sub-flows that help keep your agents maintainable and consistent [(1) ]() . A Component is essentially a mini flow (a group of nodes) that you can reuse across different agents and flows . Key benefits of Components: - **Reuse**: Build once and drop into many agents and flows - **Consistency**: Keep behavior uniform across use cases (e.g., identity check) - **Clean canvas**: Hide detailed logic inside a focused sub-flow - **Faster iteration**: Update a shared Component to improve every agent that uses it Two types of Components: 1. **Library Components**: Account-level, shared across agents . Edits sync to every agent that uses it 2. **Agent Components**: Local to the current agent . Edits affect only that specific agent You can find Components in your agent's builder under the left sidebar → Components tab . When you create a Component, you start with a "Begin" node, a basic conversation node, and an "Exit Component" end node . You add nodes and connect edges to form your sub-flow, then link it back to your main agent flow . Components can include function nodes and use your configured tools, just like in the main flow . The tools need to be defined within the component and won't be visible outside at the agent level .
​ To learn more, see the sources I considered: [[1] Components](https://docs.retellai.com/build/conversation-flow/components) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.