# STT - Speech to Text

{% embed url="<https://youtu.be/oZ_j6akdvjY>" %}
ElevenLabs - STT
{% endembed %}

**Identifying Webhook URL for sending Voice Notes**\
\
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/stt</code></td></tr><tr><td><strong>WhatsApp Gateway 1</strong></td><td><code>https://trigger1.apimerger.com/stt</code></td></tr><tr><td><strong>WA1 Connector</strong> </td><td><code>https://wa1.apimerger.com/stt</code></td></tr><tr><td><strong>WA2 Connector</strong></td><td><code>https://wa2.apimerger.com/stt</code></td></tr></tbody></table>

**Custom Data Keys**

| Custom Data     | Value                                                   |
| --------------- | ------------------------------------------------------- |
| **voice\_note** | {{message.attachments}}                                 |
| **api\_key**    | Optional, if you don't want to put in WAGHL admin panel |

#### Using ElevenLabs Speech-to-Text with Waghl: Step-by-Step Guide

Welcome to our guide on integrating ElevenLabs' powerful Speech-to-Text (STT) feature with Waghl. Follow these simple steps to automatically transcribe voice notes in your workflow.

#### Prerequisites:

* An active ElevenLabs IO subscription
* Access to your Waghl admin panel
* Access to your GoHighLevel account

***

### Step 1: Obtaining Your ElevenLabs API Key

1. *Visit the* [*ElevenLabs IO*](https://elevenlabs.io/) *website*.
2. Click on *'Go to app'*. If you're new, create an account; if you're an existing user, log in.
3. Ensure your account has sufficient tokens.
4. Navigate to *'API Keys'* in your ElevenLabs dashboard.
5. Click *'Create'* if you don't already have an API key.
6. *Copy and securely store* this API key, as you won't be able to retrieve it again.

***

### Step 2: Integrating ElevenLabs API Key with Waghl

1. Log in to your WAGHL *admin panel*.
2. Navigate to the *User Section* and locate your *Location ID*.
3. Click the *Edit icon* next to your Location ID.
4. Enter your *ElevenLabs API Key* in the appropriate section.
5. Click *'Update'*.

***

### Step 3: Setting up GoHighLevel Custom Fields

1. Log in to your *GoHighLevel account*.
2. Navigate to *Contacts* and click the *Settings* icon.
3. Select 'Add Field', then choose 'Multi-line Field'.
4. Name this field strictly *'**STT**'* (case-sensitive).
5. Assign the field to any groups, such as  *'General Info'* group.
6. Click *'Save'*.

***

### Step 4: Creating the Automation Workflow

1. Within GoHighLevel, navigate to *Automation Workflows*.
2. Create a new workflow:
   * Trigger: Set to '**Customer replied**'.
   * Add filter: Messages containing the exact phrase *'voice note'* along with the specific emoji used by Waghl.
3. Add a *Webhook Action*:
   * Insert the provided webhook URL (found in the video description).
   * Under *Custom Data, create one field named 'voice\_note'* (no extra spaces).
   * Set the variable to *'{{message.attachments}}'*:
     * Click the stack button → navigate to Messages → select *'Message Attachments'*.
4. Save the action and finalize the workflow.

***

### Step 5: Testing the Integration

1. From a test contact, send a voice note message to the connected number.
2. Verify the following:
   * The message appears correctly on your platform.
   * The transcription automatically populates in the previously created *'STT'* custom field.

Once confirmed, your integration is successfully configured.

***

### 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.

***

You are now ready to leverage automated Speech-to-Text capabilities with ElevenLabs and Waghl for seamless voice note transcriptions.

Thank you for following along!\
\
**Tips for Efficiency**

* Practice sending voice notes to become more proficient in using this feature.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.waghl.com/features/elevenlabs/stt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
