| AI Integration with ElevenLabs |
 |
When it comes to integrating AI voice agents, ElevenLabs is a nice provider. There is a free account to start with, and integration into PBXes and websites is very easy.
As a result you can have nearly the same voice agent on a website and on a phone line. When asked non standard questions it can hand over to whatsapp chat - when opened from web, or to a phone extension or queue - when the customer has called your company via phone.
All you need to do are the following steps:
- Add a trunk with username "youraccountname-eleven", no password, "sipserver sip.rtc.elevenlabs.io:1001", register "no".
- Add an outbound route to that trunk for a phone number you choose in international format starting with "+".
- Create a classic extension which dials to that phone number. All inbound routes you map to that extension will be answered by the AI agent.
- In the ElevenLabs dashboard unter phone numbers click "import number". Enter that phone number and assign it to your voice agent.
- Within the voice agent you can add a tool "transfer to number". It should use the "SIP REFER" method. Enter sip:didnumber@pbxes.org as SIP URI. didnumber should be one of your trunk names to make your PBX direct to the right person or queue. The AI will then be able to forward calls to a human when needed. The called SIP extension will show the customer's phone number as calling party. In the inbound routes for your AI agent (step 2) you can set a CID name prefix. When a call gets forwarded from AI you will see that prefix in front of the number on your phone extension.
|