Integration with ElevenLabs

Setup guides / ElevenLabs

ElevenLabs is a technology company specializing in artificial intelligence solutions for working with voice and text, including speech generation, voice agents, and audio content.

Incoming calls from Zadarma virtual numbers can be forwarded to your ElevenLabs so that they are answered by the AI agent. The AI agent can also make outgoing calls.

Integration capabilities when using the Zadarma virtual PBX
  • A voice AI agent as one of the operators in the virtual PBX.
  • Add the AI agent as the last member in the call queue, so it will handle the call if all other human team members are busy.
  • During non-working hours or holidays, the AI agent can answer calls instead of the voicemail.
  • You can transfer a call to the AI agent's extension just like you would to a regular extension of your colleague.

1. Log in to your ElevenLabs account and got to the AI agent (Conversational AI) section.

If you don't have a voice agent yet, create one. Select the agent type, for example Support agent, and click the Create agent button.

Create agent

Configure the voice agent for your task, choose the language, speech rate, upload the knowledge base, and the welcome message.

2. Go to the Phone numbers section and click the Import number - From SIP Trunk button to add a virtual number.

Enter the following parameters.

  • Label - number name, for example Zadarma, or your virtual number.
  • Termination URI - sip.zadarma.com.
  • SIP Trunk Username - Your sip-number from your personal account.
  • SIP Trunk Password - Your sip-number password, which can be generated here.
  • Label - number name, for example Zadarma, or your virtual number.
  • Termination URI - pbx.zadarma.com.
  • SIP Trunk Username – Your PBX extension from your personal account.
  • SIP Trunk Password - Your extension password, which can be generatedhere.

Import number

Import number

Click the Import button to save the settings. Then, go to the newly added number and select the voice agent that will receive incoming calls.

Import number

Import number

To make an outbound call, click "Outbound call" and enter the number in international format with a +.

3. Call routing to ElevenLabs

In the previous step, we imported a virtual number into ElevenLabs. In the Origination URI parameter, there was an address where the calls should be sent:

  1. In Zadarma, open the section Settings → Virtual Phone Numbers.
  2. Next to your number, click on the ⚙ (gear) icon.
  3. Open the “External Server” tab.
  4. Enable the "External Server (SIP URI)" option.
  5. In the appeared field, enter 15551111111@sip.rtc.elevenlabs.io:5060;transport=tcp

    - where instead of the 15551111111 will be your virtual number.

  6. Click "Save".
  1. In Zadarma, go to the section My PBX → Extensions.
  2. In the extension settings, next to the parameter "Call forwarding and voicemail" click "Enable".
  3. Select the call forwarding condition, for example "Always active".
  4. In the parameter "Call forwarding for" select "External server (SIP URI)".
  5. In the appeared field, enter 15551111111@sip.rtc.elevenlabs.io:5060;transport=tcp

    - where instead of the 15551111111 will be your virtual number.

  6. Click "Save".

The setup for incoming calls is complete.