> ## Documentation Index
> Fetch the complete documentation index at: https://docs.insighto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Consent Form

This guide explains how to create a GDPR consent form and integrate it with your chat widget, ensuring that users give explicit consent before interacting with your AI assistant. This helps you maintain compliance with data protection laws and build trust with your users. We’ll cover step-by-step how to create the consent form, link it to your chat widget, and deploy it on your website.

## Prerequisites

✅ A Form with GDPR Consent Field\
It can also include any additional fields you want to capture (like name, email, or other information relevant to your chat interactions).

✅ A Chat Assistant Created to Meet Your Requirements\
You should have your AI chat assistant already set up and configured according to your use case.

***

## Create a GDPR consent field in form

1. Create a GDPR Consent Form\
   Let’s start by creating a form that includes a GDPR consent field along with any additional fields you want to capture from users.

<img src="https://mintcdn.com/insightoai-bc61fe99/C1acx8xJ_ByMWlaW/images/CF/1.webp?fit=max&auto=format&n=C1acx8xJ_ByMWlaW&q=85&s=ed2e8a2469d33ccf817716b4aa99fa77" alt="Step Image" width="1526" height="932" data-path="images/CF/1.webp" />

1⃣ **Add a GDPR Consent Field**\
In your form builder, add a field of type GDPR (or similar, depending on your platform).\
Be sure to include a link to your Privacy Policy in the field so users can review it before giving consent.

2⃣ **Enable Mandatory Form Submission**\
In the form settings, toggle the option to make form submission mandatory.\
This ensures that users must complete the GDPR consent and any other required fields before they can interact with the chat widget.

3⃣ **Add Additional Fields (Optional)**\
Add any other fields you want to capture, such as name, email, phone number, etc.\
Arrange these fields as needed to support your chat use case.

💡 **Note**: If you’re unsure how to create a form in your system, refer to the detailed guide linked Insighto.ai Forms - Insighto.ai Docs for step-by-step instructions.

***

## Connect with Chat Widget

2. Create a Widget and select provider type as "Insighto"\
   Under the widget section → Create Widget\
   Select provider type as "Insighto" and click Next

<img src="https://mintcdn.com/insightoai-bc61fe99/C1acx8xJ_ByMWlaW/images/CF/2.webp?fit=max&auto=format&n=C1acx8xJ_ByMWlaW&q=85&s=a12ea9dd46000df856c72c20b63f872e" alt="Step Image" width="1526" height="932" data-path="images/CF/2.webp" />

***

3. Click on Embed AI Agent Chat as shown below\
   Enter the Name & Description of your widget\
   Click on Embed AI Agent Chat as shown below

<img src="https://mintcdn.com/insightoai-bc61fe99/C1acx8xJ_ByMWlaW/images/CF/3.webp?fit=max&auto=format&n=C1acx8xJ_ByMWlaW&q=85&s=2c2ed0f7e5470b464ba1b9073014b714" alt="Step Image" width="1526" height="932" data-path="images/CF/3.webp" />

***

4. Select the Assistant and click Next\
   From the Assistant dropdown, select the Chat assistant you just created.

💡 Only assistants with Chat type will appear in this list.

<img src="https://mintcdn.com/insightoai-bc61fe99/C1acx8xJ_ByMWlaW/images/CF/4.webp?fit=max&auto=format&n=C1acx8xJ_ByMWlaW&q=85&s=0100cb8d4e2e9f68af48870dc9eb7414" alt="Step Image" width="1526" height="932" data-path="images/CF/4.webp" />

***

5. Connect the Form and Click on Finish\
   From the dropdown menu, select the form you just created.\
   After selecting the form, click on the **Finish** button to complete the setup.

Your chat widget is now fully integrated with the GDPR consent form and ready to be deployed on your website!

<img src="https://mintcdn.com/insightoai-bc61fe99/C1acx8xJ_ByMWlaW/images/CF/5.webp?fit=max&auto=format&n=C1acx8xJ_ByMWlaW&q=85&s=e7c61646cba071bba5d8258937959598" alt="Step Image" width="1526" height="932" data-path="images/CF/5.webp" />

***

## How it will appear?

6. Open the Widget in Playground or Click visit\
   When users open the chat widget on your website, the GDPR consent form will be displayed right away.\
   Users must complete and submit the form before they can proceed to interact with the AI chat assistant. This ensures:

✅ Compliance with data protection regulations (e.g., GDPR).\
✅ Clear communication of your privacy practices.\
✅ A smooth and compliant user experience.

Until the form is submitted, users will not be able to start a conversation with the chat assistant.

<img src="https://mintcdn.com/insightoai-bc61fe99/C1acx8xJ_ByMWlaW/images/CF/6.webp?fit=max&auto=format&n=C1acx8xJ_ByMWlaW&q=85&s=42e0d7ef4ef5f42a51dc4cfcfa6923f6" alt="Step Image" width="1526" height="932" data-path="images/CF/6.webp" />


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.