Sub topic 4
Legal and contractual duties around customer data
This chapter covers the legal and contractual rules that apply when customer data goes into an AI tool. It assumes you have used an AI chat or coding assistant. It also assumes you know roughly what customer records contain at your workplace, and that you have read your employer's acceptable-use policy. It is not legal advice. Its purpose is to help you recognize when a legal question exists, so you can route it to the right people.
Why the law matters for a prompt
Pasting a customer record into an AI tool can be a data transfer, a disclosure to a new party, and a use of the data for a new purpose. Each of these is regulated in many places. The person who pastes the text is often not the person who answers for it. Your employer carries most of the liability, but employees can face discipline, and in some regimes individuals can face personal consequences.
Two sources of duty apply at the same time:
- Law and regulation. These apply whether or not anyone signed anything.
- Contracts. These apply because your employer promised something to a customer, partner, or vendor.
A prompt can be legal under the law and still breach a contract. A contract can also allow something the law forbids. You need to satisfy both.
Key terms
| Term | Meaning |
|---|---|
| Personal data | Information about an identified or identifiable person. Names, emails, account numbers, IP addresses, and combinations of details that point to one person all count. |
| Controller | The organization that decides why and how personal data is processed. |
| Processor | An organization that processes personal data on a controller's behalf and under its instructions. |
| Sub-processor | A third party that a processor hires to help with the processing. |
| Data subject | The person the data is about. |
| Purpose limitation | The rule that data collected for one purpose should not be reused for an incompatible one. |
| Cross-border transfer | Sending personal data to another country, including letting a foreign vendor access it. |
These roles shape who is responsible. If your company is a processor for a business customer, the customer is the controller. Your company generally may only use the data as that customer instructed. An AI vendor you introduce then becomes a sub-processor, and the customer usually has rights over that choice.
Main legal frameworks
Which laws apply depends on where the customers are, where your company operates, and what kind of data is involved. The frameworks below recur often. Check with your legal or privacy team about which ones apply to you.
| Framework | Scope in brief | What it means for AI use |
|---|---|---|
| GDPR (EU) and UK GDPR | Personal data of people in the EU or UK, and organizations that handle it | Needs a lawful basis, purpose limitation, minimization, a processor contract, and safeguards for transfers outside the region. |
| CCPA/CPRA (California) | Personal information of California residents | Limits on "selling" or "sharing" data and on secondary uses. Vendors must be bound by service-provider terms. |
| HIPAA (US health) | Protected health information held by covered entities and their business associates | A vendor handling this data needs a business associate agreement (BAA). Without one, entering it is generally a violation. |
| PCI DSS (payment cards) | Cardholder data | Card numbers must not be stored or processed outside scoped, controlled systems. This is a contractual standard, not a statute. |
| GLBA and similar financial rules | Financial customer information | Requires safeguards and controls on service providers. |
| Sector and national laws | Education, children's data, telecom, local privacy laws | Often add stricter limits. Children's data is commonly treated with extra care. |
Some data categories get stronger protection. GDPR calls them special categories: health, biometric and genetic data, racial or ethnic origin, political opinions, religious beliefs, trade union membership, and sexual orientation. Treat any of these as high risk by default.
Principles that apply to prompts
Several principles recur across these laws. Each maps onto a concrete AI behavior.
- Lawful basis and purpose limitation. A customer gave data so you could deliver a service. Using it to test a new AI summarizer may be a different purpose. If the original notice or contract did not cover it, you may not be allowed to do it.
- Data minimization. Send only what the task needs. This chapter's later sibling covers the technique. Here, the point is that minimization is a legal expectation as well as good hygiene.
- Processor and sub-processor controls. An AI vendor that receives customer data is a processor or sub-processor. A written agreement must exist, and it must limit what the vendor does with the data.
- Transfer restrictions. If the AI service processes data in another country, a transfer mechanism may be required. Ask where the vendor processes and stores prompts.
- Security of processing. Laws expect "appropriate" safeguards. Sending data through an unapproved account with no access controls is hard to defend.
- Individual rights. People may ask what you hold about them, ask for correction, or ask for deletion. If their data sits in a vendor's logs or conversation history, you must be able to find and remove it.
- Breach notification. Many laws require notifying regulators, customers, or both within a fixed time after a breach. Some deadlines are as short as 72 hours from awareness.
Where the contract comes in
Most obligations that bind your daily work come from agreements rather than statutes. Look for these:
- Customer contracts and master service agreements. They may forbid sharing customer data with third parties without consent, or require a list of approved sub-processors.
- Data processing agreements (DPAs). These describe what the processor may do with the data, security measures, sub-processor rules, breach notice timing, and deletion at the end of the contract.
- Non-disclosure agreements. Customer confidential information, including non-personal data such as pricing, designs, or source code, may be covered even when no privacy law applies.
- Vendor terms. The AI provider's own terms decide whether it may retain prompts or train on them. A later chapter covers reading them.
- Internal policy and employment terms. Your acceptable-use policy turns these obligations into rules you can follow.
Contracts are often stricter than the law. A customer in a regulated industry may require that no data leave a specific region, or that no AI tool touch their records at all. Some contracts now include explicit AI clauses. If you see one, treat it as binding on your prompts.
Worked example
A support agent at a software company wants to summarize a long ticket thread. The thread contains the customer's name, email, a description of a billing dispute, and a pasted screenshot of an invoice with part of a card number visible. The customer is a hospital group, and the contract says the company acts as its processor.
Walk through the questions:
- What is in the data? Personal data (name, email), financial data (invoice, partial card number), and possibly health information if the ticket mentions patients.
- Who is the controller? The hospital group. Your company is the processor, so it can use the data only as instructed.
- Is the AI vendor an approved sub-processor? Check the sub-processor list in the DPA. If the vendor is not listed, using it may need customer notice or consent.
- Does a special regime apply? If patient information appears, HIPAA may require a BAA with the AI vendor.
- Is there a cheaper option? Remove the name, email, and screenshot, and summarize only the technical issue. Then most of the questions above stop applying.
The last step shows why the legal analysis usually ends in a practical habit: send less, or use a tool that is approved for this class of data.
Common errors
- Assuming consumer and enterprise tools are equivalent. A free chat account typically has different retention and training terms than a business contract. A DPA exists only for the latter.
- Treating "internal use" as exempt. Using customer data internally can still be a new purpose or a new disclosure.
- Ignoring non-personal confidential data. Contracts can protect source code, pricing, and strategy even when no individual is identifiable.
- Relying on the vendor's marketing page. What counts is the signed agreement and the account's actual settings.
- Waiting to report. Notification clocks often start when the company becomes aware, not when someone finishes investigating. Sitting on an accidental disclosure can turn a small problem into a legal violation.
- Guessing about jurisdiction. A customer's location can bring a law into play even if your company is elsewhere.
How the pieces connect
When to escalate
You are not expected to settle legal questions yourself. Escalate to your privacy, legal, or security contact when:
- The data belongs to a customer in a regulated sector such as health, finance, or education.
- The contract mentions AI, sub-processors, data location, or confidentiality in a way you cannot interpret.
- You are unsure whether the AI vendor is approved for the data type.
- Data has already gone into a tool that may not be allowed. Report it right away, because the notification clock may already be running.
Summary of what to carry forward
- Two layers of duty apply together: law and contract.
- Your role as controller or processor decides how much freedom you have.
- Vendors that receive customer data are processors or sub-processors and need proper agreements.
- Pseudonymized data is still personal data.
- When unsure, send less, use an approved tool, and ask.
Exercise
A company is a processor for a retail customer. An employee wants to paste 200 customer complaint emails, with names and addresses, into a free consumer AI chatbot to find common themes. Name at least three separate legal or contractual problems with this plan, and suggest one change that would reduce the risk.
Show answer
Possible problems: (1) The AI vendor would be an unapproved sub-processor, so the DPA's sub-processor rules are likely breached and the retail customer may not have consented. (2) As a processor, the company may use the data only as the controller instructed, and theme analysis for internal purposes may be a different purpose. (3) A consumer account has no DPA, and its terms may allow retention or training use, which undermines security and deletion duties. (4) Names and addresses may be sent to another country without a transfer mechanism. (5) Individual rights requests, such as deletion, would be hard to honor if the data sits in the vendor's history. A change that reduces risk: strip names, addresses, and other identifiers, and use only the complaint text, or use an enterprise tool that is approved under a DPA for this data. Checking with the privacy team first is also correct.
Exercise
A teammate says, "We replaced every customer name with CUSTOMER1, CUSTOMER2 and so on, so the data is anonymous and privacy law no longer applies." What is wrong with this claim?
Show answer
Replacing names with tokens is pseudonymization, not anonymization. The company keeps a mapping that can reverse the tokens, and other details in the text (dates, locations, order numbers, unusual events) may identify people. Under GDPR and similar laws, pseudonymized data is still personal data, so the legal duties continue to apply. Pseudonymization is still a useful safeguard that lowers risk, but it does not remove the need for an approved tool, a lawful purpose, and appropriate contracts.
Exercise
You paste a customer's account details into an AI tool, then realize the tool is not on the approved list. What should you do, and why does timing matter?
Show answer
Stop using the tool for that data, do not try to fix it quietly, and report it at once through your company's incident process, saying what data, which tool, and when. Timing matters because laws and contracts often require notifying regulators or customers within a fixed period (for example, 72 hours) that starts when the company becomes aware of the incident. A prompt report lets the security and privacy teams request deletion from the vendor and decide whether notification is required.