https://retellai.com/?utm_source=discord&utm_medium=seo logo
i have multiple nodes to gether customer name, add...
# ❓・ai-evy-support
a
@AI Evy i have multiple nodes to gether customer name, address, type of service required etc, how to do about senarios where when customer called during conversation some information was already shared therefor i dont have to ask known information. For example customer calls and saying Hi, my name is Alex and my dryer isn’t working.
a
Thanks for tagging me @alex_972140. I'll look through relevant sources and get back to you shortly.
### Answer [(1) ]()
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponse = await client.conversationFlow.create({
 model_choice: { model: 'gpt-4o', type: 'cascading' },
 nodes: [
 {
 id: 'start',
 instruction: { text: 'Greet the customer and ask how you can help them.', type: 'prompt' },
 type: 'conversation',
 },
 ],
 start_speaker: 'agent',
}) ;
For handling scenarios where customers provide information upfront (like "Hi, my name is Alex and my dryer isn't working") , you can leverage Conversation Flow's context persistence capabilities [(2) ]() . The system maintains conversation state throughout the entire interaction, allowing it to track conversation history and handle clarifications appropriately . Based on the Discord discussion, you don't necessarily need to define specific logic in the edges between nodes [(3) ]() . Instead, you can write conditional logic directly in your state prompts . For example, in your next state, you can include instructions like: - "If you already have the customer's name, proceed to address collection" - "If you don't have the customer's name, ask for it first" The LLM will understand what information was already provided and can access that context in subsequent states . This approach allows the conversation to flow naturally without forcing customers to repeat information they've already shared. The system's context-persistent transformer architecture is specifically designed to handle these types of scenarios, maintaining conversation context across multiple exchanges and enabling the agent to respond appropriately when customers provide information incrementally or change their requests mid-conversation [(4) ]() .
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] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[2] Dialogue Management](https://www.retellai.com/glossary/dialogue-management) [[3] LLM States](https://discord.com/channels/1186424376300679209/1302684091723812967) [[4] Inside Retell AI Receptionist's Large Language Model Intent Engine: 92% Accuracy and 50% Fewer Unnecessary Escalations](https://www.retellai.com/resources/retell-ai-receptionist-understands-calls-better) ​