Docs

Create Retell LLM

Creates a Retell LLM in Retell AI.

POST

Query

Field selectionChoose which fields should be included in the response. Learn more
string

Comma-separated response fields to include.

Body

Arguments
array of object

Edges of the state define how and what state can be reached from this state.

array of object

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 for the LLM to use. - Tools of LLM (with state) = general tools + state tools + state transitions - Tools of LLM (no state) = general tools

array of string

A list of knowledge base ids to use for this resource.

array of object

A list of MCPs to use for this LLM.

string

Available LLM models for agents.

array of string

List of names of required property when generating this parameter. LLM will do its best to generate the required properties in its function arguments. Property must exist in properties.

array of object

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).

array of object

A list of tools specific to this state 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 for the LLM to use. - Tools of LLM = general tools + state tools + state transitions

string

Select the underlying speech to speech model. Can only set this or model, not both. Allowed values: gpt-4o-realtime, gpt-4o-mini-realtime, gpt-realtime, gpt-realtime-mini.

number

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.

boolean

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.

boolean

Whether to use strict mode for tool calls. Only applicable when using certain supported models.

object
number

Max number of knowledge base chunks to retrieve

number

Similarity threshold for filtering search results

string

The speaker who starts the conversation. Required. Must be either 'user' or 'agent'. Allowed values: user, agent.

number

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.

string

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.

string

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.

stringrequired

Allowed values: end_call.

stringrequired

Name of the tool. Must be unique within all tools available to LLM at any given time (general tools + state tools + state transitions). Must be consisted of a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64 (no space allowed).

string

Describes what the tool does, sometimes can also include information about when to call the tool.

boolean

If true, will speak during execution.

string

Describes what to say to user when ending the call. Only applicable when speak_during_execution is true.

string

Type of execution message. "prompt" means the agent will use execution_message_description as a prompt to generate the message. "static_text" means the agent will speak the execution_message_description directly. Defaults to "prompt". Allowed values: prompt, static_text.

stringrequired

Name of the state, must be unique for each state. Must be consisted of a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64 (no space allowed).

string

Prompt of the state, will be appended to the system prompt of LLM. - System prompt = general prompt + state prompt.

stringrequired

The destination state name when going through transition of state via this edge. State transition internally is implemented as a tool call of LLM, and a tool call with name "transition_to_{destination_state_name}" will get created. Feel free to reference it inside the prompt.

stringrequired

Describes what's the transition and at what time / criteria should this transition happen.

object

The parameters the functions accepts, described as a JSON Schema object. See [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format. Omitting parameters defines a function with an empty parameter list.

stringrequired

Type must be "object" for a JSON Schema object. Allowed values: object.

objectrequired

The value of properties is an object, where each key is the name of a property and each value is a schema used to validate that property.

stringrequired

Allowed values: end_call.

stringrequired

Name of the tool. Must be unique within all tools available to LLM at any given time (general tools + state tools + state transitions). Must be consisted of a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64 (no space allowed).

string

Describes what the tool does, sometimes can also include information about when to call the tool.

boolean

If true, will speak during execution.

string

Describes what to say to user when ending the call. Only applicable when speak_during_execution is true.

string

Type of execution message. "prompt" means the agent will use execution_message_description as a prompt to generate the message. "static_text" means the agent will speak the execution_message_description directly. Defaults to "prompt". Allowed values: prompt, static_text.

string

Name of the starting state. Required if states is not empty.

object

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.

number

The version of the LLM.

stringrequired
stringrequired

The URL of the MCP server.

object

Headers to add to the MCP connection request.

object

Query parameters to append to the MCP connection request URL.

number

Maximum time to wait for a connection to be established (in milliseconds). Default to 120,000 ms (2 minutes).

Every app you connect,one REST pattern

Call any app with one REST pattern. MindCloud handles each provider's auth, request shape, and responses for you.

Learn what the Universal API is
One REST patternUse the same request structure across apps like Slack, HubSpot, Salesforce, and thousands more.
Managed connectionsSend a MindCloud connection ID instead of handling provider tokens, refresh logic, and credential storage yourself.
Action-level docsEach action page shows the exact endpoint, required arguments, optional controls, and response behavior for that app version.