# Ask for name and email before the chat starts

> Show a short form inside the chat window that asks for the visitor's name and email before the first message, choose how strict the email check is, and know what it costs in chats.

Source: https://www.wpbot.pro/help/chatbot-form-before-chat/  
Section: ChatBot › Leads, retargeting and integrations  
Updated: 2026-12-03

Yes, the chatbot can ask for the name and email before the chat starts. A short form opens inside the chat window, and the chat begins when the visitor clicks **Start chat**. It is off by default, because every question before the first answer stops some visitors from chatting.

Open **WPBot Pro → ChatBot → Leads & visitor details** and set **When to ask** to **Before the chat starts (a short form)**, or pick the preset **Leads first** ("A short form before the chat starts."). Click **Save**.

![Leads & visitor details, When to ask: the short form settings and the Preview panel showing the form](https://www.wpbot.pro/wp-content/uploads/2026/12/wpbot-docs-ld4-form-settings.jpg)

_The short form's settings under Before the chat starts, with the form in the Preview panel._

## What the visitor sees

1. The visitor opens the chat. The form covers the chat window, with your title (by default **Before we start** ) and one line of text (by default "Tell us who you are, so we can follow up if we get cut off.").
2. The fields: **Your name (optional)**  or **Your name**  (when the name is required), then **Your email** , then, when consent is on, the consent checkbox with a link to your privacy policy.
3. The **Start chat**  button, and under it, when you set a contact page, "Prefer not to share? **Contact us** " with a link to that page.
4. A problem with the address shows a short note under the fields, such as "That does not look like an email address." or "Did you mean name@gmail.com?". The chat stays closed until the address passes.
5. After **Start chat** , the form goes away, a small line shows who is chatting, such as "Chatting as Ann · ann@shop.com", and the chat starts. The chat now knows the visitor's name and email, so the greeting doesn't ask for them again.

![The chat window with the short form: title, text, name, email, consent checkbox, Start chat and Prefer not to share? Contact us](https://www.wpbot.pro/wp-content/uploads/2026/12/wpbot-docs-ld4-form-visitor.jpg)

_The short form in the chat window, before the chat starts._

![The chat window after Start chat, with the line Chatting as Ann · ann@shop.com](https://www.wpbot.pro/wp-content/uploads/2026/12/wpbot-docs-cb-form-chatting-as.jpg)

_After Start chat, the chat shows who the visitor is chatting as._

While you set up the form, the **Preview** beside the settings (on screens 1280 pixels wide or more) shows it with your title, text, name field, consent checkbox and contact link.

## The settings

The form settings show under **When to ask → Before the chat starts (a short form)**:

| Setting | What it does |
| --- | --- |
| **Form title** | The heading. Empty: **Before we start**. |
| **Form text** | The line under it. Empty: "Tell us who you are, so we can follow up if we get cut off." |
| **Link under the form: "Prefer not to share? Contact us" (your contact page; empty = no link)** | The address of your contact page, for visitors who don't want to leave their email. Empty: no link. |
| **To start the chat, the visitor needs** | How strict the email check is (below). |
| **Only on these pages (IDs, comma separated; empty = every page)** | Page IDs where the form shows (WPBot Pro). On other pages the chat starts without it, and the bot asks only when the visitor asks. |

Other parts of the screen also shape the form:

- **What to ask → Name:**  **Optional**  (the **Leads first**  preset makes it **Required** ), **Required** , or **Don't ask**  (email only).
- **Consent and checks → Show a consent checkbox:**  the consent checkbox on the form, with your **Consent text** .
- **Logged-in users skip the form,**  as the note under the setting says: the chat already knows their name and email.

### To start the chat, the visitor needs

| Choice | What passes |
| --- | --- |
| **Any email** | The address is checked for its format, typos, fakes and a domain that can receive email. A temporary address passes, and is saved as **Risky** (AI Marketing does not email it). |
| **A valid email (no made-up or temporary addresses)** | The same checks, and a temporary address is refused. The default. |
| **An email verified with a code** | After **Start chat**, the form asks for the 6-digit code sent to the address ("We sent a 6-digit code to … Type it here."), with **Verify**. **Resend code** works after 30 seconds, and **Use a different email** goes back. |

The form never accepts a made-up address, and it never asks **Use it anyway**: with **Any email** a temporary address goes through as **Risky**, and with the stricter choices it is refused ("That looks like a temporary address…").

The chat stays closed until the address passes. The code is valid for 10 minutes and allows 5 tries; a visitor can ask for 5 codes an hour. Once proved, the address is remembered in that browser for 30 days, so the visitor doesn't need a new code. How each check works is in [Verify visitors' email addresses](/help/chatbot-verify-email-addresses/).

Warning

**Fewer chats, more leads.** "Each stricter level means fewer chats." A form before the first message stops some visitors from chatting, and the stricter the check, the fewer chats you get. Use it on pages where a lead matters more than a quick answer, such as a quote or booking page. On other pages, **After the bot has helped** collects emails without losing chats.

## Where the leads go

Each address goes to AI Marketing's **ChatBot Subscribers** list with the source **Chat form** (`chat_form`). The name and email are also saved in [User Data](/help/chatbot-user-data/). The visitor becomes a newsletter subscriber only if they tick the consent box; otherwise they are kept as a lead. See [Leads and visitor details: when the chatbot asks for an email](/help/chatbot-leads-and-visitor-details/).

## Good to know

- **Works with page caching.**  The form runs in the visitor's browser, so cached pages keep working.
- **Once per visit.**  A visitor who filled in the form doesn't see it again in the same visit, and a known email never sees it at all.
- **Verify with a 6-digit code: For every address**  also asks for a code on the form, whatever **To start the chat, the visitor needs**  says.
- **One ask only.**  With the form on, the bot doesn't ask for the email again later in the chat, and the greeting skips the questions it already has answers for.
- **Test it as a visitor.**  Open your site in a private window, or type `reset` in the chat.

## Availability

In every edition, including WPBot Free, with the contact link, the preview and the "Chatting as" line. In WPBot Free the form shows on all pages; **Only on these pages** needs a WPBot Pro edition (Starter, Professional or Master).
