Basics of Prompting
Master the art of prompt engineering with these essential principles and techniques. Whether you’re new to AI or looking to improve your results, this guide covers everything you need to know about creating effective prompts.
What Are Prompts?
Section titled “What Are Prompts?”A prompt is the instruction or question you give to an AI model to get the response you want. Think of it as the bridge between your ideas and the AI’s capabilities. The quality of your prompt directly impacts the quality of the AI’s response.
Why Prompts Matter
Section titled “Why Prompts Matter”- Clarity leads to better results: Clear prompts produce focused, relevant responses
- Efficiency saves time: Well-crafted prompts reduce the need for follow-up questions
- Consistency enables scaling: Good prompts can be reused and shared with teams
- Control improves outcomes: Specific prompts help you get exactly what you need
Essential Principles
Section titled “Essential Principles”1. Be Clear and Specific
Section titled “1. Be Clear and Specific”❌ Vague prompt:
Write something about marketing.
✅ Clear prompt:
Write a 500-word blog post about social media marketing strategies for small businesses, focusing on Instagram and LinkedIn. Include 3 actionable tips and target an audience of business owners with limited marketing budgets.
2. Provide Context
Section titled “2. Provide Context”Give the AI relevant background information to understand your situation and requirements.
Example:
You are a customer service representative for a software company. A customer is frustrated because they can't log into their account. Write a helpful, empathetic response that offers specific solutions and shows you understand their frustration.
Customer's message: "I've been trying to log in for 30 minutes and it keeps saying my password is wrong, but I know it's correct!"
3. Define the Role
Section titled “3. Define the Role”Tell the AI what role or persona to adopt. This helps shape the tone, expertise level, and perspective of the response.
Examples:
- “You are a professional financial advisor…”
- “Act as a creative writing coach…”
- “You are a technical documentation specialist…”
- “Respond as a friendly customer support agent…“
4. Specify the Format
Section titled “4. Specify the Format”Clearly state how you want the output structured and formatted.
Example:
Create a project timeline for launching a new product. Format as:
## Phase 1: Planning (Weeks 1-4)- Task 1: Description and duration- Task 2: Description and duration
## Phase 2: Development (Weeks 5-12)- Task 1: Description and duration- Task 2: Description and duration
Include dependencies and critical milestones.
Basic Prompt Structure
Section titled “Basic Prompt Structure”The CLEAR Framework
Section titled “The CLEAR Framework”Use this simple framework to structure your prompts:
C - Context: Set the scene and provide background L - Length: Specify desired output length E - Examples: Provide samples when helpful A - Audience: Define who the output is for R - Requirements: List specific needs and constraints
Example using CLEAR:
Context: You are writing for a company blog about productivity software.Length: 800-1000 wordsExamples: Like our previous posts about time management and workflow optimizationAudience: Busy professionals who want to improve their productivityRequirements: Include 5 specific software recommendations, pros/cons for each, and actionable implementation tips.
Write a comprehensive guide to choosing the right productivity software for remote teams.
Basic Template Structure
Section titled “Basic Template Structure”[ROLE/CONTEXT]You are a [SPECIFIC_ROLE] with expertise in [DOMAIN].
[TASK][SPECIFIC_ACTION] about [TOPIC] that [SPECIFIC_OUTCOME].
[REQUIREMENTS]- Requirement 1- Requirement 2- Requirement 3
[FORMAT]Structure the response as:1. Section 12. Section 23. Section 3
[ADDITIONAL_CONTEXT]Additional relevant information: [CONTEXT_DETAILS]Target audience: [AUDIENCE]Tone: [TONE_DESCRIPTION]
Essential Techniques
Section titled “Essential Techniques”1. Use Examples (Few-Shot Prompting)
Section titled “1. Use Examples (Few-Shot Prompting)”Show the AI what you want by providing examples:
Write product descriptions following this style:
Example 1:Product: Wireless EarbudsDescription: "Experience crystal-clear audio anywhere with our premium wireless earbuds. Featuring 24-hour battery life, noise cancellation, and sweat-resistant design, they're perfect for workouts, commutes, and calls. Quick 15-minute charge gives you 3 hours of playtime."
Example 2:Product: Standing DeskDescription: "Transform your workspace with our height-adjustable standing desk. Switch between sitting and standing in seconds with smooth electric adjustment. Built from sustainable bamboo with a spacious surface for multiple monitors. Your back will thank you."
Now write a description for:Product: Blue Light Glasses
2. Break Down Complex Tasks
Section titled “2. Break Down Complex Tasks”For complex requests, break them into smaller, manageable steps:
Help me create a comprehensive marketing plan. Let's do this step by step:
Step 1: Analyze the target audience for a fitness app aimed at busy professionals- Demographics- Pain points- Preferred communication channels- Buying behavior
After you complete Step 1, I'll ask for Step 2 (competitive analysis).
3. Use Constraints to Improve Focus
Section titled “3. Use Constraints to Improve Focus”Add specific limitations to get more focused results:
Write a summary of renewable energy benefits with these constraints:- Exactly 3 paragraphs- Focus only on economic benefits- Include specific statistics- Write for policymakers- Avoid technical jargon- Maximum 150 words
4. Ask for Reasoning
Section titled “4. Ask for Reasoning”Request that the AI explain its thinking process:
Recommend the best project management tool for a 10-person startup. Please:1. List your top 3 recommendations2. Explain your reasoning for each choice3. Compare their strengths and weaknesses4. Provide a final recommendation with justification
Consider factors: budget constraints, ease of use, scalability, and integration needs.
Common Prompt Patterns
Section titled “Common Prompt Patterns”1. Information Request
Section titled “1. Information Request”Explain [TOPIC] in simple terms for someone who [AUDIENCE_DESCRIPTION]. Include [SPECIFIC_ELEMENTS] and focus on [SPECIFIC_ASPECT].
2. Content Creation
Section titled “2. Content Creation”Create [CONTENT_TYPE] about [TOPIC] for [AUDIENCE]. The tone should be [TONE] and include [SPECIFIC_REQUIREMENTS]. Format as [FORMAT_DESCRIPTION].
3. Analysis and Evaluation
Section titled “3. Analysis and Evaluation”Analyze [SUBJECT] and evaluate it based on [CRITERIA]. Provide pros and cons, and make a recommendation. Consider [SPECIFIC_FACTORS] in your analysis.
4. Problem Solving
Section titled “4. Problem Solving”I have the following problem: [PROBLEM_DESCRIPTION]
Context: [BACKGROUND_INFORMATION]Constraints: [LIMITATIONS]Goals: [DESIRED_OUTCOMES]
Please suggest solutions and rank them by feasibility and impact.
5. Creative Tasks
Section titled “5. Creative Tasks”Generate [NUMBER] creative ideas for [PURPOSE]. Each idea should:- Be unique and original- Target [SPECIFIC_AUDIENCE]- Align with [BRAND/VALUES]- Be feasible to implement with [RESOURCE_CONSTRAINTS]
For each idea, provide a brief description and explain why it would be effective.
Variables and Placeholders
Section titled “Variables and Placeholders”Use placeholders to create reusable prompt templates:
Basic Variables
Section titled “Basic Variables”[TOPIC] - The main subject[AUDIENCE] - Target audience[TONE] - Desired writing style[LENGTH] - Word/character count[FORMAT] - Output structure[CONTEXT] - Background information[GOAL] - Desired outcome
Advanced Variables
Section titled “Advanced Variables”[INDUSTRY] - Specific industry context[EXPERTISE_LEVEL] - Technical depth required[TIMEFRAME] - Urgency or deadline[BUDGET] - Resource constraints[COMPETITORS] - Market context[BRAND_VOICE] - Specific communication style[CALL_TO_ACTION] - Desired user action
Example Template:
You are a [ROLE] writing for [AUDIENCE] in the [INDUSTRY] industry.
Create a [CONTENT_TYPE] about [TOPIC] that:- Is approximately [LENGTH] words- Uses a [TONE] tone- Includes [SPECIFIC_REQUIREMENTS]- Targets readers who [AUDIENCE_CHARACTERISTICS]
Context: [BACKGROUND_INFORMATION]Goal: [DESIRED_OUTCOME]
Best Practices
Section titled “Best Practices”Do’s ✅
Section titled “Do’s ✅”- Start with clear objectives: Know what you want before you write the prompt
- Be specific about format: Tell the AI exactly how to structure the output
- Provide relevant context: Give background information that helps the AI understand
- Use examples when helpful: Show, don’t just tell, what you want
- Iterate and refine: Improve your prompts based on the results you get
- Test with different inputs: Make sure your prompts work for various scenarios
- Save successful prompts: Build a library of proven prompts for reuse
Don’ts ❌
Section titled “Don’ts ❌”- Don’t be vague: Avoid unclear or ambiguous instructions
- Don’t overload: Don’t try to accomplish too many things in one prompt
- Don’t assume knowledge: Don’t expect the AI to know your specific context
- Don’t forget to specify tone: Be clear about the style and voice you want
- Don’t ignore formatting: Structure your prompts for easy reading
- Don’t skip testing: Always test prompts before using them in production
- Don’t make it too complex: Keep prompts as simple as possible while being complete
Common Mistakes and Solutions
Section titled “Common Mistakes and Solutions”Mistake 1: Too General
Section titled “Mistake 1: Too General”Problem: “Write about technology” Solution: “Write a 500-word explanation of cloud computing benefits for small business owners who are considering migrating from on-premise solutions”
Mistake 2: Missing Context
Section titled “Mistake 2: Missing Context”Problem: “Make this better” [with attached content] Solution: “Improve this product description to better appeal to budget-conscious families. Focus on value proposition and practical benefits. Current version is too technical.”
Mistake 3: Unclear Expectations
Section titled “Mistake 3: Unclear Expectations”Problem: “Give me some ideas” Solution: “Generate 5 creative marketing campaign ideas for a sustainable clothing brand targeting millennials. Each idea should include a concept, target channel, and expected outcome.”
Mistake 4: No Format Specification
Section titled “Mistake 4: No Format Specification”Problem: “Explain the benefits of exercise” Solution: “Create a bulleted list of 7 key exercise benefits, with each point being 1-2 sentences long, written for someone just starting their fitness journey.”
Mistake 5: Conflicting Instructions
Section titled “Mistake 5: Conflicting Instructions”Problem: “Write a brief but comprehensive detailed summary” Solution: “Write a comprehensive summary in exactly 200 words, covering the 3 most important points”
Getting Started Tips
Section titled “Getting Started Tips”1. Start Simple
Section titled “1. Start Simple”Begin with basic prompts and gradually add complexity as you get comfortable:
Beginner: “Write a professional email declining a meeting” Intermediate: “Write a polite but firm email declining a meeting due to scheduling conflicts, suggesting alternative dates, and maintaining a positive relationship” Advanced: “You are a busy executive’s assistant. Write a diplomatically worded email declining a non-essential meeting with a vendor, citing calendar conflicts, while keeping the door open for future discussions. Tone should be professional but warm.”
2. Use the Scientific Method
Section titled “2. Use the Scientific Method”- Hypothesis: What do you expect the prompt to produce?
- Test: Run the prompt and see what happens
- Analyze: Compare results to expectations
- Refine: Adjust the prompt based on learnings
- Repeat: Continue improving until satisfied
3. Build a Prompt Library
Section titled “3. Build a Prompt Library”Create categories for different types of prompts:
- Communication: Emails, messages, presentations
- Content: Blog posts, social media, marketing copy
- Analysis: Data interpretation, competitive research
- Creative: Brainstorming, ideation, storytelling
- Technical: Documentation, code review, explanations
4. Practice with Variables
Section titled “4. Practice with Variables”Start with this template and modify it for different use cases:
You are a [PROFESSIONAL_ROLE] helping [TARGET_AUDIENCE].
Create a [DELIVERABLE_TYPE] that [MAIN_OBJECTIVE].
Requirements:- [REQUIREMENT_1]- [REQUIREMENT_2]- [REQUIREMENT_3]
Additional context: [BACKGROUND_INFO]Success criteria: [WHAT_GOOD_LOOKS_LIKE]
Next Steps
Section titled “Next Steps”Ready to take your prompting skills to the next level?
- Practice with templates: Try the Prompt Templates for common use cases
- Learn advanced techniques: Explore Advanced Prompting strategies
- Optimize performance: Check out Optimization Strategies
- Follow best practices: Review comprehensive Best Practices
- See real examples: Browse Content Creation Examples for inspiration
Remember: Great prompting is a skill that improves with practice. Start with the basics, experiment regularly, and don’t be afraid to iterate. The more you practice, the better your results will become!