Create Retell LLM
[Method 1] - Dashboard (No code)
You can create an agent and Retell LLM object using dashboard easily. Right now in Dashbaord it’s a one to one mapping between agent and LLM, but you can have multiple agents using the same LLM in API.
You can use the agent_id
, llm_id
and llm_url
in API.
[Method 2] - LLM Creation via API
Use API to programmatically create LLM, suitable for automation and integration with your existing systems.
Step 1 - Create the LLM Object via API
There’re two types of LLMs you can create:
Option 1: Single Prompt LLM
Suitable for simple use cases where there’s one core task / topic for the call and a few tools the LLM can access.
Read more about how to define tools in Tool Calling.
Option 2: Stateful Multi-Prompt LLM
Alternatively, you can create a stateful multi-prompt LLM which is suitable for complicated use cases where there are multiple stages / themes of call, each with access to different set of tools.
Read more about how to define states in LLM States.
Step 2 - Connect Retell LLM To Agent
To utilize the LLM you’ve developed, obtain the llm_websocket_url either from the API response or by copying and pasting it from the dashboard. Then, input it into an agent where you can customize and establish an entity for conducting voice conversations. Read more in Agent Guide.
👏 Congratulations! You’ve successfully created an agent. Now, you can:
- Initiate a phone call using the agent. (link)
- Start a web call with it. (link)
- Enhance the agent’s capabilities:
Configure Who Speaks First
You can configure whether the agent or the user speaks first in the conversation. You can also configure what to say when the agent speaks first.
Was this page helpful?