Negative Constraints in Prompts: Tell AI What It Must Not Do
By Alexandre Saint-Jean
Audio version
Audio version produced by text-to-speech from the article. Our AI charter
You ask an AI assistant for a message presenting your offer to a client. It hands back a text about an "innovative" and "unique" solution, announces a "30%" gain you never wrote, and opens with a courtesy line you would not have chosen. Not dramatic if you proofread, but it is exactly what slips through when you are in a hurry. A negative constraint draws the line before the answer.
What is a negative constraint, and how does it differ from a positive instruction?
A negative constraint is an instruction that tells the AI what it is not allowed to do: "do not invent any number", "no superlatives", "do not name any client". A positive instruction says what to produce instead.
Why would you need the negative form? Because an assistant fills the blanks with its habits. If your request does not say where the numbers come from, it may produce one that sounds right. If it does not say how to start, it applies a common opening formula. A don't removes one of those shortcuts, and it also gives you a precise point to check when you proofread.
Should you tell AI what not to do, or what to do?
The guides do not settle it the same way, and it is worth knowing.
Anthropic's prompting guide, in its "Control the format of responses" section, gives as its first tip: "Tell Claude what to do instead of what not to do". Its example: instead of "Do not use markdown in your response", try "Your response should be composed of smoothly flowing prose paragraphs."
OpenAI's prompt engineering guide, for its part, uses a don't in the example of its code-generation prompt: "Do not give responses with Markdown formatting, just return the code as requested." The page does not explicitly contrast negative and positive instructions.
What to take from this? That a don't is one tool among others, not a method on its own. Our way of reconciling the two: never write a bare don't. Pair it with what to do instead.
How do you write a don't that actually works?
Here is our method, drawn from practice in our training sessions, with three conditions. These are benchmarks we apply, not a rule from any vendor.
- At most three don'ts. A long list gets diluted, and you will not be able to check them all. This is an observation about method, not a measured fact: pick the three mistakes that come up most often for you.
- Each one checkable by eye. You must be able to search the answer for the word, the number or the sign. "No number that is not in my text" can be checked. "Don't be boring" cannot.
- Each one paired with its replacement. "Do not invent any number; if data is missing, write to be confirmed". The AI then knows what to do at the moment the don't applies, instead of guessing.
Then you proofread looking for the violation, the way an editor looks for a typo, and not just checking that the text "looks fine".
Example 1: a message presenting an offer to a client
The weak prompt
"Write a message presenting our offer to a client, without being boring."
"Without being boring" cannot be checked, and it says nothing about numbers or the opening. The assistant will decide for itself what seems engaging.
The structured prompt
"Write a 120-word message presenting our offer [paste your description here]. Three don'ts: no number that is not in my text (write "to be confirmed" instead), no superlatives (use a specific fact from my text instead), no polite opening line (start with the subject). End with a question for the client."
When you proofread, three ten-second checks: does each number exist in your text, is there still an "unrivalled" or a "leading", does the message start with the subject?
Example 2: fixing one sentence when the AI broke a don't
It happens. Do not rewrite by hand and do not start over: target the fix.
Weak prompt: "You invented a number again, fix it."
Structured prompt: "The sentence "[paste the faulty sentence]" contains a number that is not in my text. Rewrite only that sentence, replacing it with "to be confirmed", then check that no other number in your answer is missing from my text."
The weak prompt leaves the assistant to guess where the error is and may rewrite the whole message. The structured prompt quotes the sentence, limits the fix to that sentence, and asks for a final check.
Example 3: meeting notes
You paste your meeting notes and want a summary for the team.
Weak prompt: "Make me a clean summary of these notes."
Structured prompt: "Here are my meeting notes [paste your notes]. Write a summary of five lines maximum. Three don'ts: no decision that is not written in my notes (list it under "to be decided" instead), no name of a person who is not in my notes (write "a participant" instead), no invented date (write "date to be set" instead)."
All three don'ts can be checked by reading the notes alongside: does each decision have a source line, does each name appear in the notes, does each date?
Why does an AI still ignore a "don't" sometimes, and what are the limits?
First, the AI can break a don't. That is why each one must be checkable: without a review, the constraint is only an intention.
Second, a negative constraint does not replace a security or confidentiality rule. Writing "do not use any client name" in a prompt does not make it acceptable to paste personal data into a tool your company has not approved. Data protection is settled before the prompt, not inside it.
Third, a growing list of don'ts loses its usefulness. If you have eight, it is probably a sign that the main instruction needs rework, or that it should be split into two shorter requests.
How do you make this a habit?
A reusable template to add to any text request:
- "Three don'ts:"
- "[don't 1], instead [replacement]."
- "[don't 2], instead [replacement]."
- "[don't 3], instead [replacement]."
Then the review: search the answer for each don't, one at a time.
If your three don'ts come back in every conversation, keep them in a file and paste them into each request, or put them in your account or project context. If the result is not quite what you want, fix one point at a time, as in refining a prompt step by step. To ask for the reasoning and check calculations, see our chain-of-thought guide. For the basic definitions, see the basic definition of an AI prompt.
This progression (brief, role, context, task, examples, reasoning, limits) is the one our free AI newsletter follows, one idea per week.
Frequently asked questions
- What are negative prompts vs positive instructions?
- A positive instruction describes what the answer should be ("write in short paragraphs"). A negative constraint sets a limit on what the answer must not contain ("do not invent any number"). In practice, the most useful form pairs the two: the don't, plus what to do instead.
- Should I tell AI what not to do?
- You can, as long as you do not stop there. Anthropic's guide advises telling Claude what to do instead of what not to do, and OpenAI's code-generation prompt example uses a don't without taking a position. Our method is to pair each don't with its replacement, so you get both.
- Why does ChatGPT ignore "don't" instructions?
- We cannot explain what happens inside a model, and we do not claim a rate. What we see in practice is that an AI sometimes breaks a don't, especially when the list is long or the don't is vague. That is why each one should be checkable by eye, followed by a review that looks for the violation.
- How many don'ts can I put in one prompt?
- In our method, at most three. It is a practical observation, not a measurement: beyond that, the list becomes hard to review and you can no longer check each item in the answer. Keep the ones that match your recurring mistakes.
- Can a "don't" in a prompt protect confidential data?
- No. Telling the AI not to use a name or a piece of data does not replace a security rule. If the tool has not been approved by your company for personal or confidential data, do not paste that data into the prompt, whatever the instructions say.