Our services
Artificial intelligence and process automation for businesses in Morocco
CM2A Consulting, a chartered accounting firm based in Casablanca and registered with the Moroccan Order of Chartered Accountants (Ordre des Experts-Comptables du Maroc), designs artificial intelligence (AI) agents and automates the accounting and administrative processes of businesses. The firm does not resell other people's AI: it designs, builds and runs its own applications. Every project complies with Law 09-08 on personal data and with the invoicing rules of the General Tax Code (Code général des impôts, CGI).
What we do
- Process diagnostic and mapping of automation opportunities
- Development of custom AI agents for business processes
- Automation of invoicing, bank reconciliations, payment reminders and reporting
- Automated document processing: supplier invoices, bank statements, contracts
- Virtual assistants and AI chatbots for customer service, internal support and WhatsApp
- Integration of generative AI into enterprise resource planning (ERP) software, customer relationship management (CRM) tools and document management
- Dashboards and data analysis augmented by AI
- Calendar of legal obligations for groups of companies with FlowTeam
- Compliance with Law 09-08: declarations and authorisation requests to the National Commission for the Control of Personal Data Protection (Commission nationale de contrôle de la protection des données à caractère personnel, CNDP)
- Pseudonymisation of documents submitted to an online AI with FlowX
- Electronic signature of documents with FlowSign
- Team training and handover of the tools
Who it is for
Small and medium-sized enterprises (SMEs). An SME often entrusts invoicing, collections and data entry to one or two people. Automating these repetitive tasks frees time for customer follow-up and cash management. The firm starts with the process that consumes the most hours, measures the result, then extends automation to the next processes.
Subsidiaries of foreign groups. A subsidiary produces reporting for its parent company and keeps a calendar of obligations specific to Moroccan law. It often transfers data abroad, a transfer governed by Law 09-08 (Art. 43). The firm works in French, English, Arabic, Spanish and Mandarin.
Startups. A startup can automate its processes from incorporation, before manual habits set in. As a company subject to corporate income tax (impôt sur les sociétés, IS), it must equip itself with a computerised invoicing system (système informatique de facturation) (CGI, Art. 145-IX). The firm designs this foundation with it: invoicing, collections, contract signature.
Self-employed entrepreneurs. The self-employed entrepreneur scheme (régime de l'auto-entrepreneur) is outside the obligations of Article 145 of the CGI, except for holding an email address (CGI, Art. 145-X and 145-XI). Needs centre on quotes, reminders and remote contract signature. FlowSign has a document signed via a link, without an account, on any device.
Automatable processes in a Moroccan business
Invoicing. Invoices are pre-numbered in a continuous series. They carry eight particulars, including the customer's common company identifier (identifiant commun de l'entreprise, ICE) and the amount of value added tax (taxe sur la valeur ajoutée, TVA) shown separately (CGI, Art. 145-III). An AI agent checks each invoice issued before it is sent and each purchase invoice before it is recorded. The particulars are detailed in our analysis of mandatory invoice particulars and the ICE.
Bank reconciliations. The agent compares each line of the bank statement with the accounting entries and flags discrepancies. The accountant validates its proposals: the agent prepares, it does not decide. This control matters, because the tax authorities may reject accounts that show serious and repeated errors or lack supporting documents (CGI, Art. 213-I).
Customer reminders. The agent tracks due dates, prepares reminders and alerts the manager to late payments. Payment terms between traders are presented in our analysis of payment terms under Law 69-21.
Document processing. The agent reads supplier invoices, bank statements and contracts, extracts the data and files them. Copies of invoices, supporting documents and accounting books are kept for ten years. A business that keeps its accounts in electronic format keeps them on an electronic medium (CGI, Art. 211). Failure to keep them is punishable by a fine of 50,000 dirhams per financial year (CGI, Art. 185 bis-I).
Legal obligations of groups. Each company in a group follows its own calendar. The ordinary general meeting (assemblée générale ordinaire) of a public limited company (société anonyme, SA) meets within six months of the financial year-end, unless the president of the court extends this period by order (Law 17-95, Art. 115). Failing this, members of the administrative, management or executive bodies face a fine of 30,000 to 300,000 dirhams (Law 17-95, Art. 388). In a limited liability company (société à responsabilité limitée, SARL), the accounts are submitted to the partners within the same six-month period (Law 5-96, Art. 70), on pain of a fine of 2,000 to 20,000 dirhams for the managers (Law 5-96, Art. 110). FlowTeam keeps this calendar, the permanent file (dossier permanent) and the follow-up of regulated agreements (conventions réglementées), presented in our analysis of regulated agreements in SAs and SARLs.
Legal framework
Personal data: Law 09-08 and the CNDP. An AI agent that processes names, salaries or customer contact details processes personal data. As a general rule, this processing requires a prior declaration (déclaration préalable) to the CNDP. A prior authorisation (autorisation préalable) is required, in particular, for sensitive data, for the use of data for purposes other than those of collection, for data relating to offences and for data that include the national identity card number (Law 09-08, Art. 12). A payroll file often contains this number. The data controller (responsable du traitement) implements technical and organisational security measures and binds any processor by a contract (Law 09-08, Art. 23). Processing without the required declaration or authorisation is punishable by a fine of 10,000 to 100,000 dirhams (Law 09-08, Art. 52).
Transfer of data abroad. An online AI service may process data outside Morocco. A transfer is permitted only to a State that ensures an adequate level of protection; the CNDP draws up the list of these States (Law 09-08, Art. 43). Otherwise, the transfer requires the express consent of the data subject, one of the cases of necessity provided for by law, an international agreement to which Morocco is a party, or an express and reasoned authorisation from the CNDP (Law 09-08, Art. 44). An unlawful transfer is punishable by three months to one year of imprisonment and a fine of 20,000 to 200,000 dirhams, or by one of these two penalties (Law 09-08, Art. 60).
Electronic signature: Law 43-20. The law distinguishes simple, advanced and qualified electronic signatures (Law 43-20, Art. 4). A simple electronic signature (signature électronique simple) relies on a reliable identification process that guarantees the link with the deed and expresses the signatory's consent (Law 43-20, Art. 2). Its legal effect and its admissibility as evidence in court cannot be refused solely because it is electronic or because it is not qualified (Law 43-20, Art. 7). A qualified signature relies on a qualified certificate issued by an approved trust service provider (prestataire de services de confiance agréé) (Law 43-20, Art. 6 and 9). FlowSign produces a simple electronic signature. For a deed that requires a higher level, the firm flags it at the diagnostic stage.
Electronic invoicing: CGI, Art. 145-IX. Companies subject to IS, taxpayers subject to personal income tax (impôt sur le revenu, IR) under the actual or simplified net income regime and persons liable for TVA must equip themselves with a computerised invoicing system that meets the technical criteria set by the administration (CGI, Art. 145-IX). A regulatory text sets the terms by sector. As of 22 November 2026, the firm has found none published in the Official Bulletin (Bulletin officiel). Accounts are also kept in electronic format (CGI, Art. 145-I). The CGI sets no specific penalty for paragraph IX, but the administration may reject accounts that do not comply with Article 145 (CGI, Art. 213-I). Our guide to electronic invoicing in Morocco separates the text from the announcements of the Directorate General of Taxes (Direction générale des impôts, DGI) and from projects.
Confidentiality of documents submitted to an AI
An aged balance, a contract or a payslip contains names, amounts and identifiers. Sent as they are to an online AI, these documents leave the business. FlowX, the firm's pseudonymisation application, replaces names, companies and identifiers with labels before sending, then puts the real values back into the response. The substitution takes place on the workstation, offline. Pseudonymisation reduces the personal data transmitted. It does not remove the need to analyse Articles 43 and 44 of Law 09-08, which the firm carries out for the data that are still transmitted. The firm uses its applications for its own files: the AI it advises on is the AI it uses every day.
How the engagement works
The firm's method has four stages: diagnostic, pilot, production and handover. The first discussion and the CNDP formalities frame them.
- First discussion. You describe your processes, your tools and your constraints. The firm answers in the working language of your choice.
- Diagnostic. The firm maps your processes and automation opportunities. It lists the personal data processed, determines the applicable regime, declaration or authorisation (Law 09-08, Art. 12), and identifies transfers abroad (Law 09-08, Art. 43).
- CNDP formalities. The firm prepares with you the declaration or the authorisation request, which you file as data controller. The CNDP issues the receipt for a declaration within 24 hours and has two months to grant an authorisation (Decree 2-09-165, Art. 24).
- Pilot. The firm automates a use case chosen during the diagnostic and measures the results: hours saved, errors avoided, lead times reduced. You decide on the next step based on these results.
- Production. The firm deploys the solution securely and integrates it into your systems. The security measures and the processing contract required by Law 09-08 (Art. 23) are in place before go-live.
- Handover. The firm trains your teams until they are autonomous. They receive the documentation of the agents and of the control rules.
Why CM2A
A firm registered with the Order. CM2A Consulting, founded in 2019, is registered with the Moroccan Order of Chartered Accountants. The firm brings together 2 certified experts and more than 15 years of combined experience. It has supported more than 30 clients, with a satisfaction rate of 98%.
Applications designed, built and run by the firm. FlowAssist manages clients, files, time spent, invoicing and expense reports, with real-time dashboards, Telegram commands, and automated reminders and reporting. Flow2Do steers engagements; the firm developed it for HTA Conseil. FlowTeam organises the governance of groups of companies: calendar of legal obligations, permanent file, regulated agreements. FlowSign sends the PDF to be signed via a link and returns a sealed PDF and an audit certificate, both verifiable. FlowX pseudonymises documents submitted to AI.
Applications under development. FlowAudit (AI-augmented audit), FlowValo (business valuation), FlowPrévision (financial forecasting) and FlowCompta (accounting under the General Accounting Standards Code, Code général de normalisation comptable, CGNC).
Five working languages. The firm works in French, English, Arabic, Spanish and Mandarin, for national and international clients.
Frequently asked questions
- What is an AI agent for a business?
- An artificial intelligence agent is a program that carries out a sequence of tasks from instructions: reading a document, extracting data from it, comparing them with a rule, preparing an action. In a business, it handles, for example, supplier invoices or bank reconciliations. An employee validates its proposals before any entry or any dispatch.
- Which processes should an SME in Morocco automate first?
- Repetitive, rule-based processes: invoicing, bank reconciliations, customer reminders, filing of supporting documents and reporting. The first choice is the process that consumes the most hours and whose result can be measured. Checking the mandatory particulars of each invoice (General Tax Code, Art. 145-III) is a frequent starting point.
- Do you need to declare data processing to the CNDP to use AI?
- Yes, as soon as the tool processes personal data. Law 09-08 requires a prior declaration to the National Commission for the Control of Personal Data Protection in the general case. A prior authorisation is required, in particular, for sensitive data, data relating to offences and data that include the national identity card number (Law 09-08, Art. 12). Processing without the required declaration or authorisation is punishable by a fine of 10,000 to 100,000 dirhams (Law 09-08, Art. 52).
- Can personal data be sent to an AI hosted abroad?
- Only to a State that ensures an adequate level of protection and appears on the list drawn up by the CNDP (Law 09-08, Art. 43). Otherwise, the transfer requires the express consent of the person, a case of necessity provided for by law, an international agreement to which Morocco is a party or an express and reasoned authorisation from the CNDP (Law 09-08, Art. 44). An unlawful transfer exposes the offender to three months to one year of imprisonment and a fine of 20,000 to 200,000 dirhams, or to one of these two penalties (Law 09-08, Art. 60).
- Is an electronic signature valid in Morocco?
- Yes. Law 43-20 recognises three levels of electronic signature: simple, advanced and qualified (Art. 4). The legal effect of a simple or advanced signature and its admissibility as evidence in court cannot be refused solely because it is electronic or because it is not qualified (Law 43-20, Art. 7). A qualified signature requires a qualified certificate issued by an approved trust service provider (Law 43-20, Art. 9).
- Is electronic invoicing mandatory in Morocco?
- The General Tax Code requires a computerised invoicing system for companies subject to corporate income tax, taxpayers subject to personal income tax under the actual or simplified net income regime and persons liable for TVA (CGI, Art. 145-IX). The terms depend on a regulatory text for each sector, which the firm has not found published in the Official Bulletin as of 22 November 2026. The administration may reject accounts that do not comply with Article 145 (CGI, Art. 213-I).
- How do you protect confidential documents sent to an AI?
- Before sending, replace names, companies and identifiers with labels. FlowX, the application developed by CM2A Consulting, performs this substitution on the workstation, offline, then puts the real values back into the AI's response. For personal data that are still transmitted, Law 09-08 governs the transfer to a foreign State (Art. 43 and 44).
- How long must invoices and accounting documents be kept in Morocco?
- Ten years. Copies of invoices, supporting documents for expenses and investments, and accounting books are kept for ten years at the place of taxation, on an electronic medium if the accounts are kept in that format (CGI, Art. 211). Failure to keep them is punishable by a fine of 50,000 dirhams per financial year (CGI, Art. 185 bis-I).
- Can artificial intelligence keep a company's accounts?
- AI automates the entry of documents, reconciliations and consistency checks. The accounts remain subject to Article 145 of the General Tax Code and must be backed by supporting documents: otherwise, the administration may reject them (CGI, Art. 213-I). AI prepares the entries, and an accountant validates them before the year-end closing.
- What is CM2A's method for an AI project?
- Four stages. Diagnostic: mapping of processes and automation opportunities. Pilot: one use case, measurable results. Production: secure deployment, integrated into the client's systems. Handover: the client's teams trained and autonomous.
Contact the firm
CM2A Consulting, 15 Bd Med Zerktouni, Résidence Prestige, 4th floor, No. 12, Casablanca. Monday to Friday, 9:00 am to 6:00 pm.
