# Enhance Chatbot with ElevenLabs AI Voice Synthesis

> **Who can use this Card?**
>
> * Gallabox Users having permission to either build and deploy bots or manage bots.
> * Available on Pro Plan.

### Overview

Integrating ElevenLabs with Gallabox enhances customer service by enabling personalized voice messages via ElevenLabs' technology on Gallabox. This combination improves engagement, efficiency, and scalability in communication, elevating the customer experience.

### Connect ElevenLabs

1. Under Connections, click on ElevenLabs to start the connection.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FixGBt0dlgn3RC6K0JoKi%2FElevenLabs%20Connector.gif?alt=media&#x26;token=55e53f35-0783-4c48-8072-1a080489ae04" alt=""><figcaption></figcaption></figure>

2. Once you click on **ElevenLabs Connector,** you will have the **Action (Text to Speech).** Click on the Action and you will be asked to either create a New Connection or Select from an existing connection.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FiBwEclsLBb16LYwCABZR%2FCreate%20Connection.png?alt=media&#x26;token=62cb284f-02bf-4cab-80b9-e97333c04653" alt=""><figcaption></figcaption></figure>

3. To "**Add New Connection**", you will have to add the connection name and your ElevenLabs API Key. Once you add the API Key, click on "**Create Connection**" to create a new ElevenLabs connection.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FRswg9Rd1lhayztwHpUkv%2FAction%20-%20Text%20to%20speech.gif?alt=media&#x26;token=f97781e8-7016-44cd-a7bb-463d561d1889" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
To get the API key, go to your ElevenLabs Account -> Profile -> Profile + API Key -> Copy Key.

<img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FVJwWWzunTqAbXQo3JO8C%2FElevenLabs%20-%20API%20Key.gif?alt=media&#x26;token=ee57fce4-06ba-4fda-b91b-c495f928270b" alt="" data-size="original">
{% endhint %}

### Using the ElevenLabs Connector

1. The moment you click on **Create Connection**, you will be taken to the Action - **Text to Speech.**&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FnwNXD2bLcJpVNXMw3JVK%2FCreate%20Connection%20-%20ElevenLabs.gif?alt=media&#x26;token=e9032311-bfcb-408e-8e25-c3958a321432" alt=""><figcaption></figcaption></figure>

2. In this action, we have 2 mandatory fields and 4 optional fields.&#x20;

<table><thead><tr><th width="257">Mandatory Field Name</th><th>Mandatory Field Description</th></tr></thead><tbody><tr><td><a href="https://elevenlabs.io/docs/voicelab/pre-made-voices">Select Voice</a></td><td>Choose from a variety of pre-made voices to personalize the speech output according to your preferences. To know more about the voice, refer the <a href="https://elevenlabs.io/docs/voicelab/pre-made-voices">link</a>.</td></tr><tr><td>Text</td><td>Enter the text which you would like to convert to speech. You can also use a variable to make it more personalized. </td></tr></tbody></table>

Now the optional fields,&#x20;

<table><thead><tr><th width="262">Optional Field Name</th><th>Optional Field Description</th></tr></thead><tbody><tr><td><a href="https://help.elevenlabs.io/hc/en-us/articles/17883183930129-What-models-do-you-offer-and-what-is-the-difference-between-them">Model</a></td><td>Each model has its unique features, strengths, and languages it can support. You can choose from these models: <a href="https://elevenlabs.io/docs/speech-synthesis/models#english-v1"><em><strong>English v1</strong></em></a><em><strong>,</strong></em> <a href="https://elevenlabs.io/docs/speech-synthesis/models#multilingual-v1"><em><strong>Multilingual v1</strong></em></a><em><strong>,</strong></em> <a href="https://elevenlabs.io/docs/speech-synthesis/models#multilingual-v2"><em><strong>Multilingual v2</strong></em></a><em><strong>, and</strong></em> <a href="https://elevenlabs.io/docs/speech-synthesis/models#turbo-v2"><em><strong>Turbo v2</strong></em></a><em><strong>.</strong></em></td></tr><tr><td>Optimize Streaming Latency</td><td><p>You can make the AI work faster, but it might not be as precise. You can use any one of the five settings for speeding it up:</p><p><strong>0 = Standard Speed:</strong> No changes, it works as usual.</p><p><strong>1 = A Bit Faster:</strong> Makes it around half as fast as the maximum speed setting.</p><p><strong>2 = Faster:</strong> Close to three-quarters of the maximum speed.</p><p><strong>3 = Fastest:</strong> The AI works at top speed.</p><p><strong>4 = Ultra Fast:</strong> The quickest setting, but it might not say numbers and dates correctly.</p></td></tr><tr><td>Similarity Boost</td><td>This determines how similar the AI's replicated voice should be to the original voice. <em><strong>Can be juggled between 0 -100%.</strong></em> </td></tr><tr><td>Stability</td><td>This controls how consistent the voice sounds and how much it varies with each new output. <em><strong>Under 30% may lead to instability</strong></em></td></tr></tbody></table>

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2F9gIyMJXn8m0gJNAscAKF%2FFields%20in%20ElevenLabs%20Connector.gif?alt=media&#x26;token=180d0a1e-e2a9-41c1-ab60-eb7fe8dc4887" alt=""><figcaption></figcaption></figure>

3. Fill up the details. The ElevenLabs connector is ready to be used in the bot-flow. You can add the success and failure conditions and create a proper flow around the Stripe Connector.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FwTZ7cH6mREL6ekElxBSB%2FAction%20in%20ElevenLabs.gif?alt=media&#x26;token=db38b30a-5376-4abc-972c-44adcb11396f" alt=""><figcaption></figcaption></figure>

The ElevenLabs Bot connector brings AI voice synthesis to your chatbot, making conversations more realistic with customizable voices. This creates a more engaging experience for users.
