Providing context and constraints
Give an AI assistant the background facts and limits your task needs, and leave out text that distracts or should stay private.
Four checks before you paste.
In The context window, you saw that a model draws on what it learned during training, while the text it can read in the current exchange is limited to what fits in the conversation. Once you have a clear task, the next choice is what extra text to include in your prompt—the message you send to the assistant.
Pasting everything you have is a common trap. Instead, check every piece of text through four decision lenses before you paste it—starting with safety first, because one note can fit more than one lens.
Sensitive information
Personal, confidential, or secret details that could harm someone or break rules if shared. Keep these out first, even when they relate to your task.
Relevant context
Safe background facts about your specific situation that the model does not know and needs for this task.
Constraints
Rules that shape the reply—such as length, format, tone, or topics to leave out.
Distracting text
Unrelated, outdated, or contradictory details that compete for attention and can pull the reply off track.
Sam runs Cedar Bike Shop and wants an AI assistant to draft a short public Thanksgiving hours and repair drop-off notice for the shop's website. Sam has a folder of shop notes—some helpful, some outdated, and one containing a customer's private contact details.
Supply only the relevant background.
Think of briefing a substitute teacher before class. You hand over today's lesson plan and attendance list, not the entire school year's filing cabinet.
An AI model draws on patterns from training and the text in your current prompt. It does not know your local schedule, cutoff times, or rules unless you supply them as relevant context.
Without the shop's dates, the assistant has to guess or insert vague placeholders. Sam supplies two relevant facts: the Thanksgiving 2026 schedule (closed Thu, Nov 26; open Fri, Nov 27, 10:00 a.m.–4:00 p.m.; regular hours Sat, Nov 28) and the Wed, Nov 25 at 5:00 p.m. repair drop-off cutoff for pre-holiday service.
Everyday example: When asking for a weeknight dinner idea, list the ingredients already in your fridge and how much time you have—not your grocery receipts from last month.
Set clear limits to shape the reply.
Think of ordering a small sign from a print shop. You give the size and wording limits up front so you do not get a giant poster with extra slogans you did not want.
Constraints set boundaries on how the assistant writes: length, format, tone, or what to leave out. In real prompts, one phrase can act as both context and a constraint—for example, “for first-time visitors” names the audience and limits jargon.
Clear limits steer the draft strongly, though models can still slip on strict rules like exact word counts. Always read and check the draft before using it.
Left unconstrained, the assistant writes a long greeting and invents a promotional phone line. Sam adds two constraints: keep the notice under 60 words with a friendly tone and three day bullets, and do not mention sales, discounts, or phone numbers.

Everyday example: When summarizing a long club meeting note, ask for three short bullet points in plain English and tell the assistant to skip side discussions.
Leave out distracting and sensitive text.
Think of photocopying a form. You clear old sticky notes and other people's ID cards off the glass before pressing start.
Distracting text—such as outdated offers or unrelated tasks—competes for space and attention inside the context window and can bleed into the draft. Sensitive information—such as personal phone numbers, home addresses, passwords, or private account digits—stays out first, even if it sits in the same note or relates to your work.
Before sharing any real personal or workplace data, check the tool's terms and your organization's rules. If you only need a template structure, replace private details with neutral placeholders like [Customer Name].
Sam leaves out a note about last year's 15% helmet sale and a supplier inner-tube order so they do not sneak into the holiday notice. Sam also keeps customer Priya Nair's phone number, home address, and credit card digits completely out of the prompt.

Everyday example: Before pasting a customer support email thread to draft a polite reply, delete the customer's account number, personal email address, and an unrelated earlier billing question.
Quick questions
- Can I paste everything and tell the AI to ignore the extra parts? That is still risky: private details are already shared once you send the prompt, and unrelated text can still pull the reply off track.
- Do word-count limits guarantee an exact word count? No. Constraints guide the reply strongly, but models can still drift over or under a strict count, so check the result.
- Does removing a name make a prompt anonymous? Not necessarily. An address, rare job title, or combination of details can still identify a person.
Build Sam's prompt from blocks.
Try assembling Sam's prompt one block at a time and watch how the illustrative reply responds.
- Start with no blocks selected and notice how the reply guesses the hours and rambles.
- Add the four helpful blocks (the schedule, drop-off cutoff, length/format limit, and do-not-add boundary) to build a focused prompt.
- Turn on the old sale note and the customer contact note one at a time to see what goes wrong, then remove them or press Reset blocks.
Simulation note: The replies and warnings below are pre-written, simplified illustrations of common model behaviors, not a live AI model. Real models vary in how closely they follow limits or react to extra text.
Assembled prompt
- Task: Write a public Thanksgiving hours and repair drop-off notice for Cedar Bike Shop's website.
Illustrative reply
Check your understanding.
Take this with you.
A strong prompt is selective, not exhaustive: supply the relevant background facts and clear constraints your task needs, leave out distracting and sensitive text before sending, and review the draft.