Blog / Build with AI /

Data privacy in tools you build

When you build a small tool, privacy feels like something for big companies. Lawyers, policies, compliance teams. You just made a thing that tidies a spreadsheet.

Then a stranger uses it, types an email address into a form, and you are holding someone else’s data. Even if you never meant to.

This post is a practical starting point. It is not legal advice, and the rules differ by country, so treat it as the questions to ask, not the answers to copy. If your tool handles anything sensitive, speak to a professional.

The cheapest privacy protection: collect less

Every piece of data you hold is a responsibility. If you never collect it, you cannot lose it, leak it or be asked to delete it.

Before adding any field or tracking script, ask:

  • Do I need this to make the tool work?
  • What exactly would I do with it?
  • Could the tool do the job on the user’s own device instead?

A tool that processes everything in the browser and sends nothing to a server has almost no privacy problem. I wrote about this approach in privacy-first tools: keeping user data local, and it is often the simplest design.

Know what data you actually touch

Make a plain list. For each tool, write down:

Data Where it comes from Where it goes How long it stays
Email address Signup form Your email provider Until the user leaves
Text pasted by the user The tool’s input box An AI service Until the request ends? Check
Usage stats Analytics script The analytics provider Check their settings
Licence key Purchase Your database As long as the licence

The last column is where people discover gaps. “How long does it stay?” often gets the answer “I have no idea.” That is your first task.

AI adds a new place for data to go

If your tool sends user input to an AI service, that text leaves your control and arrives at a third party. Three questions:

  1. Does the provider keep the data? Read their terms for the plan or API you use.
  2. Is it used for training? Many providers state different rules for consumer apps and business APIs. Check the one you use. I went through this in keeping user data out of AI training.
  3. Did the user know? If someone pastes private text into your tool, they should be told it goes to an AI service.

Never send more than the task needs. If you are summarising a document, you do not need to send the customer’s name and address with it. Strip what you can before the request leaves.

Store things carefully

If you do keep data, do the boring basics:

  • Do not store passwords in plain text. Use a proven login system instead of writing your own.
  • Use HTTPS everywhere. Most hosts provide it free.
  • Keep secrets out of your code. API keys in front-end code are visible to anyone. Never put API keys in front-end code is worth rereading before you publish.
  • Limit who can see the data. Not every admin needs every record.
  • Back up, and protect the backups. A backup is another copy of everything.

Security basics for AI-built web apps goes further, and AI and security: what to check before you ship gives a pre-launch list.

Be honest in plain words

A privacy policy is not a trick to protect you. It is a statement of what your tool does. Write it so a normal person can read it:

  • What you collect
  • Why you collect it
  • Who else sees it (payment provider, email service, AI provider, analytics)
  • How long you keep it
  • How a user can ask you to delete it
  • How to contact you

Short and true beats long and copied. Copying a policy from another site often means promising things your tool does not do, or missing things it does. For extensions specifically, see privacy policies for small extensions.

If your tool sets cookies or loads analytics, many places require you to ask first. The rules differ by region, and a cookie banner that does nothing is worse than none. Cookie banners and consent for small tools explains the thinking, and building a cookie notice that respects choices shows one way to build it.

Consider whether you need analytics at all. Extension analytics without spying on users discusses lighter ways to learn what is used.

Deletion: plan it before someone asks

People may ask you to remove their data. If you have never thought about this, it turns into a panic. Decide now:

  • Where does the data live? (database, email list, backups, logs)
  • Can you delete it from each place?
  • How would you verify the request comes from the person?

If the answer for one place is “I cannot delete that”, reconsider storing it there.

Logs are data too

Logs help you debug, but they can capture email addresses, IP addresses and the text people typed. Logging: knowing what your tool did covers useful logging. Add one rule: do not log the content of user input unless you must, and delete old logs on a schedule.

Children and sensitive information

If your tool could be used by children, or deals with health, money, identity documents or similar, the stakes are higher and the rules stricter. Either avoid collecting that data or get proper advice first. Hoping nobody types something sensitive into your free-text box is not a plan. A short note saying “please don’t enter personal details here” at least sets expectations.

Using AI to help, carefully

AI can draft a plain-English privacy summary from a list of what your tool does. That is a reasonable first draft. It cannot know what your tool really does, so you must check each sentence against reality, and a qualified person should review it if the stakes are high.

Also, do not paste real user data into a chat just to debug something. Use made-up examples.

A quick checklist

Key takeaways

  • Collect less. It is the strongest protection.
  • Map where the data goes, including third parties and AI services.
  • Write a short, true policy in plain language.
  • Plan deletion before a request arrives.
  • For sensitive data, get proper advice.

Pick the tool you built most recently and fill in the table at the top for it. What surprised you?