# 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="/files/Piubqo4TSzveHhd3lUgA" 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="/files/5LOtp0HN0jU3GqvlwMly" 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="/files/HHSYmgx0wEsycB9W4O69" 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="/files/riGuh6PldfTtNaDqOQFG" 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="/files/1Pq3MxiPbpI8jPylMPLf" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inogic.com/livechat4dynamics/features/questionnaires/pre-chat-questionnaires.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
