> For the complete documentation index, see [llms.txt](https://docs.inogic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inogic.com/whatsapp4dynamics/configuration/configure-questionnaires.md).

# Configure Questionnaires

Set up Pre-Chat and Post-Chat questionnaires in just a few steps:

**STEP 1: ENABLE QUESTIONNAIRE TOGGLES** <br>

1. Open **WhatsApp4Dynamics**.
2. Navigate to **Configurations > Questionnaire.**
3. Enable the following:

* Pre-Chat Questionnaire – Starts when the customer sends the first message.
* Post-Chat Questionnaire – Triggers either during the chat or automatically after the agent ends it.

4. Choose **Trigger Frequency:**

* Once **–** Sent once per customer.
* Every – Triggers with every new session.

5. Click **Save.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FFdlkbiJUukLeV0xOFGCG%2F1.%20Enable%20Questionnaire%20Toggles.png?alt=media&amp;token=127b3604-47a8-4281-9d7f-6fb36bdb2035" alt=""><figcaption></figcaption></figure>

**STEP 2: CREATE A QUESTIONNAIRE RECORD**&#x20;

1. Go to Questionnaires, click New Questionnaire.
2. Fill in:

* **Name** – e.g., “Pre-Chat – Support Inquiry”
* **Type** – Pre-Chat or Post-Chat
* **Default Create Record –** Dropdown  showing all created record types
* **Default Questionnaire** – Mark as default (only one default per type)
* **Fallback Template -** Used to Handle invalid responses

&#x20; 3\.       Ask the user to confirm if they want to connect with a live agent

&#x20; 4\.       If the user replies “**YES**”, the system prompts the agent to accept the chat on their side.

&#x20; 5\.       Click **Save**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FvNgvKAGtHsUHzBKRcznw%2F2.%20Create%20a%20questionnaire%20record.png?alt=media&amp;token=ce022730-7de3-46dd-99f3-e69ce181bab1" alt=""><figcaption></figcaption></figure>

**STEP 3: CREATE QUESTIONNAIRE MESSAGE TEMPLATES (QUESTIONS)**&#x20;

Each question is based on a WhatsApp message template and is linked to the questionnaire you created.

How to **Create a Pre-Chat Template:**

1. Go to the Message Templates tab.
2. Click **New Message Template.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FEVrRIxL3upFk4We6729P%2F3.1.png?alt=media&amp;token=1becbff5-3b5c-4726-a36c-bb1126cbe3e0" alt=""><figcaption></figcaption></figure>

3. Fill in the following:

* **Template Typ**e – Auto-set to Pre-Chat or Post-Chat depending on the parent questionnaire.
* **Template** – Choose an existing WhatsApp/Twilio template. (Only the templates with option button are currently supported.)
* **Title** – e.g., “Issue Type”
* **Questionnaire –** Auto-linked to the selected questionnaire.
* **Message (Locked**) – Auto-filled with the text from the selected WhatsApp template. Not editable here.
* **Media URL (Locked**) – If included in the template (image/video/audio), auto-filled and non-editable.
* **Map Response** – Link the user's reply to a CRM field (e.g., Contact.Phone or Lead.ProductInterest)\
  If the default create record is set for the questionnaire, then, when a new record is created, the response is auto filled in this field.

4. Click **Save**, then Publish the template.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fm1CwFNsqIUhEGc17KxvG%2F3.2.png?alt=media&amp;token=4cdda93f-6103-4a14-89f6-0ad36828d15c" alt=""><figcaption></figcaption></figure>

**Note**: You can add multiple question templates to create a flow of questions.

How to **Create a Post-Chat Template** Directly from the Message Template Tab:

1. Go to Message Templates > New Message Template.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FF0VxfUq2nRuv6i91SWWq%2F3.3.png?alt=media&amp;token=51663b20-f0d3-41f6-a5d0-497c8f7c76ba" alt=""><figcaption></figcaption></figure>

2. Fill:

* Template Type – Select "Post-Chat
* "Template Name
* Title – e.g., “Customer Feedback”
* Add buttons/quick replies.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FVEasCOubPPypqwNrKu9y%2F3.4.png?alt=media&amp;token=9c644bb7-c826-4c0e-bee4-d99fdacea7a1" alt=""><figcaption></figcaption></figure>

3. **Save** and Publish.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FY3TrIMtaTW1GKCxbVIfu%2F3.5.png?alt=media&amp;token=8f726e78-6614-4bba-9c0e-9fcb231298f6" alt=""><figcaption></figcaption></figure>

End-to-End Chat Flow Example

* **Customer sends a message →** Triggers **Pre-Chat Questionnaire**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F0eDYJuOKjoZpH0ZaaS1e%2Fflow%201.png?alt=media&amp;token=73baa90b-bcff-4e75-a3b9-c56be319b88a" alt=""><figcaption></figcaption></figure>

• Questions are sent in sequence using WhatsApp templates.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F6pmLdMr8kOfO0QGK641E%2Fflow%202.png?alt=media&amp;token=bc30acd2-0459-4500-9c7e-27e1752d5603" alt=""><figcaption></figcaption></figure>

* Chat status is **Bot Conversation** until all pre-chat questions are answered.
* A **Fallback Template** is sent to confirm if the user wants to talk to an agent.
* User replies “**Yes**” → Agent gets option to **accept** the chat.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F66ZMLtgCrrmOesgku6fp%2Fflow%203.png?alt=media&amp;token=93403f17-3918-4ccb-ae78-6c8a8d23cb0d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FzI16KVeZ4ZdIAyLqEwIR%2Fflow%204.png?alt=media&amp;token=46a2bc69-24ca-4def-8d44-cc3dc6740527" alt=""><figcaption></figcaption></figure>

* **If no Agent Join Confirmation template is configured**, the system still prompts the agent to **accept the chat** after the final pre-chat message.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FVtImktDg1SqF3g7j36zt%2Fflow%204.5.png?alt=media&amp;token=a4d76407-2129-423d-b074-63e6fa5e89f4" alt=""><figcaption></figcaption></figure>

• Chat transfers to the agent, who continues the conversation.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F3ax7TUaBs8u90P9Y5mGo%2Fflow%205.png?alt=media&amp;token=15df4b1e-8c2b-4282-ab9d-4f99310dcbc1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FDsvaFXL0NYEtsJCtQljD%2Fflow%206.png?alt=media&amp;token=715ab10e-61ed-414a-b226-b0cab82779f4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FLB5A2bdO8M3SxTTPEQCQ%2Fflow%207.png?alt=media&amp;token=cbc6520d-1c09-4fce-af79-eab558b03b8d" alt=""><figcaption></figcaption></figure>

* Agent can **manually send Post-Chat** questions anytime during the session.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FojS2QIuXrIR2enAAjMd8%2Fflow%208.png?alt=media&amp;token=740fe934-12d5-4d1a-b7a8-f55c0991f0e5" alt=""><figcaption></figcaption></figure>

* When the agent clicks **“End Chat”**, the **Post-Chat Template** is automatically sent.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FNbohAM5KH8o6A3k9AqXo%2Fflow%209.png?alt=media&amp;token=3fb8304e-1029-434b-b0f5-c40ebde612fe" alt=""><figcaption></figcaption></figure>

* Click "**Close Chat Session**".

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FE7CcAfKuZIU7xdGEPmWg%2Fflow%2010.png?alt=media&amp;token=2867fd00-6b1c-4d8f-a693-282da5ab7618" alt=""><figcaption></figcaption></figure>

* Upon doing so, if the **Post-Chat Questionnaire toggle is enabled**, the configured Post-Chat Template is automatically sent to the customer.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FGvR0mdUPWOJv4gKcnhZc%2Fflow%2011.png?alt=media&amp;token=e4e81e81-8b70-4b71-a27a-5b0db0bf5975" alt=""><figcaption></figcaption></figure>

**This is how the Post-Chat response appears in the agent's view**:

* The agent can see the **feedback template** that was sent.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FadO9rZNdLaCgTMLkjxTa%2Fflow%2012.png?alt=media&amp;token=9945954a-e456-4020-b120-124578e228c6" alt=""><figcaption></figcaption></figure>
