Skip to content
Cognolo

Cognolo is in early access, and its hosted service isn’t open yet. This guide describes how the dashboard and the runtime are built to work. Some parts, such as the GitHub App and the code reader, have so far been tried only on sample code. Ask about early access

Guide › Start here

How personal details are protected

The assistant reads what it needs to help, not everything: secret fields are kept from the AI model, ID numbers are cut to their last 4, and conversations stay in your app.

The protections on this page that change what the AI model reads come with version 0.2.1 of the Cognolo package. Until your app runs it, what a tool returns reaches the AI model as your app’s code returns it.

An assistant has to read your records to be useful: “what’s Dana’s phone number?” only works if it can see her phone number. But it never needs a password, and it rarely needs a whole social security number. So Cognolo sorts what your app’s tools hand the assistant into three kinds. This happens inside your app, before anything is sent, and the AI model has no say in it.

Secrets
Passwords, password hashes, tokens, API keys, one-time codes. They are taken out before the AI model reads a tool’s result, wherever they appear. No setting turns this off.
ID numbers
Social security, tax, passport and licence numbers, card numbers and bank accounts. Cut to their last 4 characters (“•••-••-6789”), so the assistant can still say “the one ending 6789”. This covers notes and other text, not only fields named for them.
Contact details
Names, phone numbers, emails, addresses, dates of birth. Sent as they are, because helping with them is the assistant’s job.

What stays in your app

  • Conversations. They’re kept in your app’s own database; Cognolo keeps none. See Where conversations are kept.
  • The full values. The AI model reads the shortened copy; your records keep the real one, and your people see what the assistant did in the panel as before.
  • What people asked. Usage reports to Cognolo carry counts and outcomes, never what was asked. They carry a record only if your developer turns details on, and then with secrets and ID numbers treated as above.
  • Who is asking. When your app says who is asking, Cognolo gets only a code made from the person’s id: never their id, name or email.
  • The AI conversation itself. With your own AI key, messages go from your app straight to your AI provider, under its terms. Cognolo isn’t in between, unless you turn on the conversation filter, which checks a flagged person’s messages first.

Check which fields to protect

Cognolo recognises secrets and ID numbers by their field names, and spots card, social security and bank numbers and keys inside text. That can miss a field with an unusual name: a passport number kept in a field called govRef, or a key in vaultThing. So on your app’s Setup page, in Personal details the assistant reads, under Fields to protect, go through the fields Cognolo found in your app’s code and mark any that hold a secret (Hidden) or an ID number (Last 4).

  • One list for the whole app. It covers every environment, and a choice covers every field with exactly that name, as your tools return it, on any record: govRef doesn’t cover govRefNumber, and a value written into other text isn’t covered by its field’s choice (ID numbers and keys in text are still spotted by their shape).
  • Fields protected by their names are marked. You can make an ID field Hidden, but not send one that looks like a secret.
  • Add a field by name when the list doesn’t show it, such as one a tool returns under its own name. Your developer knows the names.
  • New fields are flagged. When a later read of your code finds new fields, Today asks you to check them.
  • The list is as new as Cognolo’s last read of your code. The card says which commit that was, and when main has moved on or an environment runs newer code, so you know fields added since aren’t listed yet: add any you know of by name.
  • Today it lists fields for apps using Prisma. For other apps, add the names by hand.
  • An AI helper can add fields through the connector, but only you can take a field off the list.
  • With ID numbers read in full (the same card, per environment): a field marked Hidden is never read in full, and hiding a field takes it off every environment’s read-in-full list, noted in History. A field marked Last 4 counts as an ID number there, so you can read it in full in one environment while the others keep the last 4; ID and card numbers written inside its text are still masked.

For your developer: the list reaches your app with its other settings, from version 0.2.1. If your app starts while it can’t reach Cognolo, it has no list until it can, though look-ups still work; so for fields that matter most, also name them where the app connects to Cognolo (protect in the route’s options), which works with no connection at all.

Shortened values aren’t written back

If the assistant proposes saving “•••• 4242” over a real card number, or a hidden value over a real one, the change is refused before it runs. The same goes for a change someone edits that way before approving it.

When the assistant needs an ID number in full

On your app’s Setup page, under Personal details the assistant reads, you can name ID fields the assistant may read in full, for each environment: for example a licence number, for a rental desk that checks licences. Type the name your app stores it under, such as driversLicense or taxId, or pick one offered: the ID fields Cognolo found in your app’s code come first, then the common ones; capitals, spaces, _ and - don’t matter, and your developer knows the exact name (it’s the name in your database, or in what the tool returns). Saving a new field asks you to confirm that you choose this and accept the terms for personal details you send in full. Secrets can’t be named there: a password is never sent, whatever is set. Fields that aren’t ID numbers, such as names and phone numbers, already go in full, so they don’t need naming. We recommend naming none.

What isn’t changed

  • What a person types. If someone types a card or social security number into the chat, it’s sent as they typed it. The panel warns them first.
  • Pictures a person attaches.
  • Your own instructions to the assistant, the rules you write and the workflows you save, and anything the assistant wrote itself.
  • A field Cognolo doesn’t recognise and you haven’t marked. See Check which fields to protect.

For your developer

The best protection is a tool that only returns what it needs: name the fields it returns, leave secret fields out, return a limited number of rows, and stay inside the signed-in person’s organisation. Name sensitive fields plainly in your database, and don’t write secrets into free text: no automatic protection is perfect. Cognolo’s check on pull requests reviews every new look-up too.