Skip to main content
    All 14 packs are free

    Prompt Engineering Examples

    Prompt engineering is just writing clearer instructions. Each example shows a technique you can use today.

    Techniques

    Role prompting

    Weak: Write about taxes.
    Strong: You are a CPA writing for first-time freelancers. Explain the 3 tax mistakes they make most, in under 300 words.

    Few-shot

    Classify the sentiment. Examples:
    "Love it" → positive
    "Broke in a day" → negative
    Now classify: "[text]"

    Chain of thought

    Solve this step by step, listing your assumptions before the final answer: [problem]

    Output format

    Return only a JSON array of objects with keys name, price, reason. No other text. Task: [task]

    Constraints

    Write a product description for [product]. Max 60 words, no adjectives like 'amazing', include one number, end with a question.

    Self-check

    Answer [question]. Then review your answer for errors and list anything you're unsure about.

    Tips

    • Be specific about audience and length.
    • Show examples of what you want.
    • Ask for a fixed format when you'll reuse output.

    FAQ

    Do I need to code to do prompt engineering?

    No. It's about clear instructions; anyone can learn it.

    Related