Overview
A lead capture form appears inside the chat and asks the visitor for their contact details. You choose which details to ask for, whether the visitor has to fill it in, and when it appears.
To set it up, open your chat widget's settings, go to the Form tab, and turn on Enable Lead Capture Form.
Required or Optional
The form is required by default. Turn on Optional to let visitors skip it.
Required (Optional off): the chat box is locked until the visitor submits the form. Your agent doesn't receive or reply to anything before then. When they submit, CloseBot creates the contact in your CRM with the details they entered.
Optional (on): the form appears, but the visitor can ignore it and keep chatting, and your agent replies as normal. If they never fill it in, the contact is added to your CRM as "Guest Visitor" with no email or phone. If they fill it in later, the contact is updated with their details.
The preview next to the settings updates as you change this, so you can see what visitors will get. With a required form the preview's chat box is greyed out.
Form Message
An optional chat message shown just above the form, after your welcome message (set in Chat Settings). For example: "Before we chat, we'd love to know a bit about you."
Leave it blank and the form appears straight after the welcome message.
Fields
The form can ask for First Name, Last Name, Email and Phone. All four are switched on when you first enable the form. For each field you can set:
Show: include the field on the form. At least one field must stay on.
Required: the visitor can't submit the form without filling it in. Required fields show a * on the form.
Placeholder: the hint text inside the empty box, such as "Your best email".
Phone also has a Default country, which sets the country code the phone box starts with (US +1 unless you change it). Visitors can pick a different country on the form.
CloseBot checks that emails and phone numbers look valid before the form is sent.
Submit button
Use Submit Button Text to change the button label, for example "Start chatting". If you leave it blank, the button says "Submit".
After the visitor submits, the form shrinks to a short "Thanks, got it!" confirmation and the chat carries on.
When to show the form
Immediately: the form appears as soon as the visitor opens the chat, under your welcome message.
After first message: the visitor types their question first, and the form appears once they send it. Some customers see more form completions this way, because the visitor has already started the conversation.
With After first message, the Optional setting still applies:
Required: the visitor's first message stays in the chat, but your agent gets it only after they submit the form. The agent then replies to it.
Optional: your agent replies to the first message straight away, and the form stays in the chat for the visitor to fill in whenever they like.
Returning visitors
Once a visitor submits the form, they won't see it again on that widget in the same browser. If they left without submitting, the form shows again when they come back.
To test the form again yourself, open your site in a private or incognito window.
Next Steps
Next, use the Target (Page Filter) Settings to choose which pages your widget appears on.




