https://retellai.com/?utm_source=discord&utm_medium=seo logo
I have a function node that pulls appointment slot...
# ❓・ai-evy-support
b
@AI Evy I have a function node that pulls appointment slots, and then right after I have a conversation node that says "Based on the slots available in {{appointments}}, help them book a slot by giving them the soonest day available and make sure you're also saying the date and offer only one appointment at a time until they've decided on one slot". It's pretty quick at going from the function node because I added "speak during execution" to make it sound more natural and avoid any long pauses. But after it gives the first slot available ("November 4th" for example) in the conversation node, and I reply "no, do you have anything on november 12th?" it just goes silent for 3 seconds before responding. I'm assuming this is because it is performing some function to check if it's available, but this long pause is an issue, and considering it is all happening inside this one conversation node, I don't see how I could add any affirming statements or confirming statements before actually checking if the time the user gave is right. So it just ends up staying silent for 3 seconds, and then suddenly it says "sure thing, let me check if we have anything available on november 12th". Do you have any suggestions for a solution to this long pause?
a
Thanks for tagging me @byredyre. I'll look through relevant sources and get back to you shortly.
### Answer The issue you're experiencing with the 3-second silence is likely because the LLM is processing the user's request within the conversation node before responding. Based on the available sources, here's a solution: Restructure your flow to separate the checking logic: Instead of handling everything in one conversation node, split your flow into multiple nodes: 1. Initial Conversation Node - Presents the first available slot 2. Function Node - Checks availability when user requests a different date 3. Follow-up Conversation Node - Confirms the availability The key is using the "Speak During Execution" feature on your function node [(1) ]() . When enabled, this allows the agent to say something like "Let me check if we have anything available on November 12th" while the function executes, eliminating the awkward silence [(1) ]() [(2) ]() . How to implement: In your function node settings, enable "Speak During Execution" and provide instructions (either as a Prompt or Static Sentence) for what the agent should say while checking availability . For example: - **Prompt format**: "Tell the user you're checking availability for their requested date" - **Static Sentence format**: "Let me check that date for you" The function node will transition once the function result is ready (if "Wait for Result" is enabled) and the agent finishes speaking [(1) ]() . This approach ensures the agent acknowledges the user's request immediately with natural speech while the availability check happens in the background, avoiding the silence issue you're experiencing.
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[2] Getting Error message when trying to add Speak during execution option to function node](https://discord.com/channels/1186424376300679209/1381632002247233596) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy so if you're suggesting adding another function node after the conversation node if somebody don't want the first given time, then how is it currently working the way I have it set up where the function node is before the conversation node. Can the conversation node itself trigger a function? Because we only ever have 1 function node that pulls location, but in that next conversation node I can ask it 10 times in a row for different appointment slots and it'll spend 3-4 seconds between every answer, seemingly running a function/GET each time
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer Based on the available sources, Conversation Nodes cannot directly trigger functions [(1) ]() . When inside a conversation node, the agent will not call any functions or perform any actions . The 3-4 second pauses you're experiencing when asking for different appointment slots within the conversation node suggest the LLM is processing your dynamic variable
{{appointments}}
and reasoning about the data, but it's not actually making new function calls. What's likely happening: Your initial function node loads all available appointment slots into the
{{appointments}}
variable, and then the conversation node references this data. When you ask about different dates, the LLM is searching through the existing data in
{{appointments}}
to find matching slots - this processing causes the delays, but no new API calls are being made. The solution: To handle iterative availability checks with natural responses, you need to structure your flow with multiple nodes [(2) ]() [(3) ]() : 1. Function Node → pulls initial slots 2. Conversation Node → presents first available option 3. Logic or transition → when user requests different date 4. Another Function Node → checks specific date availability (with "Speak During Execution" enabled) 5. Follow-up Conversation Node → confirms result This approach ensures each new date request triggers an actual function call with immediate verbal acknowledgment, eliminating the silent processing delays. Since conversation nodes are designed for dialogue and cannot call functions [(1) ]() , you'll need to use function nodes for each availability check
to maintain a natural conversation flow without awkward pauses.
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] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) [[2] Node Overview](https://docs.retellai.com/build/conversation-flow/node) [[3] Conversation Flow Overview](https://docs.retellai.com/build/conversation-flow/overview) ​
b
@AI Evy I tried following your steps by adding a function node after the logic or transition, but it still spends 3 seconds inside the conversation node itself before actually moving to the next function node, so we're stuck with exactly the same time delay, but now with a more cluttered workflow layout
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer ### Answer The 3-second delay you're experiencing is occurring because the conversation node needs to process the user's request and determine when to transition to the next node. This processing happens before the transition occurs, which is why you're seeing the delay even with the new function node in place [(1) ]() . The key issue: When the conversation node determines it needs to transition based on the user asking for a different date, there's inherent processing time before that transition happens. The "Speak During Execution" feature only works within a function node, not during the transition between nodes . Potential solutions to explore: 1. Check your transition conditions - If your transition logic from the conversation node to the function node is complex or condition-based, simplifying it might reduce processing time . 2. Consider using "Block Interruptions" - While this won't eliminate the delay, enabling "Block Interruptions" in your conversation node might help manage the flow more predictably [(2) ]() . 3. Review your conversation node prompt - The delay might be partially due to the LLM trying to process the
{{appointments}}
data within the conversation node itself before deciding to transition. Simplifying the instructions in that node could help [(1) ]() . Unfortunately, based on the available documentation, there isn't a direct way to add "Speak During Execution" behavior to a conversation node or to eliminate transition processing time between nodes . If these adjustments don't resolve the issue, I'd recommend: - Visit [Contact Sales]() - Visit [
tps://github.com/RetellAI/) This appears to be a timing limitation in how conversation flow transitions work that may require platform-level optimization.
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[2] Issue with Node Execution Order: Conversation Node Text Outputs After Function Node](https://discord.com/channels/1186424376300679209/1357603250500669480) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy what about using a different LLM just for that specific node? If so, which is the absolute quickest LLM? Least time delay
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer Yes, you can configure a different LLM for specific nodes [(1) ]() [(2) ]() . Both conversation nodes and function nodes have an LLM setting that allows you to choose a different model for that particular node . For the conversation node, the selected LLM will be used for response generation [(1) ]() . For the function node, it will be used for function argument generation and potentially speak during execution message generation [(2) ]() . For the fastest LLM with least time delay: The Retell LLM is specifically designed for low-latency voice interactions and typically achieves sub-800ms end-to-end latency. It's Retell AI's proprietary model fine-tuned for voice interactions, concise replies, and reliable function calls. Additionally, you can enable Fast Tier for any LLM you choose [(3) ]() . Fast Tier routes your LLM calls through dedicated, high-priority infrastructure, providing : - Consistent latency with predictable response times for every call - 50% reduction in latency variance - 25% improvement in average response time Fast Tier costs 1.5x the standard rate for your selected model . Recommendation: Try using Retell LLM with Fast Tier enabled on your conversation node to minimize the processing delay you're experiencing.
​ To learn more, see the sources I considered: [[1] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) [[2] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[3] Configure LLM Options](https://docs.retellai.com/build/llm-options) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy What do you mean by Retell LLM? I am only seeing GPT, Claude, and Gemini LLMs available in the drop down
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer I apologize for the confusion. Looking at the available sources, I can clarify what "Retell LLM" refers to in the API context versus what you see in the dashboard dropdown. In the API documentation, "Retell LLM" refers to the Retell LLM Response Engine - which is a configuration object that specifies which underlying model to use [(1) ]() [(2) ]() . When you create or configure a Retell LLM Response Engine, you select from available models like GPT, Claude, or Gemini using the
model
parameter [(1) ]() [(2) ]() [(3) ]() . The available model options include : -
gpt-5
,
gpt-5-mini
,
gpt-5-nano
-
gpt-4o
,
gpt-4o-mini
-
gpt-4.1
,
gpt-4.1-mini
,
gpt-4.1-nano
-
claude-3.7-sonnet
,
claude-3.5-haiku
-
gemini-2.0-flash
,
gemini-2.0-flash-lite
,
gemini-2.5-flash
,
gemini-2.5-flash-lite
For the fastest response with least delay, I'd recommend trying GPT-4.1-nano or GPT-5-nano from the dropdown, as the "nano" variants are typically optimized for speed [(1) ]() [(2) ]() . You can also enable Fast Tier (if available in your node settings) which provides 50% reduction in latency variance and 25% improvement in average response time, though it costs 1.5x the standard rate. The key point: what I previously called "Retell LLM" is actually just the response engine configuration - you'll still select from GPT, Claude, or Gemini models in your dropdown, with the nano/mini variants being your fastest options.
b
@AI Evy what are those two's stated delays?
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Get Retell LLM](https://docs.retellai.com/api-references/get-retell-llm) [[2] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) [[3] List Retell LLMs](https://docs.retellai.com/api-references/list-retell-llms) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer I don't have information about specific stated delays for GPT-4.1-nano or GPT-5-nano in the available sources. The sources mention that normal LLM latency ranges from 500ms to 900ms [(1) ]() , and that Retell AI typically achieves sub-800ms end-to-end latency [(2) ]() . The sources also note that when Fast Tier is enabled, you can expect a 50% reduction in latency variance and 25% improvement in average response time [(3) ]() . However, the sources don't provide model-specific latency benchmarks for individual LLM variants like nano or mini versions. If you need precise latency specifications for these specific models, I'd recommend: - Visit [Contact Sales]() - Visit [) Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Troubleshoot high latency](https://docs.retellai.com/reliability/troubleshoot-latency) [[2] Large Language Model (LLM)](https://www.retellai.com/glossary/large-language-model-llm) [[3] Configure LLM Options](https://docs.retellai.com/build/llm-options) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy That didn't do it for me. Still big delay. Do you have some alternative solutions?
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer Based on the persistent 3-second delays you're experiencing, here are additional solutions to explore: 1. Reduce Temperature for Faster Decision-Making Lower the
model_temperature
setting for your conversation node's LLM [(1) ]() [(2) ]() . Temperature controls randomness—lower values (0.0-0.3) produce more deterministic, faster responses [(1) ]() . For appointment booking scenarios specifically, temperatures of 0.1-0.3 are recommended for accurate data capture . 2. Enable Structured Output If your node involves function calling or structured decision-making, enable
tool_call_strict_mode
[(2) ]() . This ensures the LLM outputs only valid function calls with all required parameters, which can eliminate processing overhead from malformed responses [(1) ]() . 3. Optimize Your Prompt Length The LLM prompt token limit is 32,768 tokens [(3) ]() , but longer prompts increase processing time. Review your conversation node prompt and the
{{appointments}}
variable content—if you're passing large datasets, consider filtering to only relevant slots before the conversation node. 4. Consider Infrastructure Issues From November 02, 2025, Fast Tier is designed to provide consistent latency and higher availability, but it doesn't completely eliminate timeouts [(4) ]() . When LLM response times consistently exceed 900ms or you experience timeouts, recommended solutions are : - Use Fast Tier (which you have) - Switch to an alternative LLM provider - Wait for your current provider to resolve performance
issues 5. Add Fail-Safe Handling To avoid silence during delays, configure a fail-safe: if the LLM doesn't respond within a timeout window, trigger a warm transfer to a live agent or play a predefined prompt like "One moment please..." . You can also configure reminders or callbacks in the agent flow . If these adjustments don't resolve the issue: - Visit [Contact Sales]() - Visit [)
​ To learn more, see the sources I considered: [[1] Configure LLM Options](https://docs.retellai.com/build/llm-options) [[2] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) [[3] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[4] 🚨 URGENT: Fast Tier Agent Went Silent Mid-Call Due to LLM Timeouts](https://discord.com/channels/1186424376300679209/1407005808041918539) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy For reference, here's the rough outline of our flow: 1. AI Voice Agent: "just give me one moment while I pull up your form." * 1.5 seconds 2. AI Voice Agent: "I see based on the zip.... Me: [Yes] * 1 seconds 3. AI Voice Agent: "Perfect, let me go ahead and open up the calendar for you…" * 1 seconds 4. AI Voice Agent: Alright, just seeing what times we have available... just a sec. * 2 seconds 5. AI Voice Agent: "The first available is X would u like to book that?" Me: [Do you have anything on November 12th?] * 3 seconds 6. AI Voice Agent: "Yes, the first available is 9 PM would u like to book that? Me: [Yes] * 6.7 seconds 7. AI Voice Agent: "To finalize, could I have your date of birth please?" Me: [May 1st 1950] * 2 seconds 8. AI Voice Agent: "Alright thank you, I'm taking a note of that right now. Give me just a second while I book your appointment." * 0.2 seconds 9. AI Voice Agent: "Your appointment has been confirmed. Bye bye!"
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer The 3-second delay at step 5 and the 6.7-second delay at step 6 are the most problematic. Based on your flow, here are targeted recommendations: For Step 5 (3-second delay when asking about November 12th) : The delay is happening because your conversation node is processing the date request before transitioning. To address this: 1. Lower the temperature to 0.1-0.2 for your conversation node [(1) ]() . For appointment booking scenarios, temperatures of 0.1-0.3 are recommended for accurate data capture and faster processing . 2. Simplify the
{{appointments}}
data structure
. If you're passing all available slots, filter it to only show the next 7-10 days of availability before the conversation node processes it. Large datasets increase LLM processing time. 3. Enable
tool_call_strict_mode
if your flow involves function calling [(2) ]() [(3) ]() . This ensures tool call arguments follow the JSON schema and can reduce processing overhead [(1) ]() [(4) ]() . For Step 6 (6.7-second delay after confirming the slot) : This is likely a function execution delay for booking the appointment. Ensure: 1. "Speak During Execution" is enabled on your booking function node with a message like "Perfect, let me lock that in for you" [(5) ]() . 2. Fast Tier is enabled for the LLM handling this node [(1) ]() . Fast Tier provides a 50% reduction in latency variance and 25% improvement in average response time . Additional optimization: Co
nsider using GPT-4.1-nano or GPT-5-nano for your conversation nodes [(2) ]() [(3) ]() . The nano variants are optimized for speed while maintaining accuracy for structured tasks like appointment booking. If these adjustments don't resolve the delays, the issue may be infrastructure-related. When LLM response times consistently exceed 900ms, the recommended solutions are to use Fast Tier, switch to an alternative LLM provider, or wait for your current provider to resolve performance issues [(6) ]() .
​ To learn more, see the sources I considered: [[1] Configure LLM Options](https://docs.retellai.com/build/llm-options) [[2] Update Retell LLM](https://docs.retellai.com/api-references/update-retell-llm) [[3] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) [[4] Strict structured outputs with function calling](https://discord.com/channels/1186424376300679209/1361812214151118999) [[5] Discord message from @lowmen4488 on 2025-09-17](https://discord.com/channels/1186424376300679209/1186462578310910112/1417879881403859045) [[6] 🚨 URGENT: Fast Tier Agent Went Silent Mid-Call Due to LLM Timeouts](https://discord.com/channels/1186424376300679209/1407005808041918539) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy This made me think of another question "if you're passing large datasets, consider filtering to only relevant slots before the conversation node." in my flow, the function runs to pull location slots, then it asks the user in a conversation node if they'd like to book that. If the user says they'd like to book something else, eventhough Retell is still in the conversation node, does it go back and trigger that function again? Because if it does, I was thinking maybe it would be faster if once it first triggers that function, we could have it pull in some TXT file or file with all available slots, that way when the user doesnt want the first given appointment and asks for another one Retell can just check the TXT file quickly rather than doing a webhook function trigger call. Am I making sense? Let me know your thoughts
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer --- ### Answer No, the conversation node does NOT automatically trigger the function again. Conversation nodes cannot directly call functions [(1) ]() . When inside a conversation node, the agent will not call any functions or perform any actions—it can only engage in dialogue . What's actually happening: When you ask for a different appointment while in the conversation node, the LLM is simply searching through the
{{appointments}}
data that was already loaded by your initial function node. The 3-second delays you're experiencing are from the LLM processing and reasoning about that existing dataset—not from making new function calls [(2) ]() . Your TXT file idea makes sense conceptually, but it won't solve the problem because: 1. The data is already loaded into
{{appointments}}
from your first function call 2. The delay isn't from fetching data—it's from the LLM processing the data that's already there 3. Whether the data comes from a webhook or a TXT file, the LLM still needs to parse and reason about it, which causes the delay The real solution: Since conversation nodes can't trigger functions [(1) ]() , and your flow only calls the function once at the beginning, you need to reduce the size of the
{{appointments}}
dataset
before it reaches the conversation node. Instead of loading all available slots, filter it in your initial function to return only: - The next 7-10 days of availability - Only 2-3 slots per day - Pre-formatted in a simple structure the LLM can quickly parse This reduces the LLM's processing time when searching through
{{appointments}}
for alternative dates. If you need to make new function calls w
hen the user requests different dates, you'd need to restructure your flow with multiple nodes [(3) ]() [(4) ]() : 1. Function Node → pulls initial slots 2. Conversation Node → presents first option 3. Transition condition → when user requests different date 4. Another Function Node → checks specific date (with "Speak During Execution") 5. Follow-up Conversation Node → confirms result This ensures each new date request triggers an actual function call with immediate verbal acknowledgment [(1) ]() . --- **
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[2] Calling Webhooks In The Middle of A Call](https://discord.com/channels/1186424376300679209/1376986877927886979) [[3] Node Overview](https://docs.retellai.com/build/conversation-flow/node) [[4] 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.
b
@AI Evy For the 6 second delay it is actually an extract variable node, so it's not possible to speak during execution. Any other thoughts?
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer Extract Variable Node Performance Optimization You're correct that Extract Dynamic Variable Nodes don't support "Speak During Execution" [(1) ]() . However, based on community reports, there are several strategies to reduce the 6-second delay: 1. Consolidate Variable Extraction Multiple users have reported that having multiple Extract Variable Nodes, especially ones trying to extract the same variable, causes significant delays [(2) ]() [(3) ]() . One user resolved their issue by consolidating: "I removed all the extract variable nodes and replaced them by one that extracts all variables and everything seems to work fine now" [(2) ]() . Try extracting all variables in a single Extract Dynamic Variable Node rather than having separate nodes for each variable [(1) ]() [(4) ]() . This approach significantly improved performance for other users experiencing similar delays [(2) ]() [(3) ]() . 2. Optimize Variable Configuration When setting up your Extract Dynamic Variable Node [(1) ]() : - Keep descriptions brief and specific - complex descriptions increase processing time - Use Enum type when possible instead of Text - this constrains the LLM's decision space and speeds processing [(1) ](
tellai.com/build/conversation-flow/extract-dv-node) [(4) ]() - For date of birth extraction, use Text type with a clear format specification (e.g., "MM/DD/YYYY format") 3. Choose a Faster LLM for the Node Extract Dynamic Variable Nodes allow you to select a different LLM specifically for that node [(1) ]() . Try using GPT-4.1-nano or GPT-5-nano with: - Temperature set to 0.1-0.2 for faster, more deterministic extraction - Fast Tier enabled if available 4. Restructure Your Flow If the 6-second delay persists, consider moving the date of birth extraction earlier in your flow, before the appointment booking function. This way: - The extraction happens during a less time-sensitive part of the conversation - You can use the extracted
{{date_of_birth}}
variable later without additional processing delays Known Issue Alert There was a documented incident where "Conversation Flow agents potentially stay silent after function node" due to message ordering issues [(5) ]() . While this was reportedly fixed, if you're experiencing complete silence (not just delays) , this could be related. If these optimizations don't resolve the 6-second delay, the issue may require platform-level investigation. Contact support with your specific agent ID and flow configuration for deeper troubleshooting.
​ To learn more, see the sources I considered: [[1] Extract Dynamic Variable Node](https://docs.retellai.com/build/conversation-flow/extract-dv-node) [[2] Stuck in Extract Variable Node](https://discord.com/channels/1186424376300679209/1417156559330476142) [[3] Discord message from @q40478 on 2025-10-19](https://discord.com/channels/1186424376300679209/1186462578310910112/1429489660366946414) [[4] Extract Dynamic Variables](https://docs.retellai.com/build/single-multi-prompt/extract-dv) [[5] Conversation Flow agent potentially stay silent after function node](https://retell.discourse.group/t/conversation-flow-agent-potentially-stay-silent-after-function-node/135) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy what if I instead take the prompt in the conversation node that is taking long to respond and change it? The original prompt is: "Based on the slots available in {{appointments}}, help them book a slot by giving them the soonest day available and saying something like "So I see that the soonest appointment is on [day, date, and time]" without again mentioning the location name. Make sure you're only mentioning one appointment at a time until they've decided on one slot" I may be misunderstanding how function nodes work in collaboration with conversation nodes, but is it possible that the function node pulls the data for "{{appointments}}" but then the conversation node then only pulls one slot from that data at a time by the way the prompt is written? If so, should we prompt it in the conversation node to for example save the next 14 days of slots for quick access to responses? Or maybe we should add in the prompt that it should always instantly reply with something affirming before it spends that long time before responding? What are your thoughts? As a side note, I just don't understand why the conversation node takes so long. its a conversation node, its not a function node, the function node was before it, so I would have assumed that the preceding conversation node would already have gotten all the appointment data listed neatly out so it can quickly reference it. By the long delay right now it almost seems as if its running a new function everytime the user responds to affirm if the appointment slot is actually available.
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer You're correct in your understanding: the function node runs first and loads the available slots into the {{appointments}} variable. The conversation node that follows does not call the function again—instead, it references the data in {{appointments}} that was already fetched by the preceding function node. The conversation node's prompt determines how the LLM parses and presents that data to the user, but it does not trigger new function calls or fetch additional data unless you explicitly design your flow to do so with new function nodes and transitions [(1) ]() [(2) ]() . If your prompt in the conversation node is written to only present one slot at a time, the LLM will process {{appointments}} and select one slot per user turn, as you described. The delay you're seeing is due to the LLM parsing and reasoning over the dataset in {{appointments}} every time the user asks for another slot, not because it's calling a function or re-fetching data . To address this: - You can update your prompt to encourage the LLM to always reply immediately with an affirming statement before processing the user's request. For example: "Always acknowledge the user's request right away with a phrase like 'Let me check that for you,' then process and respond with the next available slot." - Reducing the size and complexity of the {{appointments}} dataset passed into the conversation node can also help. Filter the function node output to include only the next 7–10 days or a limited number of slots per day to speed up LLM processing [(1) ]() . - If you want to enable instant access to a list of slots for rapid responses, you can pre-format {{appointmen
ts}} as a simple, easy-to-parse list in the function node, so the conversation node LLM spends less time reasoning about the data . The core reason for the delay is that the conversation node LLM is working through the data in-memory—it's not making new function calls unless you explicitly route the flow through another function node [(1) ]() [(2) ]() . Prompting the LLM to give immediate feedback and optimizing the data structure it receives are your best options to reduce perceived latency.
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] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) ​
b
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer If your tool result contains a large or complex data structure, it can increase processing time, especially if the LLM needs to parse and reason about all of it before responding [(1) ]() . Retell AI's LLM processes the data in-memory during each conversation node turn, so the more information you pass (such as a large list of appointment slots or detailed objects) , the longer it can take for the LLM to generate a response . To reduce latency: - Limit the tool result to only the most relevant data for the immediate conversation—such as just the next 7–10 available slots, or a simplified list format . - Avoid passing unnecessary or verbose information in the tool result payload . Optimizing your tool result to be concise and directly relevant to the user's current request is the best way to minimize slowdowns in Retell AI's response time .
​ To learn more, see the sources I considered: [[1] LLM WebSocket](https://docs.retellai.com/api-references/llm-websocket) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy "especially if the LLM needs to parse and reason about all of it before responding" what do you mean by that? Can you give me an example, and then an example of how I could avoid it having to "parse and reason about it"?
a
Thanks for the follow-up, @byredyre. I'll get back to you soon.
### Answer When I say "the LLM needs to parse and reason about all of it before responding," I mean that every time the conversation node runs, the language model receives the entire contents of your {{appointments}} variable (or whatever data you pass in) , and it has to read through, understand, and select from that data based on your prompt and the user's latest input. Example of high reasoning load: If your tool result contains a large JSON array like this:
Copy code
json
[
  {"date": "2025-11-12", "time": "9:00 AM", "location": "Main St", "doctor": "Dr. Smith", "notes": "..."},
  {"date": "2025-11-13", "time": "11:00 AM", "location": "Main St", "doctor": "Dr. Jones", "notes": "..."},
  // ...dozens or hundreds more slots...
]
The LLM must scan every entry, match the user's requested date/time, and follow your prompt instructions (e.g., "find the soonest available slot," "don't repeat location name," etc.) each time the user asks about another date or slot. The more entries and fields, the longer it takes for the LLM to produce a response [(1) ]() . How to avoid this bottleneck: - Only pass the most relevant/limited data (e.g., just 7–10 upcoming slots, and only the fields you need) . - Pre-format the data in your function node so it's as simple as possible for the LLM to reference. For example:
Copy code
json
[
  "Nov 12, 9:00 AM",
  "Nov 13, 11:00 AM",
  "Nov 14, 2:00 PM"
]
- If your prompt always asks the LLM to "find the next available slot," then only include those few slots in {{appointments}} rather than the whole database. This way, the LLM spends less time reading and searching through unnecessary data, and your conversation node will respond much faster .
​ To learn more, see the sources I considered: [[1] LLM WebSocket](https://docs.retellai.com/api-references/llm-websocket) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.