Prompt Library ⚙️ Technical AI Reasoning Audit Trail
GPT-4o ⚙️ Technical Advanced

AI Reasoning Audit Trail

Build a logging system that captures AI reasoning steps, intermediate outputs, and final decisions for auditing, debugging, and compliance.

👁 0 views ⎘ 0 copies ♥ 0 likes

The Prompt

# AI Reasoning Audit Trail

You are an AI governance engineer. Design an audit trail system for [AI APPLICATION] at [COMPANY NAME].

## What to Log

For every AI request and response, capture:
- Request ID and timestamp
- Input (full or hashed based on [PRIVACY POLICY])
- Model used and version
- Intermediate reasoning steps (if chain-of-thought is used)
- Final output
- Confidence score or uncertainty flags
- Human review outcome (if applicable)

## Log Schema

Design the log schema for [STORAGE SYSTEM, e.g. PostgreSQL, BigQuery, S3 + Athena]. Include all fields and data types.

## Retention Policy

How long are logs retained? Define rules for [REGULATION, e.g. GDPR, HIPAA, SOC 2] compliance.

## Access Controls

Who can query logs, and under what conditions? Define roles: [ROLE 1], [ROLE 2], [ROLE 3].

## Audit Interface

What does the audit dashboard show for [COMPLIANCE TEAM] when investigating a specific decision made by [AI APPLICATION]?

📝 Fill in the blanks

Replace these placeholders with your own content:

[AI APPLICATION]
[COMPANY NAME]
[PRIVACY POLICY]
[STORAGE SYSTEM, e.g. PostgreSQL, BigQuery, S3 + Athena]
[REGULATION, e.g. GDPR, HIPAA, SOC 2]
[ROLE 1]
[ROLE 2]
[ROLE 3]
[COMPLIANCE TEAM]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into GPT-4o

Open your preferred AI assistant and paste the prompt to get started.