> For the complete documentation index, see [llms.txt](https://help.waghl.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.waghl.com/features/elevenlabs/tts.md).

# TTS- Text to Speech

{% embed url="<https://youtu.be/2W42wGVAJS0>" %}

**Identifying Webhook URL for converting text to speech**\
\
Webhook URLs may vary depending on the WhatsApp gateway you’re using.

To find the correct webhook URL for your GHL subaccounts, switch to the subaccount and navigate to...\
&#x20;\
**Settings- Phone Numbers - Advanced Settings**&#x20;

<table><thead><tr><th width="271">SMS Provider Name</th><th>URL</th></tr></thead><tbody><tr><td><strong>WhatsApp Gateway</strong></td><td><code>https://trigger.apimerger.com/tts</code></td></tr><tr><td><strong>WhatsApp Gateway 1</strong></td><td><code>https://trigger1.apimerger.com/tts</code></td></tr><tr><td><strong>WA1 Connector</strong> </td><td><code>https://wa1.apimerger.com/tts</code></td></tr><tr><td><strong>WA2 Connector</strong></td><td><code>https://wa2.apimerger.com/tts</code></td></tr></tbody></table>

**Custom Data Keys**

| Custom Data   | Description                                             |
| ------------- | ------------------------------------------------------- |
| **voice\_id** | Your ElevenLabs voice id                                |
| **message**   | Your message, which you want to convert to voice note   |
| **api\_key**  | Optional, if you don't want to put in WAGHL admin panel |

### How to Use ElevenLabs IO Text-to-Speech (TTS) with Waghl

Welcome! This guide walks you through integrating ElevenLabs IO's powerful Text-to-Speech (TTS) service with Waghl, enabling your workflows to send voice notes effortlessly.

#### What You Need:

* An active ElevenLabs IO subscription
* Access to your Waghl dashboard
* GoHighLevel (GHL) account

***

### Step 1: Generating Your ElevenLabs API Key

1. Visit the [ElevenLabs IO website](https://elevenlabs.io/).
2. Sign in or register for a new account, ensuring your account has sufficient credits.
3. Navigate to the *'API Keys'* section.
4. Click '**Create API Key**', set necessary permissions, and then click '**Create**'.
5. Copy your newly generated API key and securely store it, as you won't be able to retrieve it later.

***

### Step 2: Adding the API Key to Waghl

1. Log into your *WAGHL dashboard*.
2. Go to the *'Users'* tab.
3. Locate your location ID and click on the pencil (edit) icon.
4. Paste your ElevenLabs API key into the designated API key field.
5. Click *'Update'* to save your settings.

***

### Step 3: Obtaining Your Voice ID from ElevenLabs

1. Return to the ElevenLabs IO website.
2. Click on *'Voices'* to browse available voices. You can either:
   * Select from pre-cloned voices: click the three dots (⋮) next to your chosen voice and copy the voice ID.
   * Clone your own voice by navigating to the *'My Voices'* tab, selecting your custom voice, clicking the three dots (⋮), and copying the voice ID.

***

### Step 4: Setting Up Your Automation in GoHighLevel

1. Log into your *GHL sub-account*.
2. Create or edit an *Automation Workflow*:
   * Use a trigger of your choosing
   * Action: Select '**Webhook**'.
   * Insert your specific Webhook URL (available in the video description).
   * In the custom fields:
     * Enter your copied *voice ID* in the Voice\_id field.
     * Type the *message you want converted to speech* in the message field.
3. Click *'Save Action'* and then save your workflow.
4. Perform a test to confirm functionality.

***

### Alternative: Using GHL Premium Text-to-Speech

If you'd prefer not to configure your own webhook:

1. Within GHL Automations, select the *'Premium Actions'* option.
2. Choose the *'Text-to-Speech'* action.
3. Enter your message in the provided message body.
4. Select a voice from the pre-cloned options or use a voice you've cloned.

***

### Optional: Alternative API Key Method

If you prefer not to store your ElevenLabs API key directly in the Waghl admin panel, you can optionally:

* Include the API key directly within your webhook custom data fields.
* Simply add an additional field labeled appropriately (e.g., *'api\_key'*) and insert your API key there.

This method provides greater flexibility if preferred.

***

### Final Check: Reviewing Voice Notes

Navigate back to your GHL *'Conversations'* section to review and manage your generated voice notes.

***

Congratulations! You've successfully integrated ElevenLabs IO Text-to-Speech with Waghl.

Thank you for using this guide!
