Learn how background information and examples dramatically improve AI responses.
Imagine asking a friend to "write me a bio." They'd immediately ask: A bio for what? LinkedIn? A conference? Your personal website? How long? What should it emphasize? AI faces the same problem — without context, it's forced to guess, and guesses are rarely what you want. Context is the background information that helps the AI understand your situation, goals, and constraints. It's the difference between a generic response that could apply to anyone and a tailored response that feels like it was written specifically for you.
There are several types of context, and each one improves the AI's output in a different way. You don't always need all of them, but knowing what's available gives you more tools to work with.
Background context is the most common type. It gives the AI the "why" behind your request, which dramatically shapes the output.
Whenever possible, explain why you need something. "Write me a cover letter" is good, but "Write me a cover letter for a senior product manager role at Stripe — I'm transitioning from engineering and want to emphasize my technical background as a strength" is much better.
Providing examples is like giving the AI a template to follow. Instead of describing what you want in abstract terms, you show it directly. This technique is sometimes called "few-shot prompting" because you give the AI a few examples ("shots") before asking it to generate new content.
Use examples when you have a specific style or format in mind that's hard to describe in words. It's easier to show the AI what you want than to explain every detail.
Constraints are the guardrails that prevent the AI from going off in unexpected directions. They tell the AI what not to do, which is just as important as telling it what to do.
When your prompt includes a lot of context, organization matters. Here's a proven structure that works well for complex requests.
AI models have a "context window" — a limit on how much text they can consider at once. For most conversations, this isn't a concern. But for very long documents or lengthy conversation histories, be aware that the AI might lose track of details shared much earlier. When in doubt, repeat important context.
Whenever possible, explain why you need something. "Write me a cover letter" is good, but "Write me a cover letter for a senior product manager role at Stripe — I'm transitioning from engineering and want to emphasize my technical background as a strength" is much better.
Use examples when you have a specific style or format in mind that's hard to describe in words. It's easier to show the AI what you want than to explain every detail.
AI models have a "context window" — a limit on how much text they can consider at once. For most conversations, this isn't a concern. But for very long documents or lengthy conversation histories, be aware that the AI might lose track of details shared much earlier. When in doubt, repeat important context.