Please enable JavaScript to use CodeHS

AI Literacy & Cybersecurity

What happens to what you tell a chatbot?

You type a message and get an answer in seconds. But your words go on a trip first. Follow the trip, see where they can end up, and learn what not to tell a chatbot.

AI Privacy ~12 min 4 interactives
STORED YOU packets
The short answer

Is ChatGPT safe for students?

AI chatbots can be fine for homework help. Whether a chat is "safe" depends on three things: what you type, which settings you use, and your school's rules.

A chatbot is a program that answers in plain language. The most popular ones, like ChatGPT, run on big computers owned by a company. Your message does not stay on your screen. It travels to those computers, and the company decides how to handle it. That is what we mean by AI privacy: who can see what you type, and what they do with it.

Your words travel A message goes from your device, over the internet, to the company's servers. The AI answers from there.
Companies may keep them Chats may be stored for a while, used to improve the AI, or read in small samples. It depends on the service and your settings.
You control the biggest part You choose what to type. The safest private detail is the one you never send.

Policies differ and change. This page explains how chatbots work in general. It does not tell you what any one company does today. At the end of the next section, you will see how to check for yourself.


Interactive

Follow your message

Say you type: "Can you explain photosynthesis?" and press send. Here is the trip it takes. Click any stop to learn what happens there. Then flip the two switches and watch the paths at the bottom change.

Likely happens Depends on the service Should not happen, if the setting is available

Then, inside the company

Stop 1 of 7

How to check what your chatbot actually does

  • Open the app's settings and look for words like history, data controls, improve the model, or temporary chat.
  • Find the privacy policy or help center page. Search it for "retention" (how long chats are kept) and "training" (whether chats teach the AI).
  • Using a school or work account? Ask your teacher or tech office. These accounts can have different rules from a personal account.
  • Read the date at the top of the page. Policies change, so a page that is years old may be out of date.

When things go wrong

How chats can leak

Most chats never leave the company. Still, there are a few ways a chat can get out, and not all of them are the company's fault. Knowing them helps you decide what to type.

Shared links

Some apps let you share a chat with a link. Anyone who gets the link may be able to read the whole chat, and links can be forwarded.

Fix: share only chats with nothing private in them.

Screenshots

A friend, a classmate, or someone using your device can screenshot a chat. After that, nobody controls where it goes.

Fix: lock your device and log out of shared computers.

Account break-ins

If someone gets into your account, they can read your chat history. This often happens when a password is reused on many sites.

Fix: use a unique password and turn on two-step login.

Bugs and mistakes

Software has bugs. In the past, some online services have shown users the wrong data because of a mistake. Any service can have one.

Fix: type less, so a bug has less to show.

Tricks hidden in text

A chatbot that reads web pages or files can be tricked by hidden instructions inside them. That attack is called prompt injection. Learn more in What Is Prompt Injection?

Fix: be careful when you give a chatbot access to your files, email, or accounts.

Memorized text

A model learns from huge piles of text. Researchers have shown that a model can sometimes repeat a piece of its training data word for word. It is rare, but it can happen.

Fix: don't put private details in anything that might be used for training.

Keep it in proportion. The goal is not to be scared of chatbots. It is to remember that a sent message is hard to take back. Careful typing is the one protection that works on every service.


Know the line

What counts as personal info?

Personal info is anything that can point to a real person. Sometimes one detail is harmless, but a few together can identify you. A chatbot does not need most of this to help you, so the easiest habit is to leave it out. If you are wondering what not to tell a chatbot, start with this list.

Never share

Someone could use these to get into your accounts or find you.

  • Passwords
  • API keys and secret codes
  • Login codes sent to your phone
  • Home address
  • Phone number
  • Photos of other people
  • Other people's secrets

Change it first

These are fine in a general form. Remove the part that points to someone.

  • Your full name
  • Your school and teacher
  • Your birthday and age
  • Health information
  • Family problems
  • Friends' names
  • Your location right now

Usually fine

General questions with no real person attached to them.

  • Homework concepts
  • Made-up stories
  • Code with no keys in it
  • Public facts
  • Your favorite topics

Notice that other people show up in the first two columns. Their name, photo, health, and secrets are not yours to hand over. A friend trusted you, not the chatbot's company.

You may also have heard about age rules. Many online services set a minimum age or ask for a parent's permission. In the United States, a law called COPPA limits how websites can collect data from children under 13. Schools also have their own AI policies. The details differ by place and service, so ask your teacher or a parent which rules apply to you.


Interactive

Redact it

Redact means to hide the private parts and keep the rest. Below is a messy message a student might paste into a chatbot. Everything in it is made up. Click each highlighted piece to swap it for a safe placeholder. Watch the score climb.

0/100
Privacy score: everything is showing

Your message

Click a highlight to swap it. Click again to undo.

Hey! I'm and I'm in at . I live at and my number is . Can you check my school login? The password is . Also, my friend told me . How can I help him?

What the chatbot would receive

Red means private info is still in the message.

Tip: Start with the password. It is the one that could cause the most trouble.

Nice work. Your question still makes sense, and nothing private is left.

The bot can still give good advice on how to support a friend. It never needed names, places, or numbers.

One more step: if a password like that was real, change it right away and tell a trusted adult.

The blue "7th grade" piece is a trick. Your grade alone is low risk. Swapping it is fine, but you can also keep it when it helps the answer, like "explain this for a 7th grader." The things that cost you points are the ones that point to a real person or open an account.


Interactive

Share, tweak, or skip?

Eight things a student might type. For each one, choose what to do. Share means it is fine as written. Tweak means change it first, then send. Skip means don't send it at all.

Share, tweak, or skip Score: 0 / 0

Habits that work

Safe habits, and what to do if you overshared

You do not need to remember a long rulebook. Check the boxes for habits you already have, and pick one new one to try this week.

0 of 0 habits checked

Do this

Check first

Never do this

If you overshared

It happens to everyone, including adults. What matters is what you do next. Try these steps in order.

  1. Don't panic, and stop typing more.One slip is fixable. Piling on more details is not.
  2. Tell a trusted adult.A parent, teacher, or school counselor can help you decide what to do. You will not be in trouble for asking for help.
  3. Change anything that works like a key.If you shared a password, API key, or code, change it now and turn on two-step login.
  4. Delete the chat and check your settings.Deleting may not erase every copy right away, but it is still worth doing. Then turn off history or training if your app lets you.
  5. If it was about someone else, let them know.It is kind and fair. They can then take steps too, like changing a password.

Common questions

Questions students ask about AI privacy

Is ChatGPT safe for students?

It depends on what you type, which settings you use, and what your school allows. AI chatbots can be fine for homework help when you leave out personal info, check the privacy settings, and follow your school's rules. Policies differ between services and change over time, so check the service's own privacy page.

What happens to my chats with AI?

Your message travels over the internet to the company's servers, where the AI writes a reply. The company may save the chat for some time, may use it to improve its models unless you or your school opt out, and may let people review small samples. Rules differ by service and account type.

Can people at the company read my chats?

Sometimes. Many services say that a small number of chats can be reviewed by trained staff, for example to check for abuse or to improve quality. Most chats are never read by a person. Read the service's privacy page to see what it says.

Does deleting a chat erase it for good?

Not always right away. Deleting a chat usually removes it from your list. The company may keep a copy for a limited time for safety or legal reasons. Check the service's privacy page for how long.

Are school chatbot accounts different from personal accounts?

They can be. A school or workplace account may have its own rules about saving chats, training, and who can see them, and a school may be able to view activity on its accounts. Ask your teacher or read your school's AI policy.


Check yourself

Quick quiz

1. You send a message to a chatbot. Where does it go first?

2. Which message is the safest to send to a chatbot?

3. You pasted a real password into a chat by mistake. What should you do?

Keep building your AI and security skills

Now you know where a chat goes and how to keep your private info out of it. Keep going with another way AI and security meet, or explore a full CodeHS course.

Part of the Responsible AI & Safety tutorial series.