# Lead Collection Webhook URL

After the AI Agent has collected all of the data from the user, it will compile all of that data together and then send it in a JSON format to the URL provided.

Example:

<div align="left"><figure><img src="/files/hXGNYuB78RESnXAyzYv3" alt="" width="511"><figcaption></figcaption></figure></div>

When this data is received by the CRM or other platform, the data will be formatted so you can easily extract custom values and match them with their custom fields in the client's CRM.

<div align="left"><figure><img src="/files/mKdnag8X4xM9EU4iVBMq" alt="" width="563"><figcaption></figcaption></figure></div>

**1. Log into Agent Supply**

* Access your **Agent Supply** dashboard.
* Choose the specific **AI form or lead generation tool** you're using to collect user data.

**2. Open Integration Settings**

* Within Agent Supply, navigate to the **Integrations** or **Webhook/API** settings section for the form.
* This is where you configure where the lead data should go.

**3. Copy the Webhook URL from GoHighLevel**

* Open your **GoHighLevel** dashboard.
* Go to **Settings → Webhooks** (or **Triggers**, depending on setup).
* Create or retrieve a **Webhook URL** that will receive incoming lead data.
* Copy that URL.

**4. Paste Webhook into Agent Supply**

* Back in Agent Supply, paste the **GHL Webhook URL** into the webhook destination field.
* This tells Agent Supply to send new lead submissions to GoHighLevel.

**5. Map Form Fields**

* Match each form field from Agent Supply to its corresponding field in GoHighLevel:
  * First Name → First Name
  * Email → Email
  * Phone → Phone
  * And so on...
* This ensures the data is correctly placed in the GHL contact record.

**6. Submit a Test Lead**

* Use your Agent Supply form to submit a **test lead**.
* Then check your **GoHighLevel CRM** to verify the contact appears correctly with the expected data.

**7. Troubleshooting**

If the test doesn't work:

* Double-check the **Webhook URL** is correct and live.
* Make sure **field names are mapped properly**.
* Look at any **logs or error messages** in Agent Supply or GHL to diagnose issues.

***

#### 🔁 Why Use This Integration?

* **Saves Time**: No more copying and pasting lead info.
* **Improves Accuracy**: Automation avoids typos and delays.
* **Enables Automation**: As soon as the lead hits GoHighLevel, you can trigger emails, SMS, calls, or workflows.

[<br>](https://docs.stammer.ai/stammer.ai-docs/ai-features/leads-legacy/lead-collection-form-fields)


---

# 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://docs.agentsupply.ai/ai-features/leads-legacy/lead-collection-webhook-url.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.
