Retellai

Learn how to use Retellai with Composio

Overview

SLUG: RETELLAI

Description

RetellAI captures calls and transcripts, enabling businesses to analyze conversations, extract insights, and enhance customer interactions in one centralized platform

Authentication Details

generic_api_key
stringRequired

Connecting to Retellai

Create an auth config

Use the dashboard to create an auth config for the Retellai toolkit. This allows you to connect multiple Retellai accounts to Composio for agents to use.

1

Select App

Navigate to Retellai.

2

Configure Auth Config Settings

Select among the supported auth schemes of and configure them here.

3

Create and Get auth config ID

Click “Create Retellai Auth Config”. After creation, copy the displayed ID starting with ac_. This is your auth config ID. This is not a sensitive ID — you can save it in environment variables or a database. This ID will be used to create connections to the toolkit for a given user.

Connect Your Account

Using API Key

1from composio import Composio
2
3# Replace these with your actual values
4retellai_auth_config_id = "ac_YOUR_RETELLAI_CONFIG_ID" # Auth config ID created above
5user_id = "0000-0000-0000" # UUID from database/app
6
7composio = Composio()
8
9def authenticate_toolkit(user_id: str, auth_config_id: str):
10 # Replace this with a method to retrieve an API key from the user.
11 # Or supply your own.
12 user_api_key = input("[!] Enter API key")
13
14 connection_request = composio.connected_accounts.initiate(
15 user_id=user_id,
16 auth_config_id=auth_config_id,
17 config={"auth_scheme": "API_KEY", "val": {"generic_api_key": user_api_key}}
18 )
19
20 # API Key authentication is immediate - no redirect needed
21 print(f"Successfully connected Retellai for user {user_id}")
22 print(f"Connection status: {connection_request.status}")
23
24 return connection_request.id
25
26
27connection_id = authenticate_toolkit(user_id, retellai_auth_config_id)
28
29# You can verify the connection using:
30connected_account = composio.connected_accounts.get(connection_id)
31print(f"Connected account: {connected_account}")

Tools

Executing tools

To prototype you can execute some tools to see the responses and working on the Retellai toolkit’s playground

For code examples, see the Tool calling guide and Provider examples.

Tool List

Tool Name: Add community voice

Description

Add a community voice from ElevenLabs to your Retell voice library. Use when you need to import a shared community voice for use in your agents.

Action Parameters

provider_voice_id
stringRequired
public_user_id
stringRequired
voice_name
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Buy a new phone number bind agents

Description

This endpoint allows purchasing a new phone number with a specified area code and binding it to designated agents for inbound and outbound calls. It requires JSON with agent IDs and area code. Responses indicate the creation status or errors.

Action Parameters

area_code
integer
inbound_agent_id
string
nickname
string
outbound_agent_id
string

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create a new outbound phone call

Description

Initiate an outbound call by POST to '/v2/create-phone-call'. Requires 'from_number' and 'to_number' in E.164 format. Optional overrides and metadata supported. On success, returns call details including type, status, and IDs.

Action Parameters

from_number
stringRequired
override_agent_id
string
to_number
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create a new web call

Description

The /v2/create-web-call endpoint creates a web call with a unique agent ID, returning call details like type, token, call ID, and status in JSON format, with a 201 response. Optional metadata and variables can be included.

Action Parameters

agent_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create a new chat agent

Description

Create a new chat agent with specified configuration. Use when you need to set up a chat-based AI agent with custom response engine and behavior settings.

Action Parameters

agent_name
analysis_successful_prompt
analysis_summary_prompt
auto_close_message
data_storage_setting
end_chat_after_silence_ms
is_public
language
opt_in_signed_url
pii_config
post_chat_analysis_data
post_chat_analysis_model
response_engine
objectRequired
signed_url_expiration_ms
webhook_timeout_ms
webhook_url

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create conversation flow

Description

Create a new Conversation Flow that can be attached to an agent for response generation. Requires start_speaker, model_choice, and nodes. Returns conversation_flow_id and full configuration.

Action Parameters

begin_after_user_silence_ms
begin_tag_display_position
components
default_dynamic_variables
global_prompt
is_transfer_llm
kb_config
knowledge_base_ids
mcps
model_choice
objectRequired
model_temperature
nodes
arrayRequired
start_node_id
start_speaker
stringRequired
tool_call_strict_mode
tools

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create conversation flow component

Description

Creates a new shared conversation flow component at POST '/create-conversation-flow-component'. Requires 'name' and 'nodes' array. Optional: tools, mcps, start_node_id, begin_tag_display_position. Returns component ID, timestamp, and the full component definition.

Action Parameters

begin_tag_display_position
mcps
name
stringRequired
nodes
arrayRequired
start_node_id
tools

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create a new knowledge base

Description

Tool to create a new knowledge base in Retell AI with texts, files, and URLs. Use when you need to create a knowledge base for an AI agent. At least one of knowledge_base_texts, knowledge_base_files, or knowledge_base_urls should be provided.

Action Parameters

knowledge_base_files
knowledge_base_name
stringRequired
knowledge_base_texts
knowledge_base_urls

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Create Retell LLM Response Engine

Description

Create a new Retell LLM Response Engine that can be attached to an agent. Use when you need to configure a new LLM-powered response system with custom prompts, tools, and conversation flows.

Action Parameters

begin_after_user_silence_ms
begin_message
default_dynamic_variables
general_prompt
general_tools
kb_config
knowledge_base_ids
mcps
model
model_high_priority
model_temperature
s2s_model
start_speaker
stringRequired
starting_state
states
tool_call_strict_mode

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete agent

Description

Deletes an existing agent by its unique identifier. Returns 204 No Content on successful deletion.

Action Parameters

agent_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete chat agent

Description

Delete an existing chat agent by its unique identifier. Use when you need to permanently remove a chat agent from the system.

Action Parameters

agent_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete conversation flow

Description

Delete a conversation flow and all its versions. Use when you need to permanently remove a conversation flow from the system.

Action Parameters

conversation_flow_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete conversation flow component

Description

Delete a shared conversation flow component. When deleting a shared component, creates local copies for all linked conversation flows.

Action Parameters

conversation_flow_component_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete phone number

Description

Tool to delete an existing phone number from Retell AI. Use when you need to remove a phone number that is no longer needed. The phone number must be in E.164 format (e.g., +14159998888).

Action Parameters

phone_number
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Delete Retell LLM

Description

Delete an existing Retell LLM Response Engine by its unique identifier. Use when you need to permanently remove a Retell LLM from the system.

Action Parameters

llm_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Retrieve details of a specific agent

Description

Retrieve details of a specific agent by its unique identifier. Use when you need to access agent configuration details.

Action Parameters

agent_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get agent versions

Description

Tool to retrieve all versions of a specific agent. Use when you need to view version history or access previous configurations of an agent.

Action Parameters

agent_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Retrieve details of a specific chat agent

Description

Retrieve details of a specific chat agent by its unique identifier. Use when you need to access chat agent configuration details.

Action Parameters

agent_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get all versions of a chat agent

Description

Retrieve all versions of a specific chat agent by its unique identifier. Use when you need to access version history of a chat agent.

Action Parameters

agent_id
stringRequired

Action Response

data
arrayRequired
error
successful
booleanRequired

Tool Name: Get concurrency

Description

Retrieves the current concurrency and concurrency limits for the organization. Use when you need to check concurrent call capacity and availability.

Action Parameters

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get Conversation Flow

Description

Retrieve details of a specific Conversation Flow by its ID. Use when you need to fetch conversation flow configuration including nodes, version, and settings.

Action Parameters

conversation_flow_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get conversation flow component

Description

Retrieves a shared conversation flow component by its unique identifier. Use when you need to fetch details of a specific conversation flow component.

Action Parameters

conversation_flow_component_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Get knowledge base

Description

Retrieve details of a specific knowledge base by its unique identifier. Use when you need to access knowledge base configuration including name, status, sources, and refresh settings.

Action Parameters

knowledge_base_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Retrieve details of a specific Retell LLM

Description

Retrieve details of a specific Retell LLM Response Engine by its unique identifier. Use when you need to access LLM configuration including model settings, prompts, tools, states, and knowledge base configurations.

Action Parameters

llm_id
stringRequired
version

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Import phone number

Description

Tool to import a phone number from custom telephony and bind agents to it. Use when you need to integrate an existing phone number with Retell AI's system for handling inbound and outbound calls.

Action Parameters

inbound_agent_id
inbound_agent_version
inbound_allowed_countries
inbound_webhook_url
nickname
outbound_agent_id
outbound_agent_version
outbound_allowed_countries
phone_number
stringRequired
sip_trunk_auth_password
sip_trunk_auth_username
termination_uri
stringRequired
transport

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: List agents

Description

Retrieves a list of all agents associated with the account.

Action Parameters

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: List all chats

Description

Tool to retrieve a list of all chats associated with the account. Use when you need to view chat history or analyze past conversations.

Action Parameters

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: List all phone numbers

Description

Retrieves a list of all phone numbers associated with the account.

Action Parameters

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: List conversation flow components

Description

Retrieves a list of all shared conversation flow components. Use when you need to access reusable conversation flow building blocks that can be referenced across multiple conversation flows.

Action Parameters

Action Response

data
arrayRequired
error
successful
booleanRequired

Tool Name: List conversation flows

Description

Tool to list all conversation flows that can be attached to an agent. Use when you need to retrieve available conversation flows for agent configuration.

Action Parameters

Action Response

data
array
error
successful
booleanRequired

Tool Name: List knowledge bases

Description

Tool to retrieve all knowledge bases associated with the account. Use when you need to list or view all available knowledge bases with their details including IDs, names, statuses, sources, and refresh settings.

Action Parameters

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: List Retell LLMs

Description

Tool to list all Retell LLM Response Engines that can be attached to an agent. Use when you need to retrieve available LLM configurations including their IDs, models, prompts, tools, and other settings.

Action Parameters

limit
Defaults to 1000
pagination_key
pagination_key_version

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: List voices

Description

List all voices available to the user. Returns voice details including voice_id, name, provider, accent, gender, age, and preview audio URL.

Action Parameters

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Publish agent

Description

Publishes the latest version of the agent and creates a new draft agent with a newer version. Use when you need to deploy an agent to production.

Action Parameters

agent_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Publish chat agent

Description

Publishes the latest version of the chat agent and creates a new draft chat agent with a newer version. Use when you need to deploy a chat agent to production.

Action Parameters

agent_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Retrieve call details

Description

Tool to retrieve call details with filtering options. Use when you need to fetch call records, analyze call history, or monitor call performance.

Action Parameters

filter_criteria
limit
Defaults to 50
pagination_key
sort_order
Defaults to descending

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Retrieve call details by id

Description

Retrieve call details by ID for web/phone calls, including type, agent ID, status, timestamps, and web access token; covering responses from success to server errors.

Action Parameters

call_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Retrieve phone number details

Description

Tool to retrieve details of a specific phone number from Retell AI. Use when you need to get information about a phone number including its type, timestamps, SIP configuration, and SMS settings. The phone number should be provided in E.164 format.

Action Parameters

phone_number
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Retrieve details of a specific voice

Description

Tool to retrieve details of a specific voice by its voice_id. Use when you need information about a specific voice including its name, provider, accent, gender, age, and preview audio URL.

Action Parameters

voice_id
stringRequired

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Search community voice

Description

Search for community voices from voice providers. Use when you need to find voices by name, description, or ID, optionally filtering by provider.

Action Parameters

search_query
stringRequired
voice_provider

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update agent

Description

Update an existing agent's latest draft version. Use when modifying agent configuration, voice settings, or behavior parameters for a Retell AI agent.

Action Parameters

agent_id
stringRequired
agent_name
enable_backchannel
end_call_after_silence_ms
language
max_call_duration_ms
response_engine
voice_id
voice_model
voice_speed
voice_temperature
volume
webhook_url

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update chat agent

Description

Update an existing chat agent configuration. Use when modifying chat agent settings, response engine, or behavior parameters.

Action Parameters

agent_id
stringRequired
agent_name
auto_close_message
data_storage_setting
end_chat_after_silence_ms
is_public
language
response_engine
objectRequired
webhook_url

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update conversation flow

Description

Update an existing conversation flow configuration. Use when modifying conversation flow settings such as model parameters, nodes, tools, or prompt templates.

Action Parameters

begin_after_user_silence_ms
components
conversation_flow_id
stringRequired
default_dynamic_variables
global_prompt
is_transfer_llm
kb_config
knowledge_base_ids
mcps
model_choice
model_temperature
nodes
start_node_id
start_speaker
tool_call_strict_mode
tools
version

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update conversation flow component

Description

Update an existing shared conversation flow component by its ID. Use when you need to modify component properties like name, nodes, tools, or MCP configurations.

Action Parameters

begin_tag_display_position
conversation_flow_component_id
stringRequired
mcps
name
nodes
start_node_id
tools

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update phone number configuration

Description

Update agent bound to a purchased phone number. Use when you need to change the agent configuration, nickname, webhook URLs, or SIP settings for an existing phone number.

Action Parameters

auth_password
auth_username
inbound_agent_id
inbound_agent_version
inbound_allowed_countries
inbound_webhook_url
nickname
outbound_agent_id
outbound_agent_version
outbound_allowed_countries
phone_number
stringRequired
termination_uri
transport

Action Response

data
objectRequired
error
successful
booleanRequired

Tool Name: Update Retell LLM Response Engine

Description

Update an existing Retell LLM Response Engine by its unique identifier. Use when you need to modify LLM configuration, prompts, tools, conversation flows, or model settings for an existing response engine.

Action Parameters

begin_after_user_silence_ms
begin_message
default_dynamic_variables
general_prompt
general_tools
kb_config
knowledge_base_ids
llm_id
stringRequired
mcps
model
model_high_priority
model_temperature
s2s_model
start_speaker
starting_state
states
tool_call_strict_mode
version

Action Response

data
objectRequired
error
successful
booleanRequired