Audit Log Specification for AI Actions

Define what an assistant must log so actions can be reviewed later.

Added October 15, 2026. Written with AI assistance and checked for clarity and placeholders; not reviewed by a lawyer, accountant, clinician or other professional. How these prompts are made

The Open buttons send the prompt text as currently shown below to that site only when you click. Fill in the placeholders first.

[VERIFY] is an editorial flag, not a blank to fill. Wherever the prompt shows [VERIFY], check that item against a reliable source before you use it (what [VERIFY] means).

Specify an audit log for the actions of an AI assistant at [ORGANISATION]. Actions it can take: [ACTIONS]. Who needs to review logs and why: [REVIEWERS]. Retention constraints: [RETENTION_CONSTRAINTS]. Privacy considerations: [PRIVACY_CONSIDERATIONS].

Define the log fields: timestamp, session id, user, request summary, tools called with arguments (redacted where needed), results, approvals and who gave them, errors, prompt version, and model identifier. Write rules for what not to log (secrets, full documents, sensitive fields) and how to redact. Provide a sample log entry in JSON, a list of questions the log must be able to answer ('who approved this payment?', 'what did the assistant see?'), a weekly review checklist, alert conditions (unusual volume, repeated failures, actions outside hours), and an access policy for the logs. Add a retention schedule with deletion procedure.

Mark requirements that come from regulation as [VERIFY] with the compliance owner.

Add three review questions with the log fields that answer them: 'Why did the assistant email this person?' (request summary, tool call, approval id), 'Which prompt version was running on 3 June?' (prompt version, timestamp), and 'Was any sensitive data shown to the model?' (redaction flags). Show a sample JSON entry.

Fill in before use

Optional: type your details and the prompt above updates. Nothing is saved or sent.

Replace each bracketed placeholder with your own details, then paste into Any AI or another assistant.

Rate this prompt

Related prompts