Gleeming
12/09/2025, 8:49 AMAI Evy
12/09/2025, 8:49 AMAI Evy
12/09/2025, 8:50 AMAI Evy
12/09/2025, 8:50 AMAI Evy
12/09/2025, 8:50 AMagent_override. The agent_override.retell_llm field only supports overriding specific attributes of the Retell LLM configuration, not replacing it with an entirely different LLM. [(1) ]()
The supported attributes for agent_override.retell_llm are: model, s2s_model, model_temperature, model_high_priority, tool_call_strict_mode, knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms, begin_message.
Notably, general_prompt (the system prompt) is not listed among the supported override attributes for retell_llm.
For your use case of using different system prompts per call while keeping the same tools, you have a couple of options:
1. Use retell_llm_dynamic_variables — Inject dynamic variables into your prompt at call time.
json
{ "customer_name": "John Doe" }
2. Create separate agents — Each with the desired system prompt but sharing the same tool configurations.
3. Use the inbound webhook — If handling inbound calls, you can use override_agent_id to dynamically select a different agent per call. [(2) ]()
The 500 error you're receiving is likely because you're passing an unsupported structure to agent_override.retell_llm.Gleeming
12/09/2025, 8:51 AMAI Evy
12/09/2025, 8:51 AMAI Evy
12/09/2025, 8:52 AMagent_override structure you're using doesn't match the supported schema. [(1) ]()
The agent_override.agent object supports overriding agent configuration settings, but the documentation for agent_override.retell_llm specifies only these supported attributes: model, s2s_model, model_temperature, model_high_priority, tool_call_strict_mode, knowledge_base_ids, kb_config, start_speaker, begin_after_user_silence_ms, begin_message. [(2) ]()
Passing a full response_engine object with llm_id is not listed among the supported override attributes—this is likely causing your 500 error.
Alternative approaches:
1. Use override_agent_id alone — Point to different agents that already have the desired LLM/prompt configured. [(1) ]()
2. Leverage dynamic variables — If your prompts differ only by injected data, use retell_llm_dynamic_variables (which you're already doing) and design your base prompt to handle the variations. [(1) ]() [(3) ]()
3. Create separate agents — Each with the specific system prompt you need, then use override_agent_id to select the appropriate one per call.
Your retell_llm_dynamic_variables usage looks correct. [(1) ]()AI Evy
12/09/2025, 8:52 AMAI Evy
12/09/2025, 8:52 AMAI Evy
12/09/2025, 8:59 AM