
When someone chats with your AI agent on your website, AiEngage CRM does not know who they are. They are just a “Visitor”. Ask visitor details fixes that. Before the visitor’s first message is sent, the chat widget shows a short form asking for their name, email address and phone number. As soon as they fill it in:
their details find their existing contact, or create a new one, in your CRM, so a website enquiry becomes a lead you can follow up;
the chat is linked to that contact, so answers the agent collects with Ask initial questions can be saved to it (see Data Mapping with Your AI Agent on Chat);
the browser remembers them, so a returning visitor is not asked again.
This guide shows you how to switch it on and choose the questions, what your visitors see, and where to find the contact afterwards. All screenshots use our sample agent GreenLeaf Dental Assistant for a fictional dental clinic.
Go to AI Agents → Dashboard. Click the ⋮ at the end of your agent’s row and choose Edit.

What this screenshot shows. The AI Agents Dashboard with the agent’s Actions menu open and Edit ringed.
We typed “GreenLeaf” in the search box above the list, so only our sample agent is shown.
The menu was opened from the ⋮ button at the end of the row, under ACTION.
If you are creating a new agent, the same section is available in the Create Agent wizard.
The agent editor opens. In the list of sections on the left, find Visitor Details under CONVERSATION.

What this screenshot shows. The section list on the left of the agent editor, with Visitor Details ringed. Its status reads Off.
Every section shows a short status. Off means the form is not shown to visitors yet.
The editor opens on General (highlighted in orange). Click Visitor Details to open it.

What this screenshot shows. The Ask visitor details section, with its main setting ringed: Ask for details before the chat starts.
The line under the section title explains the feature: “Website widget only. Ask who the visitor is before their first message, so their answers have a contact to be saved to.”
The hint under the setting: “Returning visitors aren’t asked again on the same browser.”
The switch on the right is grey, meaning off.

What this screenshot shows. The switch, ringed, with a red arrow pointing to it. Click it to turn the form on.
The switch turns orange when it is on, and the question settings appear below it.

What this screenshot shows. The section after switching it on, ringed. Three questions appear, each with its own switch.
Name: on, “Optional for the visitor.”
Email: on, “Required.”, with the box Visitor must enter an email address ticked.
Phone: on, “Optional for the visitor.”, with Visitor must enter a phone number not ticked.
These are the default settings: all three are asked, and only the email must be filled in.
The note at the bottom explains the rules (Step 4).
Each question has a switch (ask it or not). Email and phone also have a tick box (must the visitor fill it in?).

What this screenshot shows. The Name row, ringed.
The switch decides whether the form asks for the visitor’s name.
Name is always optional: there is no “must enter” box, because a name alone cannot identify anyone.
When the switch is off, the hint changes to “Not asked.”

What this screenshot shows. The Email row, ringed: asked, and required.
The switch asks for the email address.
Visitor must enter an email address (ticked) makes the field compulsory. The visitor cannot start the chat without it.
Untick it to make the email optional (only possible when the phone is required, see the next screenshots).

What this screenshot shows. The Phone row, ringed: asked, but optional.
The switch asks for the phone number.
Visitor must enter a phone number is unticked, so visitors can leave it empty.
Some combinations are not allowed. If a control cannot be changed, hover over it to see why.

What this screenshot shows. The Email row with the explanation that appears when you hover over its locked tick box, ringed.
The message reads: “At least one of email or phone must be required, so every visitor can be found or added as a contact. Make the phone required first to change this.”
Here the email is the only required field, so it cannot be unticked until the phone is required.
For our clinic we want both an email and a phone number, so we ticked Visitor must enter a phone number.

What this screenshot shows. The Phone row, ringed, now showing “Required.” with Visitor must enter a phone number ticked.
Now visitors must give both their email and their phone number. Name stays optional.
The rule | Why |
|---|---|
Ask for at least one of email or phone. | An email or a phone number is how the visitor’s contact is found or created. |
Make at least one of them required. | So every visitor who starts a chat can be matched to a contact. |
Name can be asked, but never required. | A name on its own matches nobody. |

What this screenshot shows. The note at the bottom of the section, ringed.
“Ask for at least an email or a phone number, and make at least one of them required: it’s how the visitor’s contact is found or created.”
“Typed details aren’t verified, so the agent won’t ask these visitors for an email or phone number in its questions.” In other words, the form is where contact details are collected; the agent’s own initial questions skip email and phone for these visitors.

What this screenshot shows. The Visitor Details item in the section list, ringed. Its status now reads On.
If your agent uses Ask Initial Questions (saving the visitor’s answers into CRM fields, see Data Mapping with Your AI Agent on Chat), Ask visitor details is switched on automatically and cannot be turned off. Without a contact, there would be nowhere to save those answers.

What this screenshot shows. The main setting, ringed, while Ask Initial Questions is on. The hint now reads: “Always on while “Ask initial questions” is on.”
The switch is on and greyed out: it cannot be switched off.
You can still choose which of name, email and phone to ask, and which are required.
If you later switch Ask Initial Questions off again, Ask visitor details goes back to how you had set it.
Changes take effect only after you publish. Click Preview & Publish in the section list to check your settings first.

What this screenshot shows. The summary card at the top of Preview & publish, with the new Asks visitor details tag ringed.
The tags list everything that is switched on for the agent; here 1 knowledge source and Asks visitor details.

What this screenshot shows. The Conversation card on Preview & publish, with the Ask visitor details row ringed.
It lists exactly what the form will ask: Name, Email (required), Phone (required).
When the form is switched off, this row reads Off.

What this screenshot shows. The orange Publish button at the bottom right, ringed, with a red arrow pointing to it.
Click it to save and publish the change.

What this screenshot shows. The confirmation message at the bottom right, ringed: “Agent published successfully”.
The form now appears for new visitors in the chat widget on your website. You do not need to change the code on your website.
Here is the whole experience from the visitor’s side, on the GreenLeaf Dental Clinic website.

What this screenshot shows. The clinic’s website with the agent’s chat button ringed at the bottom right.
The button shows the agent’s name, GreenLeaf Dental Assistant. The visitor clicks it to open the chat.

What this screenshot shows. The chat widget’s home screen, ringed.
The blue header shows the agent name and “We are here to help you!”.
The visitor clicks Send us a message (“We typically reply in a few minutes”) to start a chat.
No form yet: the visitor is only asked for details once they send their first message.
The visitor types their question (here: “Hi, I would like to book a teeth cleaning. What are your timings?”) and presses Enter. Instead of sending it straight away, the widget shows the form.

What this screenshot shows. The chat widget showing the visitor details form, ringed.
At the top: the agent’s welcome message, “Hi! I’m the GreenLeaf Dental assistant. How can I help you today?”.
The form starts with “Before we start, please answer a few quick questions:”
“What’s your email address?*”: the red * means required.
“What’s your name?”: optional, no star.
“What’s your phone number?*”: required, with a country picker (IN +91) in front of the number.
The blue Start Chat → button sends the details. The visitor’s question is sent straight after.

What this screenshot shows. The same form after clicking Start Chat with the fields empty, ringed.
Each required field shows “This field is required” in red, and the chat does not start.
The optional name field shows no error.

What this screenshot shows. The form filled in with sneha.patil@example.com, Sneha Patil and 9822071346, ringed.
The red “This field is required” lines from the empty attempt are still showing; they clear when the visitor clicks Start Chat.
The phone number is entered without the country code, because +91 is already selected.

What this screenshot shows. The Start Chat → button, ringed, with a red arrow pointing to it.

What this screenshot shows. The chat after the form, ringed. The form has gone and the agent has answered the visitor’s first question.
The reply gives the clinic’s opening hours, the price of a cleaning (Rs 1,500) and how to book, all from the agent’s knowledge.
Under the reply are suggested follow-up questions the visitor can tap.
The visitor did not have to type their question again: it was sent automatically after the form.

What this screenshot shows. The same visitor after reloading the page and asking a new question (“Thanks! Do you accept UPI payments?”), ringed.
The form was not shown again: the browser remembers the visitor.
The agent answered straight away: “Yes, we do! We accept UPI, as well as cash and all major debit and credit cards.”
A visitor on a different browser or device, or one who cleared their browser data, is asked again.
When the visitor clicks Start Chat, AiEngage CRM looks for an existing contact:
First by the email address.
If no contact has that email, by the phone number (in any format it may be stored in, with or without +91).
If neither matches, it creates a new contact with the name, email and phone from the form.
In our example nobody had Sneha’s email or phone number, so a new contact was created. Open Contacts to find it.

What this screenshot shows. The left panel of the new contact’s record, ringed.
The contact Sneha Patil, created from the form, with her initials (SP).
About this contact lists the Contact Owner, assigned automatically, plus First Name (Sneha), Last Name (Patil), Email (sneha.patil@example.com) and Phone (+919822071346).
The full name from the form is split into first and last name, and the country code is added to the phone number.

What this screenshot shows. The Contact Information section of the record, ringed.
The same details in the record’s main fields: Contact Owner, First Name, Last Name, Email and Phone.
Other fields (DOB, Company Name, Website and so on) stay empty; the form only fills name, email and phone.
From here your team can follow up like any other lead: send an email, a WhatsApp message, or create a task.
AI Agents → ⋮ → Edit → Visitor Details.
Switch on Ask for details before the chat starts.
Choose whether to ask for Name, Email and Phone, and tick which of email and phone are required (at least one).
Check Preview & Publish and click Publish.
Visitors now fill in a short form before their first message. Their details find or create a CRM contact, and returning visitors are not asked again.
No. It is for the website chat widget only. WhatsApp chats are identified by the customer’s phone number automatically.
No. A name alone cannot identify a contact, so it is always optional. Make the email or phone required instead.
The form asks only for name, email and phone. To collect anything else, use Ask Initial Questions: the agent asks your questions during the chat and saves the answers to the contact (Data Mapping with Your AI Agent on Chat).
Because Ask Initial Questions is on. It needs a contact to save answers to. Switch Ask Initial Questions off first.
Not on the same browser. They will be asked again on another browser or device, or after clearing their browser data.
No. If their email (or, failing that, their phone number) matches an existing contact, the chat is linked to that contact instead of creating a new one.
Previous: Data Mapping with Your AI Agent on Chat
OpenAI Engage and apply what you just learned to your own workspace.
Open AI Engage CRM