https://retellai.com/?utm_source=discord&utm_medium=seo logo
Create agent via API, llm_websocket_url required
# ❓・bug-report
e
We need to create an agent using API, but endpoint https://api.retellai.com/create-agent requires the "llm_websocket_url" parameter value. If we create agents from UI we do not have to specify this url and agents use some internal endpoints like "wss://api.retellai.com/retell-llm-new/...". Is there a way to use internal LLM websockets to create new agents from API?
do we have to use https://api.retellai.com/list-retell-llms call first to create llm_websocket_url ?
n
@egorp_23109 Yes you have to first get the LLM websocket url from the API call in case of retell LLM. Then use that to create the agent
Essentially, when you create agents and LLMs via APIs, they are like composable blocks, so you can create them separately and attach the LLM websocket url to an agent