AI-Built Software, Part 5 of 7: The Canadian laws your app answers to the moment it emails, stores or charges, and what the tools leave out unless asked.
Don’t Count on the Tool to Tell You
In Part 3 of this series I covered agentic coding and made the claim that “the code is the easy part.” In Part 4 I started exploring why that is: there are operational and security considerations that the agentic coding tools typically don’t address unless someone knowledgeable instructs them to. Well, it turns out there’s another area that is often missed: the law.
AI coding tools, whether a prompt-to-app platform or an agentic coder, are great at building apps, but in most cases they don’t address legal compliance on their own, and if you don’t know to raise those issues you may well be exposing yourself or your company to liability you never intended to take on. Apps written for internal company use have fewer legal considerations, but some still apply.
None of this is new or AI-specific; marketing and IT have carried these obligations for a decade or more. What has changed is that people who aren’t aware of these obligations are now able to build and ship software.
The good news is that, just as with operations and security, when correctly directed the tools can build apps that comply with the relevant legislation. However, the person developing the app needs to know what to ask for, and how to validate that what was built actually meets it.
I’ll use a real example along the way: the budgeting app for Canadian families that I recently built for its founder, the same app as in Part 4. It emails its customers, holds personal and financial information and takes recurring payments, so every section below applied to it, and the tools built the compliant version of each once they were told what to build.
In this article I’ll cover the main legal obligations an app picks up, and what not meeting them can cost. Each of these sections could be a full article on its own, so I’ll cover them at a high level. If you’re concerned about your compliance level, it’s a good idea to have an experienced advisor look at your specific circumstances, and have legal counsel review your documentation where the stakes warrant it.
Messaging (CASL)
“We need a way to contact our customers, multiple channels if possible.”
That simple prompt results in a lot of heavy lifting. The tool takes it, goes away and works for a while, and presents a well-formatted set of forms to collect customer contact details and send emails or text messages on an automated schedule or with the click of a “Send email” button.
But there’s a problem. If you’re messaging people, Canada’s Anti-Spam Legislation (CASL) applies to you. You must have consent (express, or implied under defined conditions) recorded before a commercial message goes out; every message must identify the sender and carry a working unsubscribe; and an unsubscribe request must be actioned within ten business days.
And failing to adhere to CASL’s legal obligations comes at a real price. In October 2026, Pizza Hut agreed to pay $500,000 under a CRTC undertaking over messages sent without consent and unsubscribe requests that were not honoured; two months earlier, Indeed Canada agreed to pay $200,000 under a similar undertaking.
If your app or your platform sends messages, you are the sender in the eyes of the law, and the obligation stays with you rather than with the tool or the platform that does the sending.
In the budgeting app, 21 kinds of email leave the system. Three count as commercial under CASL and carry a one-click unsubscribe that takes effect immediately, because consent is checked again at send time; the other eighteen are transactional. Every one of the 21 identifies the sender. That split was an intentional choice we made before the first message went out, not something the tool proposed.
The question: Where is the consent record for every address this app emails, do we keep a “do not contact” list, and what happens, step by step, when someone clicks unsubscribe?
Personal Information (PIPEDA, PHIPA)
It won’t surprise you if I say that databases are great at storing data. Underpinning every app is a database, created by the tool, holding a wealth of information. In Part 4 I talked about protecting that data from an operational and security standpoint - backups, encryption, separation of data. But there’s another issue at play here: some types of data come with legal obligations around their collection, use and retention.
The Personal Information Protection and Electronic Documents Act (PIPEDA) is Canada’s federal privacy law for the private sector. In Ontario it applies to any business that collects, uses or discloses personal information in the course of commercial activity (Quebec, Alberta and British Columbia have their own laws for activity inside those provinces). If your business collects health-related information, Ontario’s Personal Health Information Protection Act (PHIPA) applies as well, with stricter rules. You should also be aware that Bill C-36, the Protecting Privacy and Consumer Data Act, was tabled in June 2026 and is making its way through Parliament. If passed, it would replace PIPEDA’s private-sector rules with stricter requirements, far larger financial penalties and expanded rights for individuals, so it’s wise to build with it in mind.
PIPEDA expects personal information to be collected for an identified purpose, with consent proportionate to its sensitivity, kept only as long as needed, and produced when the individual asks what you hold about them. If you send some of that data to third-party processors (including AI models), you must tell your users, including when it leaves the country, and your accountability follows the data wherever it goes. So, if your app takes some text and sends it to an AI model to be summarized, classified, or otherwise acted on, that is a disclosure you are required to make.
The budgeting app asks for a name, an email, a password and a province, with a separate, unticked box for optional email; every consent is its own record of what was agreed, which version, where it came from and when, in a table that can only be added to. The data sits on a server in Toronto, personal details are encrypted by the app before they are stored, and nothing goes to an analytics service or an AI model. It also turns away signups from Quebec, and says why: doing Quebec properly means a French version of the app and the terms and meeting Quebec’s own privacy law (Law 25), and the founder would rather wait and get it right. Knowing which law you are under is itself a decision.
The question: For every field, can someone tell me why we collect it, where it lives, who else sees it and when it is deleted?
When Something Goes Wrong
In Part 4 of this series, I asked how you would know if your app was compromised. There’s another side to this: if your app is compromised, there are legal requirements for what happens next. You will start, obviously, by triaging the compromise and closing the hole. Those are operational tasks; the legal obligations run alongside them.
Since 2018, PIPEDA has required that when the safeguards around personal information are breached and there is a real risk of significant harm to someone (judged on how sensitive the information is and how likely it is to be misused; financial information and identity theft are clear-cut inclusions) the organization must:
- Report it to the federal Privacy Commissioner
- Tell the people affected as soon as feasible
- Tell anyone who can reduce the harm (e.g., the payment provider or the police)
Separately, the organization must keep a record of every breach, including the ones that do not meet that bar. These records must be kept for two years and be available to the Commissioner on request, and must include the date, what happened, what information was involved, and why it was or was not reported. Knowingly skipping the report or the record is an offence under the Act. PHIPA has its own notification rules for health information.
I’ve never seen a coding tool offer to build a breach log by default, and it matters. A breach log is a record the law requires you to keep by name, which makes it a legal requirement rather than an operational best practice. Detection is not the obligation; the record, and the decision whether to report, are.
The question: Is there a breach log, who maintains it, and who decides whether an incident must be reported?
Subscriptions (Ontario Consumer Law, PCI)
If your app takes subscription payments from individuals, Ontario’s consumer protection law applies to you. It covers customers buying for personal, family or household purposes; apps only sold to businesses are outside it. Almost every app will use a third-party service such as Stripe to handle payments; this takes the card data off your server, and most of PCI DSS, the card industry’s security standard, off your plate, but it does not absolve you of the rest. If you are handling payments yourself, in most cases I’d urge you to rethink that immediately and use a third-party provider.
The Consumer Protection Act, 2002 and its regulations set out a business’s obligations when a consumer agreement is formed online. A replacement Act has been passed but not yet proclaimed into force; when it is, it is expected to tighten the rules around renewals and cancellations further.
The current Act requires disclosure before the customer signs up (what they are buying, the price, taxes and other charges, the total, payment terms, restrictions), an express chance to accept or decline and correct errors before they commit, and a copy of the agreement within 15 days. The agreement can only be changed with the customer’s explicit agreement, or with 30 to 90 days’ notice if the agreement itself allows that and offers a way out. A material change to an ongoing service is treated as unsolicited unless you can prove consent, so notice alone can never raise what a customer pays. Nothing in your terms can waive these rights: a mandatory arbitration clause or a class-action waiver is simply invalid against an Ontario consumer.
Subscriptions also have a lot of edge cases that need to be dealt with carefully. The tools are great at building a Stripe integration that handles the default sign-up, but they often miss the less common cases. I’ve seen apps where if the customer cancels in Stripe (rather than in the app), that message never gets passed back to the app and their access never gets cancelled.
In the budgeting app, the plan screen shows each price followed by “plus tax” and says the plan can be switched or cancelled any time from Settings; after signup a copy of the agreement is emailed and the sending recorded; and a price increase needs the family’s yes. Notice alone never changes what they pay. A family that does not accept keeps the current price to the end of the period, then the plan ends, and the answer is recorded with the version and the time.
The question: When a customer cancels, in the app or at the payment provider, what exactly stops, and when? And when the price changes, who said yes, and where is that recorded?
The Terms and the Privacy Policy
If you’re like most people, you are used to seeing a link to terms and conditions and a privacy policy when you sign up for an app, and you’re equally used to skipping reading them. As a customer, skipping them is your privilege; as a business, those two documents are how you meet specific legal obligations.
PIPEDA and the federal Privacy Commissioner expect privacy information to be made readily available to the customer, with four items spelled out up front: what is collected, who it is shared with, why, and the risk to the person. When your practices change significantly (e.g., collecting data for a new purpose or using a new third-party provider) users must be notified and consent obtained before the change takes effect.
Ontario consumer law treats your terms as the agreement itself: the disclosures before the customer commits and the copy after, as above, and amendments only by explicit agreement or by 30 to 90 days’ notice where the agreement allows it.
The tools won’t typically build terms and a privacy policy unless asked, and when they do, the result is usually modelled on another jurisdiction: a generated terms page tends to arrive with foreign governing law, a mandatory arbitration clause and a class-action waiver, because that’s what the templates it learned from contain. Against an Ontario consumer those clauses are not just unenforceable; they tell anyone who reads the page that nobody who knew the local law ever did. The tools will almost certainly not, by default, version these documents or track who accepted which version; often the terms are simply edited in place.
In the budgeting app, the terms and the privacy policy carry a version and an effective date, and a material change goes out as an email plus an in-app Accept or “I don’t accept,” recorded like every other consent.
The good news is that with the right direction the tools can draft a good starting point for your app’s terms and privacy policy. But a draft is only ever a draft: the owner has to read it, accept it and decide whether it says what the business means, and because these two documents carry a large part of your compliance, having counsel review them is worth it where the stakes warrant.
The question: Do my app’s terms and privacy policy describe what the app does today, who re-reads them when a feature ships, is acceptance tracked by version, and were they written for my jurisdiction?
Conclusion
AI coding tools have changed how apps get built and, in some ways, who gets to build them. But the ease of creating an app brings legal exposure to people who may not know they have taken it on.
If you’re building an internal tool that emails nobody outside, stores no customer data and takes no payment, be thankful: you can skip most of this. But you should be aware of it so that you know which items you are skipping and why, because tools have a way of growing over time.
In the next part of this series, I’ll look at what might already be running in your building: how to find the apps staff have built on personal accounts with company data, and the one-page policy that keeps the next one from surprising you.