Skip to main content

How to send calls to an Eleven Labs agent

Learn how to configure a call flow to send calls to your agent made on Eleven Labs

Updated yesterday

Requisites:

  1. You will need a phone number ready to receive calls. You can learn how to acquire one here.

  2. A new call flow, or modify an existing one. You can learn how to create a call flow here.

On Eleven Labs

  • Select an existing number (A), or import a new number (B).

  • For importing a new number, select From SIP trunk

  • Select a label and your agent's number. You can use the phone number that you acquired on 2Chat, or any other number you have already configured on Eleven Labs.

  • Save the configuration.

Keep the number in international format (E.164). No spaces between number.

  • Go back to the list of numbers, and select your new number again, then configure your Eleven Labs agent as the default handler.

On 2Chat

  • Add a new call flow, or edit an existing one.

  • Click on the plus button (1), and then select Send to Eleven Labs (2)

  • Configure the Eleven Labs' agent number you configured in the previous step, and select any of the default SIP URIs Eleven Labs provides.

  • Connect the new call flow component directly to the trigger component, or build any flow you need based on your use case.

Example 1

This flow will send all incoming calls to your new Eleven Labs agent. You will be able to retrieve the call recording on 2Chat after the call completes.

Example 2

This flow will receive a call and present the caller with an automated recording (IVR) giving them instructions.

  • If they press 1, they will be redirected to the Eleven Labs agent. If the agent succeeds in taking the call, a WhatsApp group message will be sent to notify of this event. If not, the call will be forwarded to an external number.

  • Any other digits or no digits pressed will send the call to an external number (call forwarding).

Did this answer your question?