https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can I reduce latency when switching between pr...
# ❓・ai-evy-support
d
@AI Evy how can I reduce latency when switching between prompts in a multip prompt agent? this seems way too slow 2025-10-28 15:57:48.907 call_603d730074b42e352ed598ec165 info: Calling tool: transition_to_referralRelated Arguments: {} 2025-10-28 15:57:52.527 call_603d730074b42e352ed598ec165 info: E2E latency for this turn: 6955 2025-10-28 15:58:25.644 call_603d730074b42e352ed598ec165 info: E2E latency for this turn: 3332 2025-10-28 15:58:35.501 call_603d730074b42e352ed598ec165 info: Calling tool: transition_to_generalRelated Arguments: {} 2025-10-28 15:58:39.018 call_603d730074b42e352ed598ec165 info: E2E latency for this turn: 7476
a
Thanks for tagging me @dd_131313. I'll look through relevant sources and get back to you shortly.
### Answer Your latency issues (6955ms and 7476ms for state transitions) are significantly higher than Retell's typical sub-800ms target. Here are optimization strategies based on the available documentation: Model and Configuration Settings: 1. Enable High Priority Mode - Set
model_high_priority
to
true
in your LLM configuration to prioritize lower latency [(1) ]() 2. Adjust Model Temperature - Lower the
model_temperature
(closer to 0) to reduce response generation time, especially when using function calling [(2) ]() [(1) ]() 3. Use GPT-4.1 - Start with GPT-4.1 as it offers an optimal balance of response quality, latency, and cost-effectiveness [(3) ]() Prompt Optimization: 4. Keep Prompts Concise - Longer prompts can harm performance. If you have a large knowledge base, consider using RAG to filter only relevant information [(2) ]() 5. Make Responses Short - Ensure your prompts instruct the agent to give concise responses, as shorter responses reduce time to first token Architectural Considerations: 6. Review State Complexity - Each state should have focused prompts with only relevant tools available. Overly complex state prompts can increase processing time [(4) ]() [(5) ]() 7. Consider Conversation Flow - Some users have found Conversation Flow more reliable than complex multi-prompt agents for intricate scenarios [(6) ](
09/1186462578310910112/1429218557765484544) Your logs show the transitions themselves are taking 3-7 seconds, which suggests the LLM is spending significant time processing the state change. Focus on simplifying your state prompts and enabling high priority mode first.
​ To learn more, see the sources I considered: [[1] Update Retell LLM](https://docs.retellai.com/api-references/update-retell-llm) [[2] Custom LLM Best Practices](https://docs.retellai.com/integrate-llm/llm-best-practice) [[3] Step 2: Configure the basic settings](https://docs.retellai.com/build/single-multi-prompt/configure-basic-settings) [[4] Single/Multi Prompt Agent Overview](https://docs.retellai.com/build/single-multi-prompt/prompt-overview) [[5] Build a multi-prompt agent](https://docs.retellai.com/build/single-multi-prompt/write-multi-prompt) [[6] Discord message from @jrok1308 on 2025-10-18](https://discord.com/channels/1186424376300679209/1186462578310910112/1429218557765484544) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy i'm using the interface, how do I enable high priority mode? My model temp is 0 My prompts aren't very long and they have only tools related to that primpt in it. What other tweaks are there?
a
Thanks for the follow-up, @dd_131313. I'll get back to you soon.
### Answer Based on the documentation, enabling high priority mode (Fast Tier) is done through the
model_high_priority
setting. [(1) ]() [(2) ]() [(3) ]() In the Dashboard Interface: Fast Tier can be enabled in your LLM configuration settings. [(1) ]() Look for the Fast Tier or high priority option when configuring your agent's LLM settings in the dashboard. Additional Optimization Tweaks: Since you already have temperature at 0 and focused prompts, here are other options: 1. Enable Structured Output - Set
tool_call_strict_mode
to true to ensure tool call arguments strictly follow the JSON schema, which can improve reliability and reduce errors that cause delays. [(1) ]() [(2) ]() [(3) ]() 2. Adjust Responsiveness - The
responsiveness
parameter (ranging from 0-1) controls how quickly the agent responds. [(4) ]() Higher values mean faster exchanges. 3. Reduce Reminder Delays - If set,
reminder_trigger_ms
determines how long before the agent speaks again. The default is 10000ms (10 seconds) . 4. Voice Speed - Increase
voice_speed
(ranging from 0.5-2) to make the agent speak faster, reducing overall turn time. 5. Interruption Sensitivity - Adjust
interruption_sensitivity
(0-1 range) to allow smoother conversation flow. 6. Model Selection - Consider trying different models like
gpt-4.1-mini
or
gpt-4.1-nano
for potentially faster processing. [(2) ](
l-llm) [(3) ]() [(5) ]() The Fast Tier option costs 1.5x the standard rate but provides 50% reduction in latency variance and 25% improvement in average response time. [(1) ]() **
​ 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] Update Agent](https://docs.retellai.com/api-references/update-agent) [[5] 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.