AI and Morocco’s Law 09-08: A CNDP Readiness Guide for SMEs
Map personal data, supplier access and international transfers before deploying AI under Morocco’s data protection framework.
AI projects processing information about identifiable people can fall within Morocco’s Law 09-08; using an AI label does not remove data protection duties. Start by identifying the purpose, people concerned, data categories and responsible organization.
Does Morocco’s personal data law apply to AI?
Determine with qualified Moroccan counsel which declarations, authorizations or other requirements apply before production. This article is an operational preparation guide, not legal advice or a finding of compliance. The official law is the starting point, and requirements should be checked again before deployment rather than inferred from a vendor’s marketing. 2
When can an AI workflow create an international transfer?
An overseas model API, remote support access, backup service or monitoring tool can introduce an international data flow. Map destinations and recipients rather than looking only at the main hosting country. CNDP guidance describes permitted transfer situations and the F118 request process; it also notes that underlying processing must have an approved declaration or authorization before transfer authorization is granted. Do not assume consent alone settles every requirement, or that a European hosting location automatically satisfies Moroccan rules. Have the actual architecture reviewed before sending identifiable production data. 1
What evidence should an SME prepare?
Prepare a processing map, supplier inventory, access matrix, retention schedule and documented incident route. Record whether prompts, attachments and outputs are retained or used for model improvement, and verify contractual settings against technical behavior. Pseudonymized records may still identify people when linked to other information; do not casually label them anonymous. Test deletion across indexes, logs and backups according to the documented policy. Local hosting can reduce some transfer exposure, but it does not by itself establish lawful processing. Keep legal review distinct from the engineering security review.
How should you structure the first pilot?
Choose one accountable process owner, one starting trigger and one measurable output. Document how the work happens today, including exceptions and the steps people perform outside the official software. Take representative samples with permission, remove unnecessary personal information and agree who may inspect the material. Define a baseline before introducing automation so the team can distinguish genuine improvement from a quieter week or a different mix of requests.
Build the smallest useful workflow before expanding permissions. Run it in shadow mode first: the system proposes an outcome while a person continues the existing process. Compare both results and investigate disagreements. Only then allow controlled actions, with explicit approval for sensitive changes. A convincing demonstration is a reason to test further, not evidence that the workflow is ready for every customer and every edge case.
What practical checklist should your team use?
Use this checklist during procurement and again before launch. Each item needs a named owner and evidence rather than a verbal assurance. If the underlying records disagree, resolve that disagreement instead of asking the model to guess which department is correct.
- Define the permitted task and the actions the assistant must never take.
- Identify the authoritative system and assign responsibility for keeping records current.
- Limit access by role and keep credentials outside prompts and documents.
- Prepare normal, ambiguous, malicious and incomplete test cases.
- Require a clear handover when evidence is missing or the request exceeds scope.
- Record approvals, actions and failures without collecting unnecessary personal data.
- Test rollback, duplicate prevention and recovery after a supplier outage.
- Give staff operating instructions and a route for reporting incorrect results.
Review the checklist with operations, IT and the person responsible for privacy. The aim is not more paperwork: it is a shared understanding of who can stop the system, correct a record and authorize the next release.
How do you decide whether to expand?
Review performance using completed work, not the number of generated responses. Sample successful cases as well as escalations, because silent errors may never produce a complaint. Include human review time, corrections and support effort when estimating the benefit. Compare results on similar workloads and record any changes to staffing, demand or policies during the test.
Before expanding, make sure someone can maintain integrations, update approved content and repeat the acceptance tests after changes. Define a fallback that still works when the model provider or business system is unavailable. Keep a written stop condition for serious errors or unauthorized actions. Expansion should follow repeatable evidence of useful outcomes and acceptable risk, not pressure to automate every part of the business at once.
How should you document ownership and maintenance?
Keep an operating note that explains who owns each integration, where approved rules are stored and how changes are reviewed. Record the deployed version and repeat important tests when a model or upstream system changes. Give staff a simple incident route that does not depend on the original developer being available. Preserve the ability to export business records in a usable format. These controls help an SME avoid turning an initially useful assistant into an opaque dependency that nobody can safely update or switch off.
FAQ
Do we need to replace our existing software?
Not necessarily. Start by checking supported integrations and export formats. Keeping the existing system as the source of truth often reduces migration risk. Replace it only when a documented constraint prevents the required workflow.
Can the assistant work in Arabic and French?
It can be designed for both, but language support must be tested on your documents and actual request patterns. Evaluate correct outcomes separately from fluent wording. Mixed-language inputs and specialist terminology need their own acceptance cases.
Who approves sensitive actions?
A named authorized employee should approve actions with financial, legal, employment or personal-data consequences. Give that reviewer the original evidence and enough time to disagree. A routine confirmation click is not a substitute for informed oversight.
What happens when the system is unsure?
It should say what evidence is missing, stop any unauthorized action and route the case to the right person. Agree a response process and preserve useful context so the customer or employee does not have to restart the request.
What should we prepare for a first discussion?
Bring a process description, approximate monthly volume, examples you are allowed to share and the problems that create rework. Include current tools and access constraints. Avoid sending confidential archives before agreeing the purpose, safeguards and permitted recipients.
Ready to assess a concrete workflow? Book a free 30-minute AI opportunity session with VYANIS, the Moroccan AI consulting and software studio founded by Yassine Arfane. We can discuss scope, integration constraints and a sensible evaluation plan before any production commitment. Contact hello@vyanis.com or WhatsApp +212661164645.
Related articles
How to Measure AI ROI in a Moroccan SME Before Scaling
Calculate AI ROI using a defensible baseline, realized benefits and full operating costs rather than inflated hours-saved claims.
AI for Law Firms in Morocco: Secure Document Review With Source Checks
Build a controlled legal document assistant with matter-level permissions, verified citations and lawyer approval.
Automating Quotes and Invoices in Morocco: Keep Prices and Approvals Under Control
Connect requests, approved pricing and accounting records to reduce quote rework without delegating tax or payment decisions to AI.
Ready to build yours?
Get a detailed quote in 2 minutes, or book a free discovery call.
