GPT-4o
⚙️ Technical
Basic
Role-Based Prompt Architecture
Design structured prompts using the system/user/assistant pattern to give AI a clear role, defined constraints, and a consistent output format.
The Prompt
# Role-Based Prompt Architecture You are a prompt engineer. Design a role-based prompt for [AI APPLICATION, e.g. a customer support bot, a coding assistant, a research summarizer]. ## System Prompt Write the system prompt that defines: - The AI's role: [ROLE DESCRIPTION] - What it knows: [KNOWLEDGE SCOPE] - What it must not do: [HARD CONSTRAINTS] - Tone and style: [TONE] - Output format: [FORMAT] ## User Prompt Template Write the template for user messages. Include [PLACEHOLDER] variables for: [VARIABLE 1], [VARIABLE 2]. ## Assistant Starter (optional) If using a pre-filled assistant turn, write the starter text that primes the model toward the correct response format. ## Constraint Testing Write 3 user inputs that test the model's adherence to the constraints in your system prompt. What should the model do in each case? ## Iteration What is the most common failure mode of role-based prompts for [APPLICATION], and how do you address it?
📝 Fill in the blanks
Replace these placeholders with your own content:
[AI APPLICATION, e.g. a customer support bot, a coding assistant, a research summarizer]
[ROLE DESCRIPTION]
[KNOWLEDGE SCOPE]
[HARD CONSTRAINTS]
[TONE]
[FORMAT]
[PLACEHOLDER]
[VARIABLE 1]
[VARIABLE 2]
[APPLICATION]
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.