# Pre-Chat Questionnaires

The **Pre-Chat Questionnaires** feature lets you customize your website chat window by adding custom fields like name, email, query type, or any other details based on your business needs.

It helps collect important customer information before the chat begins, enabling quicker and more personalized support. All responses are saved as records in Dynamics 365 CRM, making it easy to track leads, manage interactions, and improve customer service right from the start.

Let’s say a customer, John, has a question about the earbuds he recently purchased from the GadgetHub website.

John visits the GadgetHub website and clicks on the Live Chat widget.

A **Pre-Chat Form** appears. John fills in the required details, including his name, contact information, and query.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F2dVixPzXG7atbPfBxmwI%2Fimage.png?alt=media&#x26;token=0f2662a8-88cf-4e3d-9860-c5713cb63857" alt=""><figcaption></figcaption></figure>

After completing the form, he clicks the **"Join Now"** button to start the chat.

Once joined, John’s name appears in the live chat window, and all the information he entered in the pre-chat form is visible to the agent.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fs5b4CFY3DjU1Ab98b1VF%2Fimage.png?alt=media&#x26;token=2d0977a5-5f40-463c-9c74-1ca9b21d70a0" alt=""><figcaption></figcaption></figure>

Simultaneously, a notification is triggered in Dynamics 365 CRM, alerting the support team of a new incoming chat request.

A sales representative, Sam, receives the notification and opens the chat request.

Sam can view all the details submitted by John before the chat began.

To proceed, Sam clicks **"Accept Chat Request".**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F6GVHGUG6gSz9gYgngSg3%2Fimage.png?alt=media&#x26;token=9656453f-e8bf-4250-aaa6-318ad449cab0" alt=""><figcaption></figcaption></figure>

Chat response will be saved in CRM in the message entity under the **Responses** tab as shown below

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Ff117GZqiBGVGZgqeMZgp%2Fimage.png?alt=media&#x26;token=151bcbe4-97cc-40e7-889b-973cefda0c04" alt=""><figcaption></figcaption></figure>

As soon as Sam accepts the request, John is notified in real-time through the live chat window that an agent has joined the conversation.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FUHgPJ9yOUrNPR5A1LZSD%2Fimage.png?alt=media&#x26;token=cbad0b00-7b50-46ba-bde6-e6a10034a275" alt=""><figcaption></figcaption></figure>
