Guide Guide
AI and privacy
AI in Gridkiln writes steps for you to accept; it never changes data out of sight, never writes an output and never sends a message. It is off until you turn it on, and before anything is sent you see exactly what will be sent.
For keeping personal data on this computer in general, read Keep sensitive data on this computer first.
Turning AI on#
- Open Settings › AI (or click the Ask box while it reads “Ask is off. Turn on AI…”).
- Under Use AI, choose On. Until you do: “Off. Nothing is sent anywhere.”
- Under Providers, choose Add provider. In Add an AI provider, choose the Kind:
- On this computer: a model server on this computer, such as Ollama, LM Studio or llama.cpp, at its Address. Nothing leaves the computer.
- Your own key: a provider you have an account with, such as Anthropic or an OpenAI-compatible service. The API key is “Saved in this computer’s keychain and only shown as saved.”
- Hosted service: the Gridkiln hosted service, with a licence token. Give it a Name (how it is listed here and in the request log) and a Model, and optionally a price per million tokens so the app can estimate costs. Test connection checks it without sending any of your data; Save keeps it. Make default chooses which provider is used.
- AI in this project: Allowed or Forbidden. A project that forbids AI blocks every request from it, for everyone who opens it.
What is sent at each privacy level#
Each project has a privacy level, in Settings › AI privacy (under “This project”):
| Privacy level | What can be sent |
|---|---|
| Column names and types only | Table and column names and types, the step sentences and the pipeline’s structure. “No row values or statistics are sent at this privacy level.” |
| Names and types, plus profile statistics | Also counts, distinct counts, minimum and maximum, pattern shapes, and the most common values of columns with at most 50 distinct values |
| Names and types, statistics and up to 20 sample rows | Also up to 20 sample rows. “At most 20 rows are sent, without the sensitive columns.” |
Most this project allows sets a limit for everyone who opens the project; it is saved in the project file. Send names of sensitive columns decides whether a sensitive column’s name may be sent, or appears only as “(1 sensitive column withheld)”.
Columns tagged as sensitive are never sent, at any level: not their values, not their statistics, not their samples.
Before the first request: exactly what will be sent#
The first request from a project, at each privacy level, opens Exactly what will be sent and waits for you. It shows the destination (such as “Mock model on this computer” or “Anthropic, with your key”), the privacy level, the size in characters and tokens, and then, table by table, what goes and what is withheld, struck through with the reason (“withheld: tagged sensitive”). The request, word for word is the literal text, selectable; Show as sent (JSON) shows the exact payload, and Copy the request copies it. “Nothing is sent until you choose Send. Every request is logged and can be read back.”
Choose Send, or Cancel, or Change the privacy level first. Show this before every request keeps the dialog for every request, not only the first.
You can see what would be sent without sending anything, and even while AI is off: What AI would see of this pipeline in the command palette.
The request log#
Every request and its answer are logged per project, in Settings › AI › Request log: when, the job, the provider, the privacy level, the tokens and the time. Show what was sent opens a request; withheld columns are listed (“Withheld (tagged sensitive): email”). Clear log clears it.
What AI can do#
| Job | Where |
|---|---|
| Build | Type in the Ask box (⌘L / Ctrl+L), such as “remove test orders and total revenue by month for 2026”, and press Enter |
| Explain | Explain this pipeline (AI), Explain the selected step (AI), Explain the selected step’s error (AI), Explain the SQL query in plain words (AI), Explain the formula being written (AI), Why is this run different? (AI) |
| Suggest | Suggest the next step (AI), Suggest checks (AI), Suggest join keys (AI), Suggest clearer column names (AI), Suggest column descriptions (AI) |
| Write | Write a formula with AI…, Write a pattern with AI…, Write SQL with AI…, Convert a formula, SQL or script with AI… |
| Answer | Ask a question about the data (AI)…: it writes a query, shows it, runs it read-only and shows the result in the Ask a question tab, with Keep as step, Open as a new pipeline and Dismiss |
| Classify and extract | The Classify or extract with AI step (below) |
Every one of these is in the command palette, and AI items sit at the bottom of every right-click menu, greyed with “AI is off” while it is off.
Accepting a proposal#
A Build request puts a proposal at the top of the recipe: “Proposed for ‘remove test orders…’”, one row per step with a checkbox, a Preview and its impact line computed on the real data. A step that would do nothing says so; a step the app could not check is unticked with the reason. Untick what you do not want, then Accept N selected, Accept all or Accept none. What was sent opens the logged request. Accepted steps are ordinary steps with an “AI-made” badge and your request in their note; Undo removes them. “Accept none” adds nothing.
Row-level AI steps#
Classify or extract with AI categorises free text, pulls out names or amounts, standardises addresses or translates, row by row, as an explicit step.
- It runs on a sample first and shows the results, with a confidence column, before the full run.
- It states the expected time and cost up front, for the values it has not answered before.
- Answers are stored as a mapping from input to output, with the project. A re-run reuses them and asks the model only about new values, so results stay stable. Answers you correct are kept and never asked again.
- Classification asks each batch twice by default and lowers the confidence where the two answers disagree.
- It sends the input columns it names, whatever the project’s privacy level, because that is its job; it shows what it will send and the cost first. It never sends a column tagged sensitive unless the step records that choice, and a project that forbids AI blocks it.
Runs use stored answers only, including runs you start by hand, so a run gives the same result each time. When a run finds inputs with no stored answer, the Run dialog offers Ask AI now before the run starts. A scheduled workflow can be allowed to ask: in the workflow’s Settings tab, under AI during runs, switch on Row-level AI steps may ask AI during runs. What it costs shows, before you switch it on, how many values have no stored answer now and about how long and how much asking them would take (“Counted now, with each pipeline’s default parameters; a run’s own values may need more.”). Switched off, “such a run follows the step’s “No stored answer” setting and nothing is sent.” On the command line, --allow-live-ai lets a run ask the model.
Protecting sensitive data#
The Protect family of steps changes what is written: Tag personal data, Mask values, Hash values, Tokenise values, Generalise values, Remove personal data, Make a safe sample, and Turn tokens back into values (only on a computer that holds the token vault). See Steps by family and Keep sensitive data on this computer.
Other things that never leave the computer#
- Usage reporting is off by default.
- Logs hold counts and messages, never row values.
- Passwords and keys stay in the operating system’s keychain.
- Settings › Storage can encrypt the project’s cached data and delete it securely.