…
…
AI Fundamentals · Lesson 26 / 31 · Responsible use
PreviewIn this lesson you will
You can read the explanation without an account. The exercises and quiz at the end of the lesson are for members.
A new intern at the desk pasted a student's scholarship complaint into the assistant exactly as it came: name, student number, phone number, and a piece of medical information. The answer looks useful, but Elena is not happy: "Let's not do this again. How would we do the same job without personal data?" It is your job to clean the prompt and write a rule for the desk.
In this lesson you will answer Elena's question. By the end you will have three things: the same prompt in two versions side by side (raw and cleaned), a table that sorts eight pieces of information, and the desk's four-point rule. First, the prompt the intern pasted.
Example 1 (case): The raw prompt and its cleaned version
The intern's prompt (fictional sample data; the name, number, and phone are made up):
OutputI'm Aisha Okafor, my number is 20231234, my phone is 555-014-2877. Last month
I could not attend classes because of my medical report, and my scholarship
was paid $75 short. What should I do?The cleaned prompt for the same job:
OutputA student's scholarship was paid $75 short during a documented excuse period.
According to the Student Handbook, what should the student do?The second prompt has no name, number, phone, or medical information. Still, everything the assistant needs to write an answer is there: the scholarship was paid short, by how much, and that an excuse is documented. Both prompts get an answer that is equally useful. There is one difference: in the first, who the student is and her health situation went to the tool; in the second, they did not. This lesson teaches you to see that difference and to create it in every prompt.
First, let's name what we are protecting. Personal data is any information about an identified or identifiable person. Look at the two words in this definition. An "identified" person is someone whose name is written down. An "identifiable" person is someone who can be found with other pieces of information, even if the name is not written. So personal data is not only names and ID numbers.
It helps to split information into two groups. Directly identifying information points to a person by itself: full name, student number, phone number, email address, photo. Indirectly identifying information points to nobody alone but does when combined: major, year, hometown, age, dorm room. "Chemistry major" is hundreds of people. "Chemistry major, third year" is maybe eighty people. "The only student from Lakemont in the third-year Chemistry class" is one person.
Example 2 (case): A sentence with no name that still points to a person
OutputThe only student from Lakemont in the third-year Chemistry class is about to
fail because of absences.The sentence has no name and no number. But everyone in the department knows who it is about. This sentence is personal data, because it makes the person identifiable. It also carries something the person would not want to share with others: absences.
With this distinction you can give each piece of information one of three decisions. Share: the information belongs to nobody (a deadline) or is a total that points to nobody. Share without the personal parts: the information is useful, but it contains parts that point to a person; once those parts are removed, it can be shared. Do not share: the information itself belongs to a person and nothing is left when you remove it, or it is of the special kind you will see below. The main activity of this lesson is making this decision for eight pieces of information.
Match the eight pieces of information that arrive at the desk with the decision you would make before typing them into the assistant.
For each row, pick its match from the list, then check.
Now let's test the misconception directly: is personal data really only a name and a number?
Which of these can identify a single person even when no name is written?
It feels natural to say "what I type into the assistant stays with me", because on the screen it is only you and the assistant. But remember lesson 18: the text you give in a prompt goes to the model (the servers of these tools are often in another country, and privacy laws usually have extra rules when personal data crosses a border; this is one reason organizations have "approved tool" rules), and the model reads it to write an answer. The model does not run on your computer; it runs on the servers of the service provider that offers the tool. So the prompt leaves your computer and goes to those servers.
What happens after it gets there changes from tool to tool. Depending on the tool's settings and terms, conversations may be stored for a while, may be reviewed by people for quality or safety, or may join the training data to improve the model. You know from lesson 18 that text that enters the training data leaves a trace in the model's weights. The way to know what a tool does is to read its settings and terms. Most organizations also write their own rules for staff: which tools can be used and what can be typed into them.
So the desk's measure is simple: another person's personal data does not go into a tool unless the job needs it and the person agrees. Even when it is needed, it goes in only through a tool the organization has approved and under the organization's rule. This measure applies not only to work but to daily life.
Example 3 (outside the case): A screenshot of a group chat
An argument started in your friend group and you wonder who is right. You plan to take a screenshot of the chat and upload it to the assistant with "comment on this conversation." The screenshot has your friends' names, phone numbers, and private messages they wrote to each other. The moment you upload it, all of this goes to the service provider's servers without your friends knowing.
You want to upload a screenshot of your group chat to the assistant and say "comment on this conversation." The screenshot has your friends' names, numbers, and private messages. What do you do?
Pick an option and see what happens. There are no points; you can try the other options too.
Not all personal data weighs the same. Some information does much more harm when it leaks: the person can face discrimination, lose a job or a place at school, or be stigmatized around them. Privacy laws separate this information as special-category personal data and protect it more strongly. In the GDPR, the categories are these:
| Special-category personal data (categories in GDPR Article 9) |
|---|
| Racial or ethnic origin |
| Political opinions |
| Religious or philosophical beliefs |
| Trade union membership |
| Genetic and biometric data (fingerprints, face scans, DNA) |
| Health |
| Sex life or sexual orientation |
| Criminal convictions (protected separately, under stricter rules) |
You do not need to memorize the list; if a piece of information looks like one of these categories, stop. The desk's rule is strict: special-category information never goes into the tool. Not with a name, not without one. Because, as you saw in Example 2, removing the name does not always hide the person, and the cost of a mistake is highest with special-category information.
Example 4 (case): The special information in the complaint
In the raw prompt in Example 1, one phrase is heavier than the others: "because of my medical report". The name, number, and phone are personal data and are removed. The medical report information is special-category data on top of that. And the job does not need it: what the scholarship office needs to know is that the excuse is documented, not what the excuse is.
Which piece of information in Example 1 is special-category personal data?
Now you know what is personal. How do you fix a prompt? Cleaning means removing the personal data from a prompt before you send it. It has three techniques, and all rest on one question: is this information really needed to do the job?
Remove: Delete information that does not help. The phone number in Example 1 does not change the answer to the scholarship question; remove it. Placeholder: If something needs to stay in that spot, replace it with a label such as [NAME] or [ID]. This is also called masking. The structure of the text is kept; the assistant knows "there is a name here" but not which name. Generalize: Turn a detail into a wider expression. "Medical report" becomes "a documented excuse"; "21 years old, from Lakemont, Chemistry third year" becomes "an undergraduate student". "$75 short" can stay, because once the name is gone it points to nobody and the answer needs it.
After cleaning, make one last check: could someone looking at the remaining text find the person? This check matters, because the most common mistake is to delete only the name.
Example 5 (case): Text with only the name deleted
OutputMy number is 20231234, my phone is 555-014-2877. Last month I could not
attend classes because of my medical report, and my scholarship was paid
$75 short. What should I do?There is no name, but the number and phone point to the person directly, and the medical information is still there. This text is still personal data. Its cleaned version is the second prompt in Example 1: the number and phone were removed, the medical report was generalized as "a documented excuse", and the scholarship amount stayed.
Watch how a placeholder works in the small program below. You do not need to read the code line by line; hide the name and the number with two buttons and look at the output. The block works with a shortened prompt: it has no phone and no medical sentence.
Hide the name and the number one at a time. How does the prompt that goes to the tool look in each combination?
Pick a value; predict the output first, then look.
1hide_name = False2hide_id = False34prompt = "I'm Aisha Okafor, my number is 20231234. My scholarship was paid $75 short, what should I do?"56if hide_name:7 prompt = prompt.replace("Aisha Okafor", "[NAME]")8if hide_id:9 prompt = prompt.replace("20231234", "[ID]")1011print(prompt)
I'm Aisha Okafor, my number is 20231234. My scholarship was paid $75 short, what should I do?
Faded lines didn't run with this value. Each button hides only its own piece: when you hide the name, the number stays in the text; when you hide the number, the name stays. Only when both are hidden does nothing that points to a person remain in the short prompt; the scholarship amount never changes, because the job needs it. A placeholder keeps the structure of the text: the assistant knows there is a name and a number here, but not who they belong to.
With both hidden, the output became I'm [NAME], my number is [ID]. My scholarship was paid $75 short, what should I do? Can this short prompt be typed into the tool now? Yes, because nothing that points to a person is left in it. But in the long version the same two buttons would not be enough: the phone must be removed and the medical sentence must be generalized. One more thing: a placeholder is not full anonymization. Full anonymization means making the text impossible to match to anyone. A placeholder only hides some parts; the event details left behind ("it was said in front of everyone in class last week") can still point to the person. That is why the last check is never skipped.
Let's put cleaning into steps. The order matters: you cannot decide what to remove before you know what the job needs.
Put the steps you follow when cleaning a prompt of personal data in order.
Click the lines in order; to undo one you placed wrong, click it in the list below.
Shuffled lines
Your order
So far we have talked about a student's data. What about your own? Sharing your own information is your decision. But decide knowing the risks: what you write goes through the paths we described above. Some information is never typed into any tool: ID numbers, passwords, bank and card details. There is no job in which the assistant needs them.
Someone else's information is different: it is that person's right. Good intentions, wanting to help, even being a relative do not hand this right to you. Good intentions do not replace permission.
Example 6 (outside the case): A visa form
Fictional prompt:
OutputMy mother's passport number is A1234567, her date of birth is March 3; fill in
the visa form.Fictional assistant output:
OutputSure. Passport number: A1234567. Date of birth: March 3. To complete the form,
could you also write your mother's name, birth year, and address?The assistant is now asking for even more. But filling in the form does not require the assistant to know your mother's details. The cleaned prompt:
OutputWhat fields does a visa form have, and what goes in each field? Explain with an
example.The assistant explains the fields of the form and what goes in each one; you or your mother fill in the form with her information. The job is done, and the passport number did not go to any server.
Now match each technique with where it works.
Match each part of Example 1 with the technique you would use on it when cleaning.
For each row, pick its match from the list, then check.
The rule you take to Elena has four points:
1. A student's name, number, and contact details do not go into the tool.
2. Health and other special-category information never goes in; not even without a name.
3. Use a placeholder when needed; you apply the answer to the real person.
4. Do not step outside the tool and the rule the organization approved.
This rule does not ban AI. You saw in Example 1: with the cleaned prompt you get the same answer. The rule only keeps the student's information at the desk. When you write a prompt for the assistant, the responsibility for the people inside that prompt is yours too. They do not know about it; protecting them is your job.
The table that sorts information, promised at the start of the lesson, is now full:
| Information | Decision | Why |
|---|---|---|
| Scholarship application deadline | Share | Belongs to nobody |
| A student's name and number | Do not share | Directly identifying; nothing is left when removed |
| "A student's scholarship was paid short" | Share | Points to nobody |
| Medical report information | Do not share | Special-category |
| Dorm room and sign-in time record | Share without the personal parts | The room number is removed |
| Unit split of the 600 questions | Share | Total |
| Complaint text (with a name and number) | Share without the personal parts | The name and number become placeholders |
| Note about religious belief | Do not share | Special-category |
Fictional prompt: "The only student from Lakemont in the third-year Chemistry class is about to fail because of absences. Their instructor said this in front of everyone in class last week. Write a message to this student explaining the absence limit."
There is no name in the prompt, but the first sentence identifies the person; the second makes her easier to find with a detail the job does not need. The cleaned version:
OutputWrite a short, kind message to a student who is close to the absence limit,
explaining the limit. Student Handbook: The absence limit is 30% of class hours.To write the message, who the student is was not needed; what the limit is was needed, and that information went into the prompt.
You want to fix the language of your resume for a job application. The resume has your name, phone, home address, and date of birth. None of these is needed to get a language fix from the assistant:
Output[FULL NAME] · [PHONE] · [EMAIL]
Experience: I worked part-time at a cafe for 8 months; I handled the register
and tracked orders.The assistant fixes the experience sentences; you write your own details in place of the placeholders, read the final version, and send it. It was your decision to write them because they are your information, but the job did not need them.
The dorm unit wants a short report on which days late sign-ins cluster. The raw record (fictional sample data):
OutputAlex Rivera, room 214, Friday 23:40
Maya Chen, room 118, Friday 23:25
Marco Silva, room 305, Tuesday 23:10For the report, who signed in late is not needed; how many late sign-ins there were on which day is needed. The version written to the assistant:
OutputLate sign-ins: Friday 2, Tuesday 1. Sign-in rule: curfew at 23:00.
Using these numbers, write a 3-sentence summary for the dorm unit.Deleting only the name and thinking the text is anonymous. When the name is gone, the number, the phone, the major-year-hometown combination, or an event detail can still point to the person; medical information also stays as it was. The right way: write down what the job needs first, remove the directly identifying information or replace it with a placeholder, generalize the special-category information, and then make the last check: "do the remaining pieces point to someone when combined?"
[NAME], generalize details, and check whether the remaining pieces point to a person when combined; you apply the answer to the real person.Next lesson: Respect for the owner of data does not end here: someone else's writing, images, and work are also a right. The next lesson is about copyright, plagiarism, and disclosure.
Exercises and quiz are for members
This lesson has 7 coding exercises and a 10-question quiz. Sign up free to solve them, save your progress and move on to the next lesson.
The names and room numbers are gone, and only totals that point to nobody are left. This is exactly the "share without the personal parts" decision in the sorting table.