Prompt Library ⚙️ Technical Constitutional AI Self-Critique Loop
GPT-4o ⚙️ Technical Advanced

Constitutional AI Self-Critique Loop

Build a self-critique prompting loop where AI reviews its own output against a defined set of principles before delivering the final response.

👁 0 views ⎘ 0 copies ♥ 0 likes

The Prompt

# Constitutional AI Self-Critique Loop

You are an advanced prompt architect. Design a self-critique loop for [APPLICATION, e.g. a customer-facing chatbot, a content generation tool, a legal document drafter].

## Constitution Design

Write [NUMBER] principles the AI must follow. Examples for [APPLICATION]:
1. [PRINCIPLE 1, e.g. Never make promises the company cannot keep]
2. [PRINCIPLE 2, e.g. Always cite sources when making factual claims]
3. [PRINCIPLE 3, e.g. Flag any content that could be interpreted as legal advice]

## Loop Architecture

The two-step process:
- **Step 1 — Draft:** Generate an initial response to [USER REQUEST TYPE]
- **Step 2 — Critique:** A second AI call reviews the draft against every principle in the constitution and rewrites any violations

## Critique Prompt

Write the exact prompt used in Step 2. It must return: a list of violations found (or "none"), the revised response, and a confidence score.

## Termination

When does the loop stop? Define the maximum revision rounds and the exit condition.

## Evaluation

How do you measure whether the constitution improves output quality for [APPLICATION] over time?

📝 Fill in the blanks

Replace these placeholders with your own content:

[APPLICATION, e.g. a customer-facing chatbot, a content generation tool, a legal document drafter]
[NUMBER]
[APPLICATION]
[PRINCIPLE 1, e.g. Never make promises the company cannot keep]
[PRINCIPLE 2, e.g. Always cite sources when making factual claims]
[PRINCIPLE 3, e.g. Flag any content that could be interpreted as legal advice]
[USER REQUEST TYPE]

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.