Agent Wranglers

AIF-50Required

Train only on data people agreed to share

Use customer prompts, answers or documents to train a model only with a recorded legal basis, such as consent. Never send them to a provider that trains on them by default.

How to do it

Store a training flag per user or per customer account, off by default. Build training sets only from rows where the flag is on, and remove personal data first. Choose provider plans that do not train on your data, as in send models only the private data they need. Say in the privacy policy whether data is used for training and how to opt out. If you never train or fine-tune a model, only the provider part of this rule applies.

Examples

SQL example

SELECT count(*) FROM training_examples t JOIN accounts a ON a.id = t.account_id WHERE NOT a.allows_training;
-- PASS when the count is 0

TypeScript example

const rows = await db.query('SELECT prompt_redacted, answer_redacted FROM ai_call_text t JOIN accounts a ON a.id = t.account_id WHERE a.allows_training');

Python example

rows = db.execute("SELECT prompt_redacted, answer_redacted FROM ai_call_text t "
                  "JOIN accounts a ON a.id = t.account_id WHERE a.allows_training").fetchall()

How to check

The script that builds training sets selects only rows with the flag on. A test with one opted-in and one opted-out user produces a set with only the first user's data. The terms of each provider plan in use say it does not train on your data.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/ai-features/logs-privacy-and-feedback/consent-before-training">Agent Wranglers AI features playbook</a>. In code you write, add a comment next to it with the same link.