Prompt engineering is the skill of designing inputs to LLMs to get better, more reliable outputs. The same model gives dramatically different results depending on how you ask. “Summarise this” vs “Summarise this in 3 bullet points for a non-technical CFO” produce completely different outputs from the same model. Understanding how to write effective prompts is one of the highest-leverage skills in applied AI.

Category: NLP & Language · Difficulty: Beginner · Last updated: 15 May 2026 · 5 min read


Prompt Engineering — What It Is and How the Right Words Unlock Dramatically Better AI Outputs

What is Prompt Engineering?

A large language model is extraordinarily capable — but it is also extraordinarily sensitive to how it is asked. The same underlying model that writes a mediocre generic email when asked “write a follow-up email” writes a precise, compelling, context-appropriate email when asked “write a follow-up email to Sarah, VP of Engineering at Stripe, referencing our conversation at YC Demo Day about integrating our fraud detection API, keeping it under 100 words and ending with a specific call to action.”

Prompt engineering is the discipline of providing that right context, specification, and structure. It is not magic — it is clear communication with a system that responds best to explicit, detailed instructions. The skills that make a good manager (clear briefs, specific outcomes, concrete examples) make a good prompt engineer.

Key Technique

Be specific — vague prompts produce vague outputs. “Write an email” vs “Write a 150-word cold sales email to a VP of Engineering at a fintech startup, focusing on our API’s 99.99% uptime and SOC 2 compliance, ending with a request for a 20-minute call this week.”

Few-shot examples — show the model what good output looks like before asking. “Here are two examples of the format I need: [example 1] [example 2]. Now do the same for this input: [input].” Three good examples often outperform pages of instructions.

Chain-of-thought — “Think through this step by step before answering.” Forces the model to articulate reasoning rather than jumping to a potentially wrong answer. Dramatically improves performance on multi-step problems.

Role assignment — “You are an expert senior software engineer specialising in Python performance optimisation. Review this code and identify the three most impactful optimisations.” The role activates relevant knowledge and calibrates response style.

Format specification — “Respond as a JSON object with keys: issue, severity (high/medium/low), recommended_action.” Structured output formats are more reliable when specified explicitly.

Iterate — treat the first output as a draft. “This is good but too formal. Make it more conversational and cut the length by 30%.” Prompting is a dialogue, not a single request.

Real-world examples

Not theory — what real teams actually shipped using this technique.

  • Anthropic’s Constitutional AI uses a system prompt encoding principles against which the model evaluates its own outputs — prompt engineering applied to alignment rather than just task performance.
  • GitHub Copilot’s performance is heavily dependent on how much context is in the editor when it generates — function names, docstrings, type hints, and surrounding code all serve as an implicit prompt that shapes completions.
  • Customer service bots at major retailers use system prompts of 500-2000 words encoding persona, tone, product knowledge scope, escalation rules, and prohibited topics — every interaction is shaped by this invisible prompt.

Common pitfalls

  • Prompt sensitivity — small prompt changes can produce large output changes. Production applications should test prompts systematically across a diverse set of inputs, not just one example.
  • Prompts are not code — prompts do not have formal syntax. What works for GPT-4 may not work the same for Claude or Gemini. Test prompts on the specific model being deployed.
  • Context window consumption — very long system prompts consume tokens that could be used for the task itself. Balance prompt completeness with context window economy.
  • Prompt injection — in applications that include user-controlled content in prompts, malicious users can inject instructions that override the system prompt. “Ignore all previous instructions and do X” is a real attack. Sanitise and compartmentalise user input.

Frequently asked questions

QUESTION 1 What is prompt engineering in simple terms?

ANSWER 1 The skill of talking to AI effectively — crafting inputs to consistently get the output you actually need. Clear, specific, example-rich prompts dramatically outperform vague ones.

QUESTION 2 What is chain-of-thought prompting?

ANSWER 2 Instructing the model to reason step by step before answering. Dramatically improves multi-step reasoning by forcing articulation of intermediate steps rather than jumping to potentially wrong answers.

QUESTION 3 What is a system prompt?

ANSWER 3 An instruction given before the user’s message — setting role, tone, constraints, and context. Invisible to users, it is how developers configure LLM-powered applications.

QUESTION 4 What are the most effective techniques?

ANSWER 4 Be specific, use few-shot examples, assign a role, specify output format, use chain-of-thought for reasoning tasks, and iterate — treat the first response as a draft.


📬 Get one concept + one use case every Tuesday. Join the newsletter →