AI Prompt Builder

Build effective prompts for ChatGPT, Claude, and other AI models with templates and best practices

Quick Templates

Prompt Sections

Add section:

Generated Prompt

~58 tokens
You are an expert software engineer with 15 years of experience in full-stack development.

**Context:**
I am building a web application using React and Node.js.

**Task:**
Help me implement user authentication with JWT tokens.

**Output Format:**
Provide code examples with comments explaining each step.

Related Tools

Complete Guide to Prompt Engineering

What is Prompt Engineering?

Prompt engineering is the art and science of crafting effective instructions for AI language models. A well-designed prompt can dramatically improve the quality, relevance, and usefulness of AI responses.

The CRAF Framework:

Context - Provide relevant background information
Role - Define who the AI should be
Action - Clearly state what you want done
Format - Specify how you want the output

Prompt Components

1

Role / Persona

Tell the AI who to be: "You are an expert..." This sets the knowledge level, tone, and perspective.

2

Context

Provide background information the AI needs to understand your situation and give relevant responses.

3

Task

Clearly state what you want the AI to do. Be specific and break complex tasks into steps if needed.

4

Output Format

Specify how you want the response: bullet points, JSON, table, step-by-step, etc.

5

Constraints

Set boundaries: word limits, topics to avoid, required inclusions, style requirements.

Best Practices

✓ Do

  • • Be specific and detailed
  • • Use examples when helpful
  • • Break complex tasks into steps
  • • Specify the desired output format
  • • Iterate and refine your prompts

✗ Don't

  • • Be vague or ambiguous
  • • Overload with too much info at once
  • • Assume the AI knows context
  • • Use unclear abbreviations
  • • Ask multiple unrelated questions

Example Prompts

💡 Before & After

❌ Weak prompt:
"Write about Python"
✓ Strong prompt:
"You are a Python expert and educator. Write a beginner-friendly guide explaining list comprehensions in Python. Include 3 practical examples with comments, common mistakes to avoid, and when to use loops instead. Keep it under 500 words."