ElevenLabs Agents

Place phone calls with ElevenLabs voice agents

Usage Instructions

Have an ElevenLabs voice agent call a phone number through Twilio or a SIP trunk, pass the call its details as dynamic variables, and get back the transcript, summary, and extracted data when the call ends. Also saves call recordings as MP3 files, reads past conversations, and lists the account phone numbers.

Tools

elevenlabs_agents_outbound_call

Have an ElevenLabs agent place a phone call through Twilio or a SIP trunk, and optionally wait for the transcript and extracted data.

Input

ParameterTypeRequiredDescription
apiKeystringYesElevenLabs API key
agentIdstringYesID of the ElevenLabs agent that handles the call
agentPhoneNumberIdstringYesID of the ElevenLabs phone number the call is placed from
toNumberstringYesNumber to call in E.164 format (e.g. +14155551234)
providerstringNoTelephony provider of the phone number: twilio (default) or sip_trunk
dynamicVariablesjsonNoValues for the {{variables}} in the agent prompt, first message, and tools, as a JSON object
waitForCompletionbooleanNoWait for the call to end and return the transcript and analysis. Defaults to true.
maxWaitSecondsnumberNoLongest time to wait for the call to finish, 30 to 3600 seconds. Defaults to 900.

Output

ParameterTypeDescription
conversationIdstringElevenLabs conversation ID for the call
callSidstringTwilio call SID, or the SIP call ID for SIP trunk calls
messagestringMessage ElevenLabs returned when placing the call
completedbooleanWhether the call finished before the block returned
conversationobjectThe finished conversation: transcript, summary, and extracted data

elevenlabs_agents_get_conversation

Get an ElevenLabs agent conversation: status, transcript, summary, and extracted data.

Input

ParameterTypeRequiredDescription
apiKeystringYesElevenLabs API key
conversationIdstringYesElevenLabs conversation ID

Output

This tool does not produce any outputs.

elevenlabs_agents_get_recording

Save the recording of an ElevenLabs agent conversation as an MP3 file.

Input

ParameterTypeRequiredDescription
apiKeystringYesElevenLabs API key
conversationIdstringYesElevenLabs conversation ID

Output

ParameterTypeDescription
recordingfileConversation recording (MP3)
recordingUrlstringURL of the saved recording

elevenlabs_agents_list_conversations

List ElevenLabs agent conversations, newest first, optionally for one agent.

Input

ParameterTypeRequiredDescription
apiKeystringYesElevenLabs API key
agentIdstringNoOnly list conversations handled by this agent
callSuccessfulstringNoOnly list conversations with this evaluation: success, failure, or unknown
pageSizenumberNoConversations per page, 1 to 100. Defaults to 30.
cursorstringNoCursor from a previous page to read the next one

Output

ParameterTypeDescription
conversationsarrayConversations, newest first
↳ conversationIdstringConversation ID
↳ agentIdstringAgent ID
↳ agentNamestringAgent name
↳ statusstringConversation status
↳ callSuccessfulstringsuccess, failure, or unknown
↳ startTimeUnixSecsnumberStart time in Unix seconds
↳ durationSecsnumberLength in seconds
↳ messageCountnumberNumber of messages
↳ summaryTitlestringShort title
↳ directionstringinbound or outbound
nextCursorstringCursor for the next page
hasMorebooleanWhether more conversations exist

elevenlabs_agents_list_phone_numbers

List the phone numbers in the ElevenLabs account with their IDs and assigned agents.

Input

ParameterTypeRequiredDescription
apiKeystringYesElevenLabs API key

Output

ParameterTypeDescription
phoneNumbersarrayPhone numbers in the account
↳ phoneNumberIdstringID to use as the agent phone number
↳ phoneNumberstringNumber in E.164 format
↳ labelstringLabel set in ElevenLabs
↳ providerstringtwilio or sip_trunk
↳ agentIdstringAgent assigned to inbound calls
↳ agentNamestringName of the assigned agent

On this page