Loading...
Loading...
A **prompt** is the instruction, question, or input you give to an AI system to generate a specific output.
# Module 2: Concepts - Basic Prompt Engineering ## 1. What is a Prompt? ### Definition A **prompt** is the instruction, question, or input you give to an AI system to generate a specific output. Think of it as: - A request to an assistant - Instructions to a tool - A conversation starter - A creative brief ### Why Prompts Matter The quality of your prompt directly affects the quality of the AI's response. **Analogy**: > Asking AI is like asking a very knowledgeable person for help. If you ask vaguely, you get vague answers. If you're specific and clear, you get useful responses. ### Simple Example ❌ **Bad Prompt**: "Write about dogs" ✅ **Good Prompt**: "Write a 200-word article explaining why dogs make good pets for families with young children" **Difference**: - Specific topic (dogs as family pets) - Clear audience (families with young children) - Defined length (200 words) - Clear format (article) --- ## 2. Types of Text Prompts ### 2.1 Content Creation Prompts **Purpose**: Generate new content from scratch **Examples**: - "Write a professional email declining a meeting invitation" - "Create a social media post announcing a new product launch" - "Draft a blog post introduction about sustainable living" **Key elements**: - What to create (email, post, article) - Topic or subject - Tone (professional, casual, friendly) - Length (if relevant) --- ### 2.2 Summarization Prompts **Purpose**: Condense long content into shorter form **Examples**: - "Summarize this article in 3 bullet points" - "Provide a one-paragraph summary of this research paper" - "Extract the key takeaways from this meeting transcript" **Key elements**: - What to summarize - Desired length - Format (bullets, paragraph, etc.) - Focus (main points, action items, etc.) --- ### 2.3 Transformation Prompts **Purpose**: Change content from one form to another **Examples**: - "Rewrite this email in a more formal tone" - "Convert these bullet points into a paragraph" - "Translate this text from English to Spanish" - "Simplify this technical explanation for a 10-year-old" **Key elements**: - Original content - Desired transformation - Target audience or style --- ### 2.4 Ideation Prompts **Purpose**: Generate ideas, brainstorm, explore possibilities **Examples**: - "Give me 10 blog post ideas about healthy eating" - "Suggest creative names for a coffee shop" - "What are some ways to improve team communication?" **Key elements**: - Topic or area - Number of ideas - Any constraints or preferences --- ### 2.5 Question & Answer Prompts **Purpose**: Get information, explanations, or clarifications **Examples**: - "What is photosynthesis? Explain in simple terms" - "How do I fix a leaky faucet?" - "What's the difference between HTTP and HTTPS?" **Key elements**: - Clear question - Desired depth of answer - Preferred explanation style --- ## 3. Elements of an Effective Prompt ### 3.1 Clarity **Be clear about what you want** ❌ Unclear: "Tell me about marketing" ✅ Clear: "Explain the difference between digital marketing and traditional marketing" --- ### 3.2 Specificity **Provide specific details** ❌ Vague: "Write a story" ✅ Specific: "Write a 300-word mystery story about a missing cat, set in a small town" --- ### 3.3 Context **Give relevant background information** ❌ No context: "Write an email to John" ✅ With context: "Write a professional email to John, my colleague, thanking him for his help with the presentation yesterday" --- ### 3.4 Format **Specify the desired output format** ❌ No format: "Give me information about exercise" ✅ With format: "Create a bullet-point list of 5 benefits of regular exercise" --- ### 3.5 Tone/Style **Indicate the desired tone** ❌ No tone: "Write about climate change" ✅ With tone: "Write an optimistic, encouraging article about individual actions that can help combat climate change" --- ### 3.6 Length **Specify desired length when relevant** ❌ No length: "Summarize this article" ✅ With length: "Summarize this article in exactly 3 sentences" --- ## 4. Prompt Structure Template ### Basic Template ``` [Role/Persona] + [Task] + [Context] + [Format] + [Tone] + [Constraints] ``` ### Example Breakdown **Prompt**: "Act as a career counselor. Write a 200-word motivational message for someone changing careers at age 40. Use an encouraging and supportive tone. Format it as a letter." - **Role**: Career counselor - **Task**: Write motivational message - **Context**: Career change at age 40 - **Format**: Letter - **Tone**: Encouraging and supportive - **Constraints**: 200 words --- ## 5. Text Prompting Use Cases ### 5.1 Professional Writing **Email Writing** ``` Write a professional email to my manager requesting time off for a family event next month. Keep it brief and polite. ``` **Report Writing** ``` Create an executive summary of this quarterly sales data. Focus on key trends and actionable insights. Keep it under 250 words. ``` **Proposal Writing** ``` Draft a project proposal for implementing a new customer feedback system. Include problem statement, proposed solution, and expected benefits. ``` --- ### 5.2 Creative Writing **Story Writing** ``` Write a short story (500 words) about a robot learning to paint. Make it heartwarming and suitable for children. ``` **Poetry** ``` Write a haiku about autumn leaves ``` **Dialogue** ``` Write a conversation between two friends discussing their favorite books. Make it natural and engaging. ``` --- ### 5.3 Educational Content **Explanations** ``` Explain quantum computing to a high school student using everyday analogies. Keep it under 300 words. ``` **Study Guides** ``` Create a study guide for the American Revolution covering key events, important figures, and outcomes. Use bullet points. ``` **Quiz Questions** ``` Generate 5 multiple-choice questions about photosynthesis for a middle school science class. ``` --- ### 5.4 Business Content **Marketing Copy** ``` Write a compelling product description for eco-friendly water bottles. Highlight sustainability and quality. Target environmentally conscious consumers. ``` **Social Media** ``` Create 3 engaging Instagram captions for a bakery's new cupcake flavor. Use a fun, friendly tone and include relevant hashtags. ``` **Presentations** ``` Create an outline for a 10-minute presentation on workplace diversity. Include key points and suggested talking points. ``` --- ## 6. Image Prompting Basics ### 6.1 What is Image Prompting? Describing in text what you want an AI to generate as an image. **Tools**: DALL-E, Midjourney, Stable Diffusion, Canva AI --- ### 6.2 Key Elements of Image Prompts 1. **Subject**: What is in the image? - "A golden retriever" - "A futuristic city" - "A bowl of fruit" 2. **Style**: What artistic style? - "Photorealistic" - "Watercolor painting" - "Digital art" - "Cartoon style" 3. **Details**: Specific characteristics - "Wearing a red collar" - "At sunset" - "With neon lights" 4. **Composition**: How is it arranged? - "Close-up portrait" - "Wide landscape view" - "Bird's eye view" 5. **Lighting**: What kind of lighting? - "Soft natural light" - "Dramatic shadows" - "Golden hour lighting" 6. **Mood**: What feeling? - "Peaceful and calm" - "Energetic and vibrant" - "Dark and mysterious" --- ### 6.3 Image Prompt Examples **Basic Prompt**: ``` A cat sitting on a windowsill ``` **Improved Prompt**: ``` A fluffy orange cat sitting on a wooden windowsill, looking outside at falling snow, soft natural lighting, cozy atmosphere, photorealistic style ``` **Creative Prompt**: ``` A steampunk-style coffee shop interior, brass and copper details, vintage furniture, warm Edison bulb lighting, customers reading books, detailed digital art ``` **Professional Prompt**: ``` Modern minimalist office space, clean lines, natural wood desk, large windows with city view, green plants, bright daylight, architectural photography style ``` --- ### 6.4 Image Transformation Prompts **Editing Existing Images**: - "Change the background to a beach scene" - "Make the image black and white" - "Add a sunset sky" - "Remove the person in the background" **Style Transfer**: - "Convert this photo to look like a Van Gogh painting" - "Make this image look like a vintage 1950s photograph" --- ## 7. Video Prompting Basics ### 7.1 What is Video Prompting? Describing what you want in a video for AI to generate or edit. **Tools**: Runway, Pika, Sora (when available) **Current Capabilities** (as of 2026): - Short clips (few seconds) - Animations - Video editing - Subtitle generation - Avatar creation --- ### 7.2 Video Prompt Elements 1. **Scene Description**: What happens? 2. **Duration**: How long? 3. **Style**: Animation, realistic, etc. 4. **Movement**: Camera angles, motion 5. **Audio**: Music, voiceover, sound effects --- ### 7.3 Video Prompt Examples **Simple Animation**: ``` A 5-second animation of a paper airplane flying through clouds, smooth motion, bright blue sky, cheerful mood ``` **Product Demo**: ``` 10-second video showing a smartphone rotating 360 degrees, clean white background, professional product photography style ``` **Subtitle Generation**: ``` Add accurate subtitles to this video lecture, white text with black background, positioned at bottom center ``` **Avatar Video**: ``` Create a professional avatar delivering this script about company values. Business casual attire, office background, friendly and confident tone. ``` --- ## 8. Common Prompting Mistakes ### Mistake 1: Being Too Vague ❌ **Bad**: "Write something about health" ✅ **Good**: "Write a 300-word blog post about the benefits of drinking water, targeted at busy professionals" **Why it matters**: AI needs direction to be useful --- ### Mistake 2: Being Too Complex ❌ **Bad**: "Write a comprehensive, multi-faceted analysis of the socioeconomic implications of artificial intelligence on global labor markets, considering historical precedents, current trends, future projections, ethical considerations, policy recommendations, and potential mitigation strategies across various sectors and demographics" ✅ **Good**: "Explain how AI might affect jobs in the next 10 years. Include both risks and opportunities. Keep it under 500 words." **Why it matters**: Simpler prompts often get better results --- ### Mistake 3: Missing Context ❌ **Bad**: "Write an email to Sarah" ✅ **Good**: "Write a professional email to Sarah, my project manager, updating her on the status of the website redesign project. Mention that we're on track for the March 15 deadline." **Why it matters**: AI can't read your mind --- ### Mistake 4: No Format Specification ❌ **Bad**: "Tell me about renewable energy" ✅ **Good**: "Create a bullet-point list of 5 types of renewable energy with a one-sentence description of each" **Why it matters**: Format affects usability --- ### Mistake 5: Wrong Expectations ❌ **Bad**: Expecting AI to access real-time data or personal information it doesn't have ✅ **Good**: Providing necessary information in the prompt **Why it matters**: AI has limitations --- ## 9. Iterating on Prompts ### The Iteration Process 1. **Start with a basic prompt** 2. **Review the output** 3. **Identify what's missing or wrong** 4. **Refine the prompt** 5. **Try again** 6. **Repeat until satisfied** ### Example Iteration **Attempt 1**: ``` Write about coffee ``` *Output: Generic, unfocused* **Attempt 2**: ``` Write about the health benefits of coffee ``` *Output: Better, but too long and technical* **Attempt 3**: ``` Write a 200-word article about 3 health benefits of coffee for a general audience. Use simple language and a friendly tone. ``` *Output: Much better!* --- ## 10. Prompt Best Practices ### ✅ Do's 1. **Be specific** about what you want 2. **Provide context** when relevant 3. **Specify format** (bullets, paragraph, etc.) 4. **Indicate tone** (formal, casual, etc.) 5. **Set length** when it matters 6. **Iterate** if first result isn't perfect 7. **Give examples** when helpful 8. **Use clear language** ### ❌ Don'ts 1. **Don't be vague** or overly general 2. **Don't assume AI knows context** you haven't provided 3. **Don't make prompts unnecessarily complex** 4. **Don't expect perfection** on first try 5. **Don't share sensitive information** 6. **Don't trust output blindly** 7. **Don't give up** after one attempt --- ## Key Takeaways 1. ✅ A prompt is your instruction to AI—quality in, quality out 2. ✅ Good prompts are **clear, specific, and contextual** 3. ✅ Include: task, format, tone, length, and any constraints 4. ✅ Different tasks need different prompt types 5. ✅ Image prompts need: subject, style, details, composition, lighting, mood 6. ✅ Video prompting is emerging but has current limitations 7. ✅ **Iteration is normal**—refine prompts based on results 8. ✅ Common mistakes: too vague, too complex, missing context --- ## Reflection Questions 1. What makes a prompt effective? 2. How would you improve a vague prompt? 3. What's the difference between a prompt for text vs. a prompt for images? 4. When should you iterate on a prompt? --- **Next**: [Module 3: Advanced Prompting Techniques](../03-advanced-prompting/concepts.md)
IMPORTANT: Fallow the rules in the './.rules.md' file
A clear, well-structured prompt dramatically improves the quality of AI-generated outputs. This guide outlines key principles and examples for writing effective prompts using the **RTCF** framework and other best practices.
<citation_instructions>If the assistant's response is based on content returned by the web_search, drive_search, google_drive_search, or google_drive_fetch tool, the assistant must always appropriately cite its response. Here are the rules for good citations:
description: Publishable Prompt Engineering skill package that compiles a user request into a ready-to-use high-quality Prompt, with support for diagnosis, module injection, debugging, and evaluation.