# Playbook: get website form leads into Lead

Send a website demo form into Lead with a webhook URL, map its fields, pass UTM tags and a channel, then test and check the lead's attribution.

Source: https://support.rework.com/article/lead-playbook-website-form

> **In plain words:** This playbook connects a form on your website to Lead, so every submission becomes a lead with the right fields filled and the right channel. You will copy a private web address from Lead, give it to your form tool, test it, and check where the lead says it came from. New to the words? See [Lead basics: words to know](https://support.rework.com/article/lead-basics).

**Who this is for:** an admin or marketer who owns a website form (a demo request, a contact form, a download form). **What you'll have at the end:** a source in Lead that receives your form, fields mapped to lead fields, a correct channel and UTM tags on every lead, and a tested path from a click to a lead. **Time:** 30 to 45 minutes.

## Why this matters

Without a connection, form entries sit in an email inbox or a spreadsheet, and someone copies them over by hand. Entries get lost, and you can never tell which page or ad produced the best leads. A connected form fixes both. It also tells Lead where each visitor came from, so reports can compare Google Ads with Organic Search.

The scenario is Bright Dental, which sells dental software. Its pricing page has a demo request form. Visitors arrive from Google ads, Facebook posts and plain searches. You want each lead to show which one.

## Words used in this playbook

- **Webhook URL:** a private web address. A tool sends the form's answers to it, and Lead creates a lead.
  
- **Source:** one connected sender of leads. Each lead remembers its source.
  
- **Channel:** where a lead came from in marketing terms, such as Google Ads or Organic Search.
  
- **UTM tags:** extra labels at the end of a link, such as `utm_source=google`, that say how a visitor arrived.
  
- **Mapping:** telling Lead which lead field each form answer belongs in.
  
- **Autofill and Selective:** the two ways Lead treats answers you have not mapped. See Step 5.
  

## Before you start

- A lead service exists to receive the leads. See [Playbook: set up Lead from scratch](https://support.rework.com/article/lead-playbook-first-setup).
  
- You can manage that service. Settings pages need admin rights.
  
- You have decided which facts the form collects. Create any custom field you need first, such as "Practice type". See [Custom fields](https://support.rework.com/article/lead-custom-fields).
  
- You can edit the form in its tool, or you can ask the person who can.
  

## Steps

### Step 1: Pick the source type that fits your form

| 
Your form lives in

 | 

Choose this source

 | 

The channel is decided by

 |
| --- | --- | --- |
| 

Webflow, Unbounce, Wix, Ladipage or HighLevel

 | 

The source with that name, in the **Landing pages** group

 | 

The page's UTM tags and referring site (HighLevel needs `lead_channel`, see Step 6)

 |
| 

A tool that Zapier or Make can watch (Typeform, Google Sheets and so on)

 | 

**Zapier** or **Make**, in the **Connectors** group

 | 

The `lead_channel` value you send

 |
| 

Your own website code

 | 

**HTTP API**, in the **API** group

 | 

The `lead_channel` value you send

 |

For Bright Dental, the pricing page is built in Webflow, so you pick **Webflow**.

### Step 2: Connect the source and copy its address

1. In Lead, open **Settings** in the left sidebar, then **Lead sources**. Pick the lead service in the selector at the top.
   
2. On the **Source integrations** tab, click **Connect new**.
   
3. Click **Connect** on your source type.
   
4. Type a **Name** you will recognise in six months, such as "Website: pricing page demo". Click **Connect**.
   
5. Click the new source's name. On the **Details** tab, find **Endpoint** and copy the address. You can also use **Copy webhook URL** in the source's row menu.
   

> **Important:** The address holds a secret token. Anyone with it can create leads in your service. Do not post it on a public page or in a support ticket.

### Step 3: Give the address to your form tool

The **Details** tab shows setup tips for your builder at the top. In short:

- **Webflow, Wix, Unbounce, Ladipage, HighLevel:** in the form's settings, add a webhook that posts each submission to the address.
  
- **Zapier:** add a "Webhooks by Zapier" action, choose POST and paste the address.
  
- **Make:** add an "HTTP" module with "Make a request", choose POST and paste the address.
  
- **Your own code:** send a POST with a JSON body. Give your developer [Website forms, webhooks and Zapier](https://support.rework.com/article/lead-webhooks), which has the exact shape.
  

Every lead needs at least a name, an email, a phone number or an external id (your own id for the entry, sent as `ext_id`). A lead with none of these is rejected.

### Step 4: Pass the UTM tags and a channel

Lead can only report a channel if the form sends the evidence. There are two ways, and you can use both.

**UTM tags.** Your ad and email links should end with tags, for example: `https://brightdental.example/pricing?utm_source=google&utm_medium=cpc&utm_campaign=spring-clinics`

Add hidden fields to the form named `utm_source`, `utm_medium`, `utm_campaign`, `utm_term` and `utm_content`, filled from the link the visitor used. Most builders have a setting for this. Ask your builder's help if you cannot find it. Landing page sources read these tags, and the referring site, to pick the channel.

**A channel code.** For HTTP API, Zapier, Make and HighLevel, add a field named `lead_channel` with a channel code. Examples are `GOOGLE_ADS`, `FB_ADS`, `ORGANIC_SEARCH`, `TRADE_SHOW` and `DIRECT`. Without it the lead's channel is **Unknown**. The code for each channel is shown next to its name in Lead, under **Settings**, **Lead sources**, **Source channels**. See [Channels and attribution](https://support.rework.com/article/lead-channels-and-attribution).

If a Zapier or Make flow reads a sheet, add a column for `lead_channel` and fill it by hand or with a rule in the tool.

### Step 5: Submit a test entry and map the fields

1. Open your live page, with tags in the link: add `?utm_source=google&utm_medium=cpc` to the page address.
   
2. Fill in and submit the form with a made-up person, for example Mai Tran, mai@example.com.
   
3. In Lead, open the source, then click **Transform fields**. Lead lists the answers it received.
   
4. Click **Auto Map Fields**. A message tells you how many fields were mapped.
   
5. At the top, check **Incoming fields**:
   
   - **Autofill** (the default): an answer fills a lead field on its own when their names match. Your own mappings win.
     
   - **Selective**: only the answers you map are written to lead fields.
     
   
   Keep **Autofill** unless the form uses names that match the wrong field.
   
6. For an answer with no row, such as "Practice type", click its unmapped row and choose **\+ New field** to create the lead field right there. Or pick an existing field. If the answer has a fixed list of choices, the new field becomes a dropdown.
   
7. If your dropdown options differ from the form's values, open the row and use **Add value mapping**. For example, pair "Under 5 chairs" with the option Small.
   
8. Click **Validate**. A message says "Looks good" when there is nothing to fix.
   
9. Click **Save**. A message says "Transform saved".
   

See [Mapping a source's fields](https://support.rework.com/article/lead-mapping-source-fields). Changes affect new leads only.

### Step 6: Test again and check the channel

1. Submit the form once more with the same tags.
   
2. In Lead, open the lead service's list. The new lead is at the top. Open it.
   
3. Check that every field you mapped is filled.
   
4. Find the **Source & Attribution** panel. Check the **Source** (your source's name), the **First touch** and **Last touch** channel, and the UTM values.
   
5. If you expected Google Ads and see something else, read "Troubleshooting" below.
   

HighLevel passes UTM values but does not send `lead_channel`. Its leads can show **Unknown**. Add `lead_channel` in HighLevel if you need a channel.

## Check it worked

- The test lead exists in the right lead service, with a name and email.
  
- Your custom fields are filled, not empty.
  
- **Source & Attribution** shows your source and a channel other than **Unknown**.
  
- The source row on **Lead sources** says **All fields mapped**.
  
- Submitting the same entry twice, with the same `ext_id`, does not create a second lead.
  

For a developer test, the reply to a saved lead is `{"ok": true, "lead_id": "...", "deduped": false}`. A rejected lead still gets a 200, with `"ok": false`, so always check `ok`.

## Troubleshooting

| 
Problem

 | 

Why it happens

 | 

What to do

 |
| --- | --- | --- |
| 

The tool reports a 404.

 | 

The address is wrong, someone regenerated the token, or the source is **Paused**.

 | 

Copy the address again from the source. Click **Reconnect** if it is paused.

 |
| 

The tool reports a 409.

 | 

The lead service is **Inactive**.

 | 

Set the service to **Active** on its **General** tab.

 |
| 

Success, but no lead appears.

 | 

The entry had no name, email, phone or external id, or it went to another service.

 | 

Check for `"ok": false`. Check the service named in the source's **Information**.

 |
| 

The lead appears with empty fields.

 | 

The form's answer names do not match any lead field.

 | 

Open **Transform fields** and map them.

 |
| 

The channel is **Unknown**.

 | 

HTTP API, Zapier, Make and HighLevel need a `lead_channel` field.

 | 

Add `lead_channel` to the form or the tool.

 |
| 

The channel is **Direct Traffic** but the visitor came from an ad.

 | 

The UTM tags or click id never reached the form.

 | 

Check the hidden fields and that the link carries the tags.

 |
| 

You see no test lead at all.

 | 

You are viewing demo data. Webhook leads always go to real data.

 | 

Leave demo mode.

 |

More fixes: [Fix it by symptom](https://support.rework.com/article/lead-fix-by-symptom) and [Common errors and fixes](https://support.rework.com/article/lead-common-errors).
