HomeAI ToolsPrompt Patterns

Prompt Engineering Cookbook

Production-tested prompt patterns and templates. Copy, paste, customize. 100% free.

12+ Patterns
Copy-Paste Ready
Real Examples

Search & Filter

Showing 12 of 12 patterns

Chain-of-Thought Reasoning

Reasoningintermediate
📝 Template
Let's solve this step by step:

1. First, analyze [problem]
2. Then, consider [factors]
3. Finally, conclude [solution]

Think through each step carefully before moving to the next.

💡 When to Use

Use for mathematical problems, logical reasoning, or any task requiring explicit step-by-step thinking.

#reasoning#math#logic#step-by-step

Few-Shot Learning Pattern

Few-Shotbeginner
📝 Template
Here are some examples:

Example 1: [input] → [output]
Example 2: [input] → [output]
Example 3: [input] → [output]

Now do the same for: [new input]

💡 When to Use

When you need consistent formatting or want the model to follow a specific pattern

#examples#classification#formatting#pattern-matching

Data Analyst System Prompt

System Promptsintermediate
📝 Template
You are an expert data analyst. Your role is to:
- Analyze data objectively
- Identify patterns and trends
- Provide actionable insights
- Support conclusions with evidence
- Present findings clearly

Always structure your analysis with: 1) Key findings, 2) Supporting data, 3) Recommendations.

💡 When to Use

For data analysis, business intelligence, or when you need structured analytical thinking

#analysis#business#data#insights#system-prompt

Structured JSON Output

Structured Outputintermediate
📝 Template
Extract the following information and return as JSON:

{
  "field1": "value",
  "field2": "value",
  "field3": ["array", "values"]
}

Text: [input text]

💡 When to Use

When you need machine-parseable output or integration with other systems

#json#structured#extraction#api#integration

Customer Service Agent

System Promptsintermediate
📝 Template
You are a friendly, professional customer service agent. Guidelines:

1. Always greet warmly
2. Listen to the customer's issue
3. Acknowledge their frustration
4. Provide clear solutions
5. Confirm resolution
6. Thank them for their patience

Tone: Empathetic, solution-focused, professional yet warm.

💡 When to Use

For customer support automation, chatbots, or training customer service teams

#customer-service#support#empathy#problem-solving#system-prompt

Code Generation Pattern

Codeadvanced
📝 Template
Write [language] code to [task].

Requirements:
- [requirement 1]
- [requirement 2]
- [requirement 3]

Include:
- Type hints/annotations
- Error handling
- Comments explaining logic
- Example usage

💡 When to Use

When you need production-ready code with proper structure and error handling

#code#programming#development#python#typescript

Document Summarization

Summarizationbeginner
📝 Template
Summarize the following in [length]:

[document]

Focus on:
1. Main points
2. Key takeaways
3. Action items (if any)

Format: Bullet points, clear and concise.

💡 When to Use

For long documents, meeting notes, reports, or any content that needs distillation

#summarization#content#analysis#notes#reports

Creative Content Generation

Creativeintermediate
📝 Template
Write [content type] about [topic] for [audience].

Style: [tone/voice]
Length: [word count]
Key message: [main point]

Make it engaging, memorable, and action-oriented.

💡 When to Use

For marketing copy, product descriptions, social media, or any creative content

#creative#marketing#copywriting#content#engagement

SQL Query Generation

Codeadvanced
📝 Template
Write a SQL query to [task].

Database schema:
[table definitions]

Requirements:
- [requirement 1]
- [requirement 2]

Include:
- Proper indexing hints
- Comments
- Example output

💡 When to Use

For database queries, data analysis, or reporting tasks

#sql#database#queries#data#analytics

Context-Aware Translation

Translationintermediate
📝 Template
Translate the following from [source language] to [target language].

Context: [domain/industry]
Tone: [formal/casual/technical]

Preserve:
- Intent and meaning
- Cultural nuances
- Technical accuracy

Text: [input]

💡 When to Use

For translations that require cultural context and industry-specific terminology

#translation#localization#multilingual#i18n#cultural

Professional Email Response

Communicationbeginner
📝 Template
Write a professional email response to:

[incoming email]

Tone: [professional/friendly/formal]
Key points to address:
1. [point 1]
2. [point 2]
3. [point 3]

Include appropriate greeting and closing.

💡 When to Use

For email automation, customer communication, or improving email writing skills

#email#communication#business#professional#correspondence

Error Debugging Pattern

Codeadvanced
📝 Template
Debug this error:

Error message: [error]
Code: [code snippet]
Context: [what you were trying to do]

Provide:
1. Root cause
2. Explanation
3. Fixed code
4. Prevention tips

💡 When to Use

When debugging code errors or teaching programming concepts

#debugging#errors#troubleshooting#code#problem-solving

Need Custom Prompt Engineering?

These patterns are great for getting started. But for complex workflows, you need custom-engineered prompts optimized for your specific use case.

I've designed prompts for systems processing millions of documents, reducing costs by 70%+ while improving accuracy. Let's build yours.