https://retellai.com/?utm_source=discord&utm_medium=seo logo
How come my custom function got invoked automatica...
# ❓・ai-evy-support
r
@AI EvyHow come my custom function got invoked automatically?
a
Thanks for tagging me @renovia_70920. I'll look through relevant sources and get back to you shortly.
### Answer Custom functions in Retell AI are invoked by the LLM when it determines they're needed based on your function description and prompt instructions [(1) ]() [(2) ]() . The LLM intelligently chooses to call functions when it determines the context requires it [(3) ]() . Here are the main reasons your custom function might be getting invoked automatically: 1. **Function Description**: The description you provided for your custom function tells the LLM when to use it [(1) ]() [(2) ]() . If the description is too broad or matches common conversation patterns, the LLM may call it more frequently than expected. 2. **Prompt Instructions**: Your agent's prompt should explicitly specify when to invoke the custom function [(1) ]() . For example:
Copy code
When user provided the city name, please get the weather for that city by calling the `get_weather` function.
3. **LLM Decision Making**: The LLM uses function calling (also known as tool use) to intelligently choose when to output a JSON object containing arguments to call functions [(3) ]() . This decision is based on the conversation context and your function's description. To control when your function gets called: - Make your function description more specific about the exact conditions when it should be invoked [(1) ]() [(2) ]() - Update your prompt to be more explicit about when the function should be called [(1) ]() - Ensure the function name and description clearly indicate its purpose [(1) ]() [(2) ]() The key is being very specific in both your function description and prompt about the exact circumstances when the function should be invoked.
​ To learn more, see the sources I considered: [[1] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[3] Integrate Function Calling](https://docs.retellai.com/integrate-llm/integrate-function-calling) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
When would i need conversation or multistate agent?
@When would i need conversation or multistate agent?
@AI Evy When would i need conversation or multistate agent?
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer You should use Conversation Flow (multi-state) agents when you need fine-grained control over complex conversation scenarios [(1) ]() . Here's when each approach is most appropriate: ## Use Conversation Flow When: **Complex multi-step processes**: Conversation flow agents allow you to create multiple nodes to handle different scenarios in the conversation, providing more fine-grained control compared to single/multi prompt agents . **Handling complex tasks**: For scenarios involving scheduling, onboarding, or troubleshooting that require multiple steps and context retention [(2) ]() . **Structured workflows**: When you need to break down conversations into distinct steps with clear transition logic [(3) ]() . For example, the "Lead Qualification" template demonstrates breaking the conversation into two steps: Lead Qualification (gather and verify information) and Appointment Scheduling (book only after successful qualification) . **Preventing common issues**: The structured approach prevents problems found in single-prompt agents, such as premature appointment booking before completing the qualification process . ## Use Single/Multi Prompt When: **Simple use cases**: The single prompt approach is straightforward and great for simple scenarios . **Starting point**: Single prompt is an excellent starting point, though you may encounter challenges as your agent becomes more complex . ## Key Benefits of Conversation Flow: - **Stability**: Performance is more stable and predictable [(1) ]() - **Maintainability**: Much easier to maintain after initial setup - **Precision**: Provides the most precise definit
ion of the interaction [(4) ]() - **Coverage**: Better for covering all scenarios in complex workflows [(1) ]() For complex tasks involving multiple tools or complicated prompt logic, conversation flow is recommended because it's easier for the LLM to make correct decisions when broken down into multiple nodes [(5) ]() .
​ To learn more, see the sources I considered: [[1] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[2] Multi-Turn Conversation](https://www.retellai.com/glossary/multi-turn-conversation) [[3] Prompt Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) [[4] Discord message from @daveee797 on 2025-04-22](https://discord.com/channels/1186424376300679209/1294891368505937952/1364297754393706527) [[5] General prompt engineering guide](https://docs.retellai.com/build/prompt-engineering-guide) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy What about multi prompt?
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer Based on the available sources, here's when you should use multi-prompt agents in Retell AI: ## Multi-Prompt Agent Use Cases: **Complex conversations with multiple topics**: The multi-prompt method combines several single prompt agents into a structured tree of fine-tuned prompts [(1) ]() . Each node can contain its own specific prompt and transition logic to other nodes . **When single prompts become insufficient**: Multi-prompt systems are particularly beneficial when handling multiple topics or tasks within a single session . As complexity increases with single prompts, you may encounter hallucinations or deviations from instructions . **Breaking conversations into steps**: You can break down the conversation into steps where each step has its own defined prompt [(2) ]() . For example:
Copy code
7. Ask if user is interested in an in person tour.
 - if yes, transition to schedule_tour.
 - if no or hesitant, call function end_call to hang up politely and say will reach out if any other interesting properties pop up.
**Defining state transition logic**: Multi-prompt allows you to define when to transition to the next step, like transitioning to
your_next_state
when users say "yes" to a question . **Function calling with context**: You can define when to call functions within specific states, such as calling the
book_appointment
function after confirmation :
Copy code
3. Confirm the date, time, and timezone selected by user: "Just to confirm, you want to book the appointment at ...". Make sure this is a time from the available slots.
4. Once confirmed, call function book_appointment to book the appointment.
## Trade-offs: While multi-prompt offers greater flexibility than single prompt, it demands considerable work in prompt engineering to manage the various nodes effectively [(1) ]() . However, it allows for more complex conversations while maintaining context throughout the flow .
​ To learn more, see the sources I considered: [[1] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[2] Build a multi-prompt agent](https://docs.retellai.com/build/single-multi-prompt/write-multi-prompt) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy When would i need to use multi prompt agent or conversational flow? What's the difference pros/cons
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer Based on the available sources, here's a comprehensive comparison of when to use multi-prompt agents versus conversation flow agents: ## Multi-Prompt Agents **Best for**: The multi-prompt method combines several single prompt agents into a structured tree of fine-tuned prompts [(1) ]() . Each node can contain its own specific prompt and transition logic to other nodes . **Use cases**: - When handling multiple topics or tasks within a single session - When single prompts become insufficient due to complexity - Breaking conversations into manageable steps with defined prompts **Pros**: - Offers greater flexibility than single prompt approach - Allows for more complex conversations while maintaining context throughout the flow - Each step can have its own defined prompt with clear transition logic **Cons**: - Demands considerable work in prompt engineering to manage the various nodes effectively - Can experience issues with state transitions not always working reliably [(2) ]() ## Conversation Flow Agents **Best for**: Conversation flow agent allows you to create multiple nodes to handle different scenarios in the conversation [(3) ]() . It provides more fine-grained control over the conversation flow compared to single/multi prompt agent, which unlocks the ability to handle more complex scenarios . **Use cases**: - Multi-step, logic-driven interactions with branching paths and decision trees [(4) ]() - When you need the most control over dialogue paths [(1) ](
-flow) - Complex scenarios requiring structured conversation management [(3) ]() **Pros**: - Provides the most control over dialogue paths [(1) ]() - More stable and predictable performance [(3) ]() - Much easier to maintain after initial setup - Minimizes the need for extensive prompt engineering [(1) ]() - Enables developers to design dynamic interactions without rigid scripts - Significantly mitigates hallucination problems by offering predefined pathways for interactions **Cons**: - Might take longer to set up as you want to cover all the scenarios [(3) ]() - More complex initial configuration compared to multi-prompt ## Key Differences **Development History**: Conversation flows were added more recently as a more advanced version of multiprompt agents [(5) ]() . Multi-prompt was one of the first features allowing users to divide call scripts into multiple steps rather than having one prompt . **Pricing**: Since the choice of model can be overridden within individual nodes in conversation flow, the pricing for each call is calculated based on how many seconds spent within each node multiplied by the model price per second for that node, and aggregated across all nodes [(3) ]() . **Recommendation**: Choose conversational flow when high controllability over interactions is required, ensuring that users receive accurate and relevant information throughout their engagement [(1) ]
() . The constrained framework of conversation flow significantly reduces the likelihood of errors and ensures that interactions remain relevant and trustworthy .
​ To learn more, see the sources I considered: [[1] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[2] Multi prompt agent not always transitioning to the next state](https://discord.com/channels/1186424376300679209/1303504848196472893) [[3] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[4] Inside Retell AI | The Conversational AI Platform Behind Scalable AI Phone Systems | Retell AI](https://www.retellai.com/blog/inside-retell-ai-conversational-ai-phone-system) [[5] Difference between multi prompt vs conversation flow?](https://discord.com/channels/1186424376300679209/1358891999746326608) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@Whats the point of multi prompt agents when conversational agents exists?
@AI Evy Whats the point of multi prompt agents when conversational agents exists?
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer Good question! While conversation flow agents are more advanced, multi-prompt agents still have their place in Retell AI's ecosystem. Here's why both exist: ## Multi-Prompt Agents Still Have Value **Simpler complexity**: Multi-prompt agents offer a middle ground between single prompt and conversation flow agents [(1) ]() . They're less complex to set up than conversation flow while still providing structured interactions. **Existing implementations**: Many users have already built successful multi-prompt agents and may not need to migrate to conversation flow if their current solution works well. **Learning curve**: Multi-prompt agents can serve as a stepping stone for users transitioning from single prompt to more complex conversation management . ## Key Differences in Practice **Setup complexity**: Conversation flow agents might take longer to set up as you want to cover all the scenarios, but after that they're much easier to maintain and the performance is more stable and predictable [(2) ]() . **Prompt engineering requirements**: Multi-prompt demands considerable work in prompt engineering to manage the various nodes effectively [(1) ]() , while conversation flow minimizes the need for extensive prompt engineering . **Reliability**: Multi-prompt agents can experience issues with state transitions not always working reliably [(3) ]() , whereas conversation flow provides more predictable performance [(2) ]() . ## When Multi-Prompt Still Makes Sense **Specific use cases**: S
ome users find multi-prompt agents work better for certain scenarios, like appointment booking, compared to single prompt agents [(4) ]() . **Gradual migration**: Teams can use multi-prompt as an intermediate step before moving to conversation flow when they need even more control. **Resource constraints**: If you have limited time for initial setup and your use case isn't extremely complex, multi-prompt might be sufficient. The reality is that conversation flow represents the evolution of multi-prompt technology, but multi-prompt agents remain a viable option for users who don't need the full complexity and control that conversation flow provides.
​ To learn more, see the sources I considered: [[1] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[2] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[3] Multi prompt agent not always transitioning to the next state](https://discord.com/channels/1186424376300679209/1303504848196472893) [[4] Discord message from @hilton_13015 on 2025-07-03](https://discord.com/channels/1186424376300679209/1294891368505937952/1390142253061636116) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy What is the best way to prompt the individual nodes in a conversational agent. Here is an example for one of my nodes: “Great, {{callerName}}. Let's schedule your panel care. Do you prefer Advanced Care at $6 per panel for a basic check, or Premium Care at $12 per panel for a comprehensive report? (If relevant, add: I know prices rose in February—if this is a surprise, I apologize.) How many panels do you have?” Quote total price based on response (e.g., “For 20 panels, Premium Care would be $240 total.”). Check availability and suggest: “The next slot is [date/time from tool]. Does that work for you? You don’t need to be home as long as we have access.” Confirm booking verbally before ending. Empathize if frustrated: “I understand, {{callerName}}—let’s get this sorted together.” If additional details needed, ask one question at a time.
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer Based on the available sources, here are the best practices for prompting individual nodes in conversation flow agents: ## Node Instruction Types For conversation nodes, you can choose between two instruction approaches [(1) ]() : - **Prompt**: Write a prompt for the agent to dynamically generate what to say - **Static Sentence**: Agent will say a fixed sentence first, and if later still inside this node, it will generate content dynamically based on the static sentence set ## Sectional Prompting Best Practices When writing prompts for nodes, use sectional prompts to break information into focused sections [(2) ]() :
Copy code
///## Identity
You are a friendly AI assistant for Retell AI. ....
///## Style Guardrails
Be concise: ...
Be conversational: ...
...
///## Response Guideline
Return dates in their spoken forms: ...
Ask up to one question at a time: ...
...
///## Rebuttals
...
This approach has several benefits: it's reusable, easier to maintain, and easier for the LLM to understand . ## Analyzing Your Example Node Your current node prompt has good elements but could be improved using Retell AI's best practices: **Strengths**: - Uses dynamic variables (
{{callerName}}
) - Includes specific pricing information - Has clear next steps **Areas for improvement based on documentation**: - Consider breaking into sectional format - Ensure you're asking only one question at a time (your prompt asks multiple questions simultaneously) - Make instructions more concise and focused ## Troubleshooting Node Performance If your node isn't performing as expected, the documentation suggests several solutions [(3) ]() : **Split complex nodes**: If a node contains instructions to collect multiple pieces of information, the agent might inconsistently ask for only some of this information . Consider splitting into separate nodes for each major task. Adjust node-specific settings [(1) ]() : - Change the LLM model for specific nodes if needed - Add conversation finetune examples for specific response styles - Adjust LLM temperature for consistency **Use Global vs Node-Specific Prompts**: Use the global prompt for your agent's overall personality, tone, and universal rules, while using conversation flow nodes for step-by-step logic, questions, and transitions [(4) ]() . ## Recommended Structure Based on the documentation, consider restructuring your node prompt using sectional formatting and focusing on one primary action per node for better reliability and maintainability.
​ To learn more, see the sources I considered: [[1] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) [[2] General prompt engineering guide](https://docs.retellai.com/build/prompt-engineering-guide) [[3] Debug guide](https://docs.retellai.com/build/conversation-flow/debug-guide) [[4] CONVERSATION FLOW AGENT - GLOBAL PROMPT](https://discord.com/channels/1186424376300679209/1371534043157500025) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy Reminder Message Frequency Control how often AI will send a reminder message. 10 seconds 1 what is this?
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer The Reminder Message Frequency setting controls how often your AI agent will send reminder messages when users remain silent during a call [(1) ]() . Based on your settings (10 seconds, 1 time) , your agent will wait 10 seconds of user silence before sending one reminder message . This is configured in the Speech Settings section of your agent's global configuration . ## How It Works The reminder frequency setting determines how responsive the agent is to user inactivity . You can adjust both the time interval (in seconds) and the number of reminders . ## Common Issues Some users have reported inconsistency with this setting [(2) ]() [(3) ]() . For example, one user set it to 7 seconds with 2 reminders but found the agent only sent the first reminder [(2) ]() . Another user experienced the setting working correctly initially but then reverting to approximately 5-second intervals for subsequent reminders [(3) ]() . ## Troubleshooting Tips If you're experiencing issues where subsequent reminders don't follow your configured timing, you can try setting the frequency to your desired interval with multiple times (e.g., 45 seconds/5 times) to ensure even subsequent reminders maintain the same timing . You can find this setting by going to speech settings and looking for "reminder message frequency" [(4) ]() .
​ To learn more, see the sources I considered: [[1] Step 1: Configure global settings](https://docs.retellai.com/build/conversation-flow/global-setting) [[2] "Reminder Message Frequency"](https://discord.com/channels/1186424376300679209/1313114042449006653) [[3] Reminder Message Frequency Inconsistency](https://discord.com/channels/1186424376300679209/1293175089818501140) [[4] Discord message from @mike_56558 on 2025-03-14](https://discord.com/channels/1186424376300679209/1294891368505937952/1350195361569964162) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
Is it wise to remove the meta data in the documents when upload to knowledge base such as Metadata Source: https://renovaenergy.com/how-often-do-i-have-to-clean-my-solar-panels Tags: cleaning_frequency, professional_cleaning, panel_maintenance, filtered_water, performance_indicators Date: Unknown Category: FAQ Relevance: Provides specific cleaning guidance when customers ask about panel maintenance requirements
@AI Evy Is it wise to remove the meta data in the documents when upload to knowledge base such as Metadata Source: https://renovaenergy.com/how-often-do-i-have-to-clean-my-solar-panels Tags: cleaning_frequency, professional_cleaning, panel_maintenance, filtered_water, performance_indicators Date: Unknown Category: FAQ Relevance: Provides specific cleaning guidance when customers ask about panel maintenance requirements
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer Based on the available sources, here are best practices for preparing knowledge base content: ## Best Practices for Knowledge Base Content The documentation recommends using markdown format for sources with clear paragraphs, as it will be easier to chunk and is easier to be retrieved [(1) ]() . This suggests that clean, well-structured content performs better than content with excessive metadata. ## Specific Recommendations **Avoid ambiguity and use specificity in references**: When the chunk is retrieved, it's best to contain specific references like name, dates, and less ambiguous terms like
it
or
this
. Because without the prior chunk, it's hard to understand ambiguous terms. **Group relevant information together in one chunk**: This will improve the retrieval accuracy . ## Regarding Your Metadata Example The metadata you showed (Source, Tags, Date, Category, Relevance) could potentially interfere with retrieval effectiveness because: 1. **Chunking optimization**: The knowledge base system chunks the source, embeds them and stores into a vector database . Clean content without metadata headers will chunk more naturally. 2. **Retrieval focus**: During the call, when the agent is about to respond, it will use the transcript so far to find the most relevant chunks from the knowledge base . Metadata headers might dilute the relevance matching. ## Recommendation It would be wise to remove or minimize that metadata when uploading to the knowledge base. Instead, focus on clean, well-structured content that directly answers questions about your solar panel cleaning services. The knowledge base retrieval works best when the content is in clear markdown format with specific, unambiguous information.
​ To learn more, see the sources I considered: [[1] Knowledge Base](https://docs.retellai.com/build/knowledge-base) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
How to use agent transfer
@AI Evy how to get agent transfer seamlessy without repeating the greeting message
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer ### Answer To get seamless agent transfer without repeating greeting messages, you have two main options in Retell AI: ## Agent Transfer (Recommended for Seamless Handoffs) Agent Transfer offers significant advantages over traditional call transfer for seamless handoffs [(1) ]() [(2) ]() : - **No Handoff Message Needed**: The destination agent has access to the full conversation history, eliminating the need for adding hand-off messages or repeated customer questions - **Lower Latency**: The transition between agents is near-instant, much lower than transfer call - **Better Reliability**: No need to create a new phone call, avoiding potential telephony failures ## Setting Up Agent Transfer ### For Single/Multi Prompt Agents: 1. Add Agent Transfer Tool: Click Add in the tools section and select "Agent Transfer" from the dropdown menu [(1) ]() 2. Configure the transfer agent ID and version 3. Update your prompt to enable agent transfer with clear instructions like:
"If the user asks to book an appointment, use the agent_transfer tool to transfer to the Appointment Agent."
### For Conversation Flow Agents: 1. Select "Agent Transfer" from the 'Add New Node' menu [(2) ]() 2. Configure the transfer agent ID and version ## Addressing the Default "Hello" Issue Based on Discord discussions, there's a known issue where agents say a default "Hello" message after warm transfers [(3) ]() . You can resolve this by customizing the
transferPlan
config : - Set a custom
message
(or leave it blank) in `warm-transfe
r-with-message` - Use
warm-transfer-with-summary
instead - Removing the default
begin_message
will prevent the auto "Hello" ## Transfer Settings Behavior When using Agent Transfer, the following settings from the first agent carry through the entire call [(1) ]() [(2) ]() : - optInSignedUrl - optOutSensitiveDataStorage - webHookUrl All other settings (language, voice, voiceModel) will reflect the currently active agent . This approach ensures seamless handoffs without greeting repetition since the destination agent has full conversation context and doesn't need to reintroduce itself.
​ To learn more, see the sources I considered: [[1] Agent Transfer](https://docs.retellai.com/build/single-multi-prompt/transfer-agent) [[2] Agent Transfer Node](https://docs.retellai.com/build/conversation-flow/transfer-agent-node) [[3] warm_transfer default Message: "Hello"](https://discord.com/channels/1186424376300679209/1395477094057644142) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy can one node handle 1 worflow?
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer Yes, a single node can handle a complete workflow, but it's not always recommended. Here's what the documentation says: ## Single Node Capability A conversation node can have a multi-turn conversation inside a single node, so you don't necessarily need to create a new conversation node for every sentence the agent needs to say [(1) ]() . This means one node can technically handle an entire workflow. ## When to Split Nodes However, it's recommended to split nodes when there's logic split, or the instruction gets too long . The documentation provides specific guidance on when to break down nodes: Split nodes when [(2) ]() : - A node contains instructions to collect multiple pieces of information (like customer name, phone number, and address) and the agent inconsistently asks for only some of this information - The node is doing logic handling and not performing well (the LLM hallucinates) - Instructions become too complex for reliable execution ## Best Practices **Node organization**: It's recommended to split nodes when there's a logic split rather than trying to handle everything in one node [(1) ]() . This approach provides: - Better performance stability [(3) ]() - Easier maintenance - More predictable results **Complex workflows**: For complex scenarios, conversation flow provides more fine-grained control over the conversation flow compared to single/multi prompt agents, which unlocks the ability to handle more complex scenarios . ## Troubleshooting Single Complex Nodes If you're experiencing issues with a complex single node, the debug guide suggests [(2) ](
com/build/conversation-flow/debug-guide) : - Split the node into multiple nodes for better consistency - Change the node model to a more capable LLM - Add conversation finetune examples - Adjust the LLM temperature While one node can handle a workflow, breaking it into logical steps typically yields better, more reliable results.
​ To learn more, see the sources I considered: [[1] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) [[2] Debug guide](https://docs.retellai.com/build/conversation-flow/debug-guide) [[3] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy Here are my nodes for this specific topic, Cleaning: node 1: Clearly explain your role You can provide service details, answer questions, and gather all necessary information to prepare for their appointment. State that the final step will be to connect them with a human service coordinator who can access the schedule and finalize the booking. Conclude by asking how does that sound node 2: Using the Knowledge Base, explain the "Advanced" and "Premium" service packages and their respective per-panel costs ($6 and $12). Politely ask for the customer's panel count to create an estimate. If the customer is unsure of the panel count. Reassure them that it's a common question and you're happy to help. Based on their choice of service and the panel count, state the estimated cost for the visit. Store their selections in the {{service_type}} and {{panel_count}} variables. node 3: Introduce this phase as gathering a few details to "help our technicians come fully prepared." Ask about the following points in a natural, conversational manner: installer, property type (stories), roof description, and access notes. Crucial: For each piece of information, especially the roof type, frame the question gently (e.g., "Do you happen to know..." or "Can you describe..."). When asking about the roof, encourage a simple description (like "shingles" or "tiles") rather than a technical term. If the user expresses uncertainty about any point, immediately reassure them that it's "not a problem at all" and that the technicians can assess it on-site. For any unknown data, populate the corresponding variable with "Customer Unsure." node 4: Politely summarize only the key information that the customer was able to provide. Do not mention any details they were unsure of. Confirm you have everything needed to proceed. Clearly state that you are now connecting them to a service coordinator who will have all these notes and can finalize the appointment time.
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer Your conversation flow structure looks well-designed and follows good practices for conversation flow agents. Here's my analysis based on Retell AI's documentation: ## Strengths of Your Node Structure **Logical progression**: Your nodes follow a clear sequential flow that aligns with how conversation flow agents are designed to work [(1) ]() . Each node has a specific purpose and builds toward the final handoff. **Appropriate node separation**: You've correctly split the workflow into logical segments rather than trying to handle everything in one node, which is recommended for better performance and maintainability . **Dynamic variables usage**: Your use of
{{service_type}}
and
{{panel_count}}
variables follows conversation flow best practices for maintaining context across nodes [(2) ]() . ## Potential Improvements **Node 2 complexity**: This node handles multiple tasks (explaining services, getting panel count, calculating estimates, and storing variables) . Based on the documentation, if a node contains instructions to collect multiple pieces of information, the agent might inconsistently ask for only some of this information [(1) ]() . Consider splitting this into: - Node 2A: Explain service packages - Node 2B: Get panel count and calculate estimate **Node 3 information gathering**: This node asks for multiple pieces of information (installer, property type, roof description, access notes) . The documentation suggests splitting complex nodes that collect multiple data points for better consistency . ## Technical Considerations **Knowledge Base integration**: Your Node 2 references using the Knowledge Base, which works well with conversation flow agents [(2
) ]() . Make sure your knowledge base content is in clean markdown format for optimal retrieval [(3) ]() . **Variable storage**: The conversation flow supports
default_dynamic_variables
which can be referenced throughout the flow [(2) ]() . Your approach of storing selections in variables is correct. **Edge transitions**: Make sure you have clear transition conditions between each node to ensure smooth flow progression [(1) ]() . Your overall structure is solid and follows conversation flow best practices. The main suggestion would be to consider splitting Node 2 and possibly Node 3 into smaller, more focused nodes for better reliability and performance.
​ To learn more, see the sources I considered: [[1] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) [[2] Create Conversation Flow](https://docs.retellai.com/api-references/create-conversation-flow) [[3] Step 1: Configure global settings](https://docs.retellai.com/build/conversation-flow/global-setting) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy How to make the agent properly say addresses
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer Based on the available sources, here are the key settings to help your agent properly pronounce addresses: ## Speech Normalization Enable Speech Normalization in your agent's global settings [(1) ]() . This feature converts entities like numbers, dates, and currency into plain words, which helps prevent issues where audio generation wasn't pronouncing those correctly . ## Pronunciation Guide You can set up pronunciation guides for specific words that might be challenging . This allows you to control how certain words, names, or phrases are pronounced [(2) ]() . For example, you can specify phonetic pronunciations for street names, city names, or other address components that the agent struggles with. ## Voice Model Selection Consider your voice model choice, as different models handle pronunciation differently [(1) ]() : - **Turbo v2.5**: Fast multilingual model [(2) ]() - **Turbo v2**: Fast English-only model with pronunciation tag support - **Multilingual v2**: Rich emotional expression with a nice accent The Turbo v2 model specifically supports pronunciation tags, which could be beneficial for address pronunciation . ## Voice Temperature Settings According to Discord discussions, voice temperature controls how stable the voice is [(3) ]() . Lower values mean more stable pronunciation, while higher values create more variant speech generation . For consistent address pronunciation, you might want to keep voice temperature on the lower side. ## Troubleshooting Speech Issues If you're experiencing issues with number transcription (which often affects addre
sses) , try disabling transcript formatting [(2) ]() . This can help resolve ASR errors where phone numbers were being misinterpreted as timestamps and double numbers weren't being accurately captured . The combination of speech normalization and pronunciation guides should significantly improve how your agent handles addresses.
​ To learn more, see the sources I considered: [[1] Step 1: Configure global settings](https://docs.retellai.com/build/conversation-flow/global-setting) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[3] Discord message from @.zacharythomas on 2025-01-27](https://discord.com/channels/1186424376300679209/1186462578310910112/1333472363236556801) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy what is the best way to authenticate caller's identity
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer For authenticating caller identity in Retell AI, you have several approaches based on the available sources: ## Voice Biometrics (Enterprise-Grade Solution) Voice Biometrics offers the most seamless authentication method by using a person's unique vocal characteristics like pitch, tone, cadence, and pronunciation patterns as a biometric identifier [(1) ]() . This approach provides: Faster authentication, reducing call time and friction Enhanced fraud prevention, as voices are harder to spoof than passwords Improved user experience, especially for returning or high-value customers Regulatory compliance, especially in finance, insurance, and healthcare industries Voice biometrics can work in three ways : - **Text-Dependent Biometrics**: Requires the caller to speak a specific phrase (e.g., "My voice is my password") - **Text-Independent Biometrics**: Authenticates callers using their natural speech, during any part of the conversation - **Passive Voice Authentication**: Voice is verified in the background during the conversation, without interrupting the flow ## IVR-Based Authentication You can implement over-the-phone authentication using an IVR system [(2) ]() . The easiest approach is to go straight through Twilio . Native IVR support is underway in Retell, but at the moment you can leverage custom Twilio or use some prompt engineering . ## Phone Number + Custom Logic You can use a combination of the phone number of the user plus custom LLM to implement your authentication logic . This approach leverages the caller's phone number as an initial identifier. ## Prompt + Tool Call Authentication You can use a combination of prompt plus tool call to verify the user ID and pull in information via the function c
all (like a user auth API) . This allows you to integrate with your existing authentication systems. ## Dynamic Variables for User Context For user differentiation, you can set user information in register-call metadata, and then when you retrieve the call with call ID, you can get that information [(3) ]() . You can pass authentication tokens into the "retell_llm_dynamic_variables" parameter [(4) ]() [(5) ]() [(6) ]() . ## Wrapper API Approach For complex authentication flows, you can create a wrapper API/webhook in the middle that would first do the verification, then post login, generate a token, and then make a POST request with the generated token to your API [(4) ]() [(6) ]() . The best approach depends on your security requirements, with voice biometrics offering the most seamless user experience for enterprise applications, while IVR and prompt-based methods provide more traditional but reliable authentication options.
​ To learn more, see the sources I considered: [[1] Voice Biometrics](https://www.retellai.com/glossary/voice-biometrics) [[2] User Authentication](https://discord.com/channels/1186424376300679209/1259639863683055627) [[3] User Authentication/Differentiation](https://discord.com/channels/1186424376300679209/1224437362763894824) [[4] Discord message from @medivoice_63089 on 2025-02-05](https://discord.com/channels/1186424376300679209/1294891368505937952/1336750733042909245) [[5] Discord message from @jakeslaps on 2025-02-05](https://discord.com/channels/1186424376300679209/1294891368505937952/1336700095818760304) [[6] Discord message from @vexalink_team on 2025-02-05](https://discord.com/channels/1186424376300679209/1294891368505937952/1336682175852187648) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
@AI Evy {{firstName}} contains {{ - transitions to greeting without name Otherwise - transitions to greeting with name Option 3: Simple conditional in prompt {{firstName}} is not set (have curly braces around it) ? "You've reached RenovaPLUS" : "Greet caller by name {{firstName}} You've reached RenovaPLUS" The key insight from the documentation is that unset dynamic variables remain as {{variableName}} rather than being replaced with empty strings, so you can check for the presence of curly braces to determine if the variable was actually provided. Ok let's keep it simple the only thing that changes is if the caller's first name is known then we say hi {{firstName}} otherwise we just greet with Hi there Searched conditional greeting if firstName known Hi there dynamic variables Based on the search results, I can see information about dynamic variables and how they work. Here's the simple solution for your conditional greeting: You can use an equation condition to check if firstName is known. When a dynamic variable is not set, it remains as {{firstName}} (with curly braces). Simple approach: {{firstName}} contains {{ ? "Hi there" : "Hi {{firstName}}" Or in your greeting structure: {{firstName}} contains {{ ? "Hi there You've reached RenovaPLUS..." : "Hi {{firstName}} You've reached RenovaPLUS..." The key insight from the Dynamic Variables documentation is that unset variables keep their {{variableName}} format rather than becoming empty strings. So you can check if {{firstName}} contains {{ to determine if the variable was actually provided. This gives you exactly what you want: "Hi John" when firstName is known, or "Hi there" when it's not. this works?
a
Thanks for the follow-up, @renovia_70920. I'll get back to you soon.
### Answer ### Answer Yes, your approach should work! The documentation confirms your understanding of how dynamic variables behave when unset. ## How Unset Dynamic Variables Work According to the documentation, when a dynamic variable is not assigned a value, it will remain unchanged in the output [(1) ]() . For example: - Original prompt:
"Hello {{user_name}}, how can I help you today?"
- Output when
user_name
is not set:
"Hello {{user_name}}, how can I help you today?"
This means missing variables will be visible in their raw form (
{{variable_name}}
) rather than being replaced with an empty string or causing an error . ## Checking for Unset Variables The documentation specifically addresses your use case. To check if a dynamic variable is not set : **In equations (conversation flow) **: You can use the following equation to check:
{{user_name}} contains {{
. This would evaluate to true if it's not set . **In prompts**: You can use the following prompt:
{{user_name}} is not set (have curly braces around it)
. ## Your Solution Your approach using
{{firstName}} contains {{
as a condition is exactly what the documentation recommends . This will: - Return
true
when firstName is not set (contains the curly braces) - Return
false
when firstName has a value So your conditional logic:
Copy code
{{firstName}} contains {{ ? "Hi there" : "Hi {{firstName}}"
Should work perfectly for your greeting scenario, giving you "Hi there" when no name is provided and "Hi [Name]" when the firstName variable contains an actual value.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
#❓・ai-evy-support Does this work in prompt or as a condition?