https://retellai.com/?utm_source=discord&utm_medium=seo logo
using the Retell Voice Agent, using GPT Real time ...
# ❓・ai-evy-support
n
@AI Evy using the Retell Voice Agent, using GPT Real time Mini, but the flow of AI is not smooth and good, then I tried to reduce the token in system prompt and build the prompt tree, but the then the flow of AI when speaking was worse then before, such as she can't recognize the languages, she speak something weird which is not in the prompt nor in knowlegde báe. Do you know why it happen.
a
Thanks for tagging me @nhungle0172. I'll look through relevant sources and get back to you shortly.
​ To learn more, see the sources I considered: [[1] List Retell LLMs](https://docs.retellai.com/api-references/list-retell-llms) [[2] Get Retell LLM](https://docs.retellai.com/api-references/get-retell-llm) [[3] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) [[4] Update Retell LLM](https://docs.retellai.com/api-references/update-retell-llm) [[5] Retell AI’s Advanced Conversation Flow | Retell AI](https://www.retellai.com/blog/unlocking-complex-interactions-with-retell-ais-conversation-flow) [[6] 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) [[7] Discord message from @thejayman5710 on 2025-06-30](https://discord.com/channels/1186424376300679209/1186462578310910112/1389332168274088138) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer I can see you're experiencing issues with GPT Realtime Mini where reducing tokens and building a prompt tree made the AI's flow worse, including language recognition problems and unexpected responses. Based on the available sources, when using speech-to-speech models like
gpt-4o-mini-realtime
(which is the GPT Realtime Mini model) , you can configure several parameters that might help [(1) ]() [(2) ]() [(3) ]() [(4) ]() : Model Configuration Options: - `model_temperature`: Controls randomness (0-1 range) . Lower values are more deterministic [(3) ]() [(4) ]() - `model_high_priority`: Enables fast tier for lower, more consistent latency - `general_prompt`: Sets the system prompt context - Language settings through global configuration Agent Structure Options: Retell AI offers different approaches for managing conversation complexity [(5) ]() [(6) ]() : 1. **Single Prompt Agent**: Uses one comprehensive prompt - best for simple use cases but can lead to hallucinations as complexity increases [(5) ]() 2. **Multi-Prompt Agent**: Combines several prompts in a structured tree with specific prompts per node and transition logic 3. **Conversation Flow Agent**: Provides the most control with intricate conversation structures, minimizing extensiv
e prompt engineering needs [(5) ]() [(6) ]() When you reduced tokens and built a prompt tree, you may have been using the Multi-Prompt approach. The documentation notes that Multi-Prompt "demands considerable work in prompt engineering to manage the various nodes effectively" [(5) ]() . Knowledge Base Integration: You can attach knowledge bases using
knowledge_base_ids
and configure retrieval with
kb_config
parameters like
top_k
and
filter_score
[(1) ]() [(2) ]() [(3) ]() [(4) ]() . A community member suggests identifying where the AI underperforms and providing detailed protocols in the knowledge base [(7) ]() . I don't have specific troubleshooting steps for your exact issue in the sources. For detailed debugging of language recognition and unexpected responses with GPT Realtime Mini, I'd recommend checking your language preferences in global settings and reviewing your prompt structure. Would you like a general answer based on my knowledge of conversational AI systems? **