OceanaCode.aiWebsitesFR
Back to articlesGuide

A chatbot on your company website: the rules to follow

Cookies, retention periods, automated decisions, sensitive data: what the French data protection authority asks of a business that installs an assistant on its website, and how to comply simply.

By The OceanaCode team · Published on 22 November 2026 · 4 min read

One Saturday evening, a customer lands on your company's website. She has a simple question, your office is closed, and a small chat window offers to help. Two minutes later, she has her answer. For her, it is a service. For you, it is also a processing of personal data: the conversation is recorded, a cookie is often set, and the customer may write far more than you expected.

In France, the data protection authority (CNIL) has published advice for businesses that install a chatbot. It comes down to four questions that any professional can ask before putting an assistant online, or to check the one already in place.

A chatbot almost always processes personal data

The CNIL starts from one observation: a conversational assistant often processes personal data, for example to keep a record of the conversation. And this remains true even if the visitor has not created an account and has given neither a name nor an email address.

In other words, data protection rules apply from the very first sentence exchanged. The business that puts the assistant online is responsible for it, including when the tool is supplied by a provider. If you have appointed a data protection officer, now is the time to involve them in the project.

To follow the conversation from one page of your website to the next, the assistant usually sets a cookie on the visitor's device. In France, this is governed by Article 82 of the Data Protection Act (loi Informatique et Libertés). The CNIL describes two situations:

  • The cookie is set before the visitor opens the assistant. You then need their prior consent, and that consent must be free, specific, informed and unambiguous.
  • The cookie is only set when the visitor opens the assistant themselves, for example by clicking on the chat window or on a button. It is then considered strictly necessary for the service requested, and no consent needs to be collected.

The second option is the simplest for a small business: no extra box to tick, on one condition. This exemption only holds if the cookie is used solely to make the assistant work. If it also serves another purpose, such as advertising or audience measurement, the visitor's consent becomes necessary again.

How long to keep conversations

There is no single retention period. The rule given by the CNIL is this: data is kept for as long as the purpose you have set requires, and no longer.

It gives two opposite examples:

  • an assistant that helps with a purchase: the data should be deleted as soon as the conversation ends;
  • a complaint about a product that has been bought: it is legitimate to keep it longer, for the time needed to handle the case.

In practice, ask yourself the question for each use of your assistant: what is this conversation for, and from when does it no longer serve any purpose? The answer gives you your retention period. You then need to check that the tool really deletes conversations when that time comes.

An assistant does not decide alone on what matters

A chatbot can inform, guide and prepare a file. But, the CNIL points out, a conversation without human involvement cannot lead on its own to an important decision for the person. It mentions the refusal of an online credit application, the application of higher prices, or being unable to apply for a job.

This kind of fully automated decision is prohibited by Article 22 of the GDPR, apart from regulated exceptions. In every case, the person must at least be able to obtain human intervention, give their point of view and contest the decision.

For a small business, good practice is simple: the assistant prepares, a human decides. The conversation can perfectly well be part of a wider process, provided the human involvement in it is real.

The sensitive data nobody planned for

Health, political opinions, religion, trade union membership: processing this data is prohibited in principle by the GDPR. Yet an assistant usually offers free text. A visitor may therefore write that they are ill, or give an intimate detail, without you having asked for it.

The CNIL distinguishes two cases:

  1. Collection is foreseeable, for example for a health-related service. The processing must then fall within one of the exceptions provided by the GDPR, such as the person's explicit consent. A data protection impact assessment may also become necessary.
  2. Collection is not foreseeable. You do not have to collect prior consent, but you must reduce the risks, with two measures: display, before any use, a warning inviting visitors not to share sensitive data; and set up a purge of this data, immediate or at least regular.

Most businesses are in the second case. A warning sentence at the start of the conversation and regular deletion are enough to meet the CNIL's request.

Your checklist

  • My visitors know the conversation is recorded, and why.
  • The assistant's cookie is only set when the conversation is opened, and is used for nothing else.
  • I have set a retention period for each use, and the tool really deletes the data.
  • No important decision is made by the assistant alone: a human can always step in.
  • A message invites visitors not to give sensitive information.
  • Sensitive data received by accident is deleted regularly.

Sources

  1. CNIL — Chatbots : les conseils de la CNIL pour respecter les droits des personnes

Read next