Analysis note
Companies, associations and public services are deploying AI-based chatbots on their websites and messaging services. They respond continuously and at lower cost. However, each chatbot speaks on behalf of the organisation. Its answers fall within the organisation’s information obligations, it collects personal data and the messages it receives can divert it.

Observation: the chatbot as a channel of the organisation
A customer service chatbot answers questions about products, prices, lead times and procedures. It also collects contact details, order numbers and sometimes documents. Market offerings present it as an autonomous tool. Legally, however, it is a channel of the organisation.
Analysis: the duty to inform and the chatbot’s scope
Law No. 31-08 requires the supplier to enable the consumer to know certain information, by any appropriate means. It covers the essential characteristics of the product or service, the prices and the warranty conditions (Article 3). The Law also specifies the information due in the offer for a distance sales contract (Article 29). The obligation rests on the supplier whatever the channel. Thus, a chatbot that announces an incorrect price, warranty or lead time does so on behalf of the organisation.
The first measure therefore concerns scope. The chatbot answers on the basis of a validated and up-to-date knowledge base. It refers any question falling outside that base to a person. In addition, it announces no commitment (discount, goodwill gesture, exceptional lead time) that it is not authorised to make.
Analysis: information on the nature of the interlocutor
Where a chatbot addresses users located in the Union, the EU AI Act imposes a design obligation on its provider. The provider must design it so that it informs persons that they are interacting with an AI system. An exception applies where this is obvious. The test is the point of view of a natural person who is reasonably well-informed, observant and circumspect (Article 50(1)). Moreover, an organisation putting the chatbot into service under its own name or trademark is a provider (Article 3, point (3)).
Similarly, Anthropic’s Usage Policy requires the same information at the start of each session or in the interface. Independently of these texts, disclosure is the simplest rule to apply to all audiences.
Analysis: the data collected by the chatbot
The chatbot constitutes processing of personal data within the meaning of Law No. 09-08. At the time of collection, the controller must inform persons of its identity and of the purposes. It must also inform them of the recipients and of their rights (Article 5). In addition, the processing rests on a legal basis (Article 4). It is also subject to the applicable formality with the CNDP (Article 12). The place of processing of the service determines the analysis of the transfer (Articles 43 and 44).
A decision may produce legal effects concerning the requester (complaint, eligibility, refusal). Such a decision cannot rest solely on automated processing intended to define the requester’s profile. The same applies to processing intended to evaluate certain aspects of the requester’s personality. Only the exceptions provided for depart from that rule (Article 11). Such a decision therefore falls to a human.
Analysis: security and prompt injection
A chatbot open to the public receives messages that the organisation does not control. Prompt injection can be direct or hidden in content. In either case, it can lead the chatbot to disclose information, step outside its role or trigger actions. Accordingly, the OWASP framework recommends constraining the model’s role and limiting its access. It also recommends subjecting sensitive actions to human validation and regularly testing these protections.
Implications: preparing a chatbot like a service
Deploying a chatbot calls for the same preparation as a service. That preparation covers a validated knowledge base, a written scope, rules for escalation to a person and information of users. It also covers the formality with the CNDP and a log of exchanges retained for a defined period. Finally, it includes tests before going live and periodic review of answers.
Points of attention
- Limit the chatbot to a validated and dated knowledge base.
- State from the start of the conversation that the interlocutor is an AI.
- Provide for referral to a person for any out-of-scope request, complaint or decision.
- Inform users of the processing of their data and complete the formality with the CNDP.
- Check the place of processing of the service and the basis for the transfer.
- Test the chatbot against prompt injection before going live.
References
- Law No. 31-08 enacting consumer protection measures, promulgated by Dahir No. 1-11-03 of 14 Rabi I 1432 (18 February 2011), Official Bulletin No. 5932 of 7 April 2011, p. 1072 (general edition), as amended, Articles 2, 3 and 29.
- Law No. 09-08 on the protection of individuals with regard to the processing of personal data, promulgated by Dahir No. 1-09-15 of 22 Safar 1430 (18 February 2009), Official Bulletin No. 5714 of 5 March 2009 (official translation edition), Articles 4, 5, 11, 12, 43 and 44.
- Regulation (EU) 2024/1689 of the European Parliament and of the Council of 13 June 2024 laying down harmonised rules on artificial intelligence and amending Regulations (EC) No 300/2008, (EU) No 167/2013, (EU) No 168/2013, (EU) 2018/858, (EU) 2018/1139 and (EU) 2019/2144 and Directives 2014/90/EU, (EU) 2016/797 and (EU) 2020/1828 (Artificial Intelligence Act), OJ L, 2024/1689, 12.7.2024, Article 50(1).
- Anthropic, Usage Policy, version applicable as at 12 November 2026, https://www.anthropic.com/legal/aup (page consulted on 21 October 2026).
- OWASP, “LLM01:2025 Prompt Injection”, OWASP Top 10 for LLM Applications 2025, https://genai.owasp.org/llmrisk/llm01-prompt-injection/ (page consulted on 21 October 2026).
See also: Anthropic’s Usage Policy as at 12 November 2026; Guide – Configuring an AI assistant; Checklist – Security of AI uses. Information Systems & Digital Transformation practice.
General information document; it constitutes neither legal advice nor an opinion on a particular situation. References to legal texts should be checked against the version in force on the date of use.
Consulting firm not registered with any Bar; no representation before the courts and no act reserved to the regulated legal professions.
