Skip to content

How to Give AI Context (So It Stops Guessing)

· 8 min read

Every beginner guide to AI says the same thing: ‘be specific.’ It is the most repeated advice in prompt engineering, and it is also the least helpful. Be specific about what, exactly?

I spent weeks writing prompts that I thought were specific. They were not vague. They included details. And the results were still generic enough to have come from anyone, about anything, for no one in particular.

The problem was never specificity. The problem was context. Once you understand what context engineering actually means, the shift is obvious: I was telling AI what I wanted but not giving it the information it needed to do the job well. Once I understood how to give AI context properly, everything changed. The outputs went from ‘technically correct but useless’ to ‘actually sounds like it was written for my situation.’

Here is what I learned, and the framework I now use every time.

Why ‘Be Specific’ Is Not Enough

Most people think a better prompt means a more detailed instruction. So they write something like this:

Write me a blog post about productivity tips for remote workers.
Make it 800 words. Use a friendly tone. Include a conclusion.

That is detailed. It is not vague. And it will still produce something that reads like it was written by a committee for nobody.

The issue is that you have told the AI what to produce but given it nothing to work with. No background. No audience. No sense of what good looks like. You have handed someone a blueprint with no building materials.

Context is the building material. It is the background information that helps AI understand not just what you want, but why you want it, who it is for, and what success looks like.

As Ethan Mollick puts it, most AI models only know what is in the current chat. They do not remember you. They do not know your situation. You need to provide that yourself.

The Four Types of Context That Actually Matter

After months of testing, I have settled on four types of context that transform AI outputs from generic to genuinely useful. I think of them as the four pieces of information AI is always missing. If you find yourself giving the same context every session, you can set up AI custom instructions to make it permanent. For a more permanent way to package your context so AI remembers it automatically, read our complete guide to Claude Skills.

1. Who you are (and why that matters)

AI does not know your experience level, your role, your industry, or your situation. Without this, it defaults to the most generic version of whatever you have asked for.

The fix is simple. Tell it who you are in one or two sentences.

Without context:

Give me advice on improving my website's SEO.

With context:

I run a small bakery in Bristol and just launched my first website
last month. I have no technical background. Give me advice on
improving my website's SEO that I can actually do myself this week.

The second version does not just get better advice. It gets different advice. Practical, beginner-level steps rather than a wall of technical jargon about schema markup and canonical URLs.

2. What the output is for (the real purpose)

There is a huge difference between writing something to inform, to persuade, to summarise, or to sell. AI needs to know the job the output is doing.

Without context:

Write an email about our new product feature.

With context:

Write an email announcing our new scheduling feature to existing
customers. The goal is to get them to try it this week. Most of
our customers are freelance designers who told us scheduling was
their biggest frustration. Keep it under 150 words.

The purpose shapes everything: the tone, the length, the call to action, even which details to include or leave out. If you skip this, AI has to guess. And it will guess wrong.

3. What good looks like (examples and references)

This is the type of context most people never think to include, and it is arguably the most powerful. Harvard’s prompt guide touches on this with their recommendation to use examples, but it deserves far more attention than a passing mention.

When you show AI an example of what you are aiming for, the quality of the output jumps dramatically. You are not asking it to guess your taste. You are showing it.

Without context:

Write a tagline for my coffee shop.

With context:

Write a tagline for my independent coffee shop in Manchester.
We are known for slow-brewed single-origin coffee and a quiet,
bookish atmosphere.

Here are taglines I like from other brands:
- "Think different." (Apple)
- "Just do it." (Nike)

I like short, confident statements. No puns. No questions.
Give me 10 options.

You have given AI a creative brief, not just a task. The difference in output quality is enormous.

4. What to avoid (the guardrails)

AI has habits. It defaults to certain phrases, structures, and approaches that might not suit you at all. Telling it what not to do is just as important as telling it what to do.

Without context:

Summarise this report for my team.

With context:

Summarise this report for my team of five people. We are all
familiar with the project, so do not explain background terms.
Focus on what has changed since last month and what decisions
we need to make this week. No bullet points. Write it as a
short paragraph, like a message I would send in Slack.
Avoid corporate jargon.

The guardrails prevent AI from padding the output with information your team already knows. They keep the result tight and useful.

A Copy-Ready Template You Can Use Right Now

If you want a starting point, here is a template that combines all four types of context. Copy it, fill in the blanks, and adapt it to whatever you are working on.

CONTEXT ABOUT ME:
I am a [your role] working in [your industry/situation].
[One sentence about your experience level or relevant background.]

THE TASK:
[What you want AI to produce.]

THE PURPOSE:
This is for [who will read/use it] and the goal is to [what you
want the output to achieve].

WHAT GOOD LOOKS LIKE:
[Include an example, a reference, or describe the style/format
you are aiming for.]

WHAT TO AVOID:
[List anything you do not want: specific phrases, formats,
assumptions, or approaches.]

You do not need to use this template word for word. The structure is what matters. Give AI these four pieces of information and the output will be noticeably better every single time.

A Real Example: Before and After

Let me show you the difference this makes in practice. Say you want help writing a LinkedIn post.

The prompt most beginners write:

Write a LinkedIn post about starting a new job.

The same request, with context:

CONTEXT ABOUT ME:
I am a junior marketing manager who just started my first role
at a tech startup after two years of freelancing.

THE TASK:
Write a LinkedIn post about starting this new job.

THE PURPOSE:
This is for my professional network. The goal is to share the
news authentically without sounding boastful. I want to
acknowledge the freelancing chapter and express genuine
excitement about what is next.

WHAT GOOD LOOKS LIKE:
I like LinkedIn posts that feel like a real person talking, not
a press release. Short paragraphs. Honest about the messy parts.
No hashtag spam.

WHAT TO AVOID:
Do not use phrases like "thrilled to announce" or "excited to
share." No emojis. No list of lessons learned. Keep it under
150 words.

The first prompt gives you a post that could be about anyone. The second gives you a post that sounds like it was written by a specific person, about a specific moment, for a specific audience.

That is the power of context.

Context Gets Even More Important From Here

If you have read our beginner’s guide to prompt engineering, you will recognise some of these ideas. Context is the foundation that makes every other prompting technique work better. Giving AI a role, providing examples, asking it to think step by step: none of these techniques land properly without context underneath them.

And as AI tools become more capable, context matters more, not less. The AI agents people are building today can browse the web, write code, and take actions on your behalf. The better the context you give them, the better the decisions they make. Poor context with a powerful tool is a recipe for confident mistakes.

Start Here, Today

You do not need to memorise a framework. You do not need to study prompt engineering theory. You just need to answer four questions before you hit send:

Who am I? What is this for? What does good look like? What should AI avoid?

Get those right, and AI stops guessing. It starts working.