Authorizations
Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"
Body
Override properties for Retell LLM configuration in agent override requests.
Select the underlying text LLM. If not set, would default to gpt-4.1.
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 "gpt-4.1"
Select the underlying speech to speech model. Can only set this or model, not both.
gpt-4o-realtime, gpt-4o-mini-realtime, gpt-realtime "gpt-4o-realtime"
If set, will control the randomness of the response. Value ranging from [0,1]. Lower value means more deterministic, while higher value means more random. If unset, default value 0 will apply. Note that for tool calling, a lower value is recommended.
0
If set to true, will use high priority pool with more dedicated resource to ensure lower and more consistent latency, default to false. This feature usually comes with a higher cost.
true
Whether to use strict mode for tool calls. Only applicable when using certain supported models.
true
A list of knowledge base ids to use for this resource.
Knowledge base configuration for RAG retrieval.
The speaker who starts the conversation. Required. Must be either 'user' or 'agent'.
user, agent If set, the AI will begin the conversation after waiting for the user for the duration (in milliseconds) specified by this attribute. This only applies if the agent is configured to wait for the user to speak first. If not set, the agent will wait indefinitely for the user to speak.
2000
First utterance said by the agent in the call. If not set, LLM will dynamically generate a message. If set to "", agent will wait for user to speak first.
"Hey I am a virtual assistant calling from Retell Hospital."
General prompt appended to system prompt no matter what state the agent is in.
-
System prompt (with state) = general prompt + state prompt.
-
System prompt (no state) = general prompt.
"You are ..."
A list of tools the model may call (to get external knowledge, call API, etc). You can select from some common predefined tools like end call, transfer call, etc; or you can create your own custom tool (last option) for the LLM to use.
-
Tools of LLM (with state) = general tools + state tools + state transitions
-
Tools of LLM (no state) = general tools
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
[
{
"type": "end_call",
"name": "end_call",
"description": "End the call with user."
}
]States of the LLM. This is to help reduce prompt length and tool choices when the call can be broken into distinct states. With shorter prompts and less tools, the LLM can better focus and follow the rules, minimizing hallucination. If this field is not set, the agent would only have general prompt and general tools (essentially one state).
[
{
"name": "information_collection",
"state_prompt": "You will follow the steps below to collect information...",
"edges": [
{
"destination_state_name": "appointment_booking",
"description": "Transition to book an appointment."
}
],
"tools": [
{
"type": "transfer_call",
"name": "transfer_to_support",
"description": "Transfer to the support team.",
"transfer_destination": {
"type": "predefined",
"number": "16175551212",
"ignore_e164_validation": false
},
"transfer_option": {
"type": "cold_transfer",
"show_transferee_as_caller": false
}
}
]
},
{
"name": "appointment_booking",
"state_prompt": "You will follow the steps below to book an appointment...",
"tools": [
{
"type": "book_appointment_cal",
"name": "book_appointment",
"description": "Book an annual check up.",
"cal_api_key": "cal_live_xxxxxxxxxxxx",
"event_type_id": 60444,
"timezone": "America/Los_Angeles"
}
]
}
]Name of the starting state. Required if states is not empty.
"information_collection"
Default dynamic variables represented as key-value pairs of strings. These are injected into your Retell LLM prompt and tool description when specific values are not provided in a request. Only applicable for Retell LLM.
{ "customer_name": "John Doe" }The version of the LLM.
1
A list of MCPs to use for this LLM.
Response
Successfully created a new Retell LLM Response Engine.
Override properties for Retell LLM configuration in agent override requests.
Unique id of Retell LLM Response Engine.
"oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD"
Last modification timestamp (milliseconds since epoch). Either the time of last update or creation if no updates available.
1703413636133
Version of the Retell LLM Response Engine. The version of the LLM.
1
Whether the Retell LLM Response Engine is published.
false
Select the underlying text LLM. If not set, would default to gpt-4.1.
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 "gpt-4.1"
Select the underlying speech to speech model. Can only set this or model, not both.
gpt-4o-realtime, gpt-4o-mini-realtime, gpt-realtime "gpt-4o-realtime"
If set, will control the randomness of the response. Value ranging from [0,1]. Lower value means more deterministic, while higher value means more random. If unset, default value 0 will apply. Note that for tool calling, a lower value is recommended.
0
If set to true, will use high priority pool with more dedicated resource to ensure lower and more consistent latency, default to false. This feature usually comes with a higher cost.
true
Whether to use strict mode for tool calls. Only applicable when using certain supported models.
true
A list of knowledge base ids to use for this resource.
Knowledge base configuration for RAG retrieval.
The speaker who starts the conversation. Required. Must be either 'user' or 'agent'.
user, agent If set, the AI will begin the conversation after waiting for the user for the duration (in milliseconds) specified by this attribute. This only applies if the agent is configured to wait for the user to speak first. If not set, the agent will wait indefinitely for the user to speak.
2000
First utterance said by the agent in the call. If not set, LLM will dynamically generate a message. If set to "", agent will wait for user to speak first.
"Hey I am a virtual assistant calling from Retell Hospital."
General prompt appended to system prompt no matter what state the agent is in.
-
System prompt (with state) = general prompt + state prompt.
-
System prompt (no state) = general prompt.
"You are ..."
A list of tools the model may call (to get external knowledge, call API, etc). You can select from some common predefined tools like end call, transfer call, etc; or you can create your own custom tool (last option) for the LLM to use.
-
Tools of LLM (with state) = general tools + state tools + state transitions
-
Tools of LLM (no state) = general tools
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
[
{
"type": "end_call",
"name": "end_call",
"description": "End the call with user."
}
]States of the LLM. This is to help reduce prompt length and tool choices when the call can be broken into distinct states. With shorter prompts and less tools, the LLM can better focus and follow the rules, minimizing hallucination. If this field is not set, the agent would only have general prompt and general tools (essentially one state).
[
{
"name": "information_collection",
"state_prompt": "You will follow the steps below to collect information...",
"edges": [
{
"destination_state_name": "appointment_booking",
"description": "Transition to book an appointment."
}
],
"tools": [
{
"type": "transfer_call",
"name": "transfer_to_support",
"description": "Transfer to the support team.",
"transfer_destination": {
"type": "predefined",
"number": "16175551212",
"ignore_e164_validation": false
},
"transfer_option": {
"type": "cold_transfer",
"show_transferee_as_caller": false
}
}
]
},
{
"name": "appointment_booking",
"state_prompt": "You will follow the steps below to book an appointment...",
"tools": [
{
"type": "book_appointment_cal",
"name": "book_appointment",
"description": "Book an annual check up.",
"cal_api_key": "cal_live_xxxxxxxxxxxx",
"event_type_id": 60444,
"timezone": "America/Los_Angeles"
}
]
}
]Name of the starting state. Required if states is not empty.
"information_collection"
Default dynamic variables represented as key-value pairs of strings. These are injected into your Retell LLM prompt and tool description when specific values are not provided in a request. Only applicable for Retell LLM.
{ "customer_name": "John Doe" }A list of MCPs to use for this LLM.