๐ง Missing Constraints
What Are Missing Constraints?โ
Missing constraints happen when your prompt is too open-ended. You tell the AI what to do but not how to do it. Without boundaries, the AI makes its own decisions about format, length, tone, scope, and depth โ and those decisions often don't match what you wanted.
Constraints are the guardrails that keep the AI on the road you intended.
Why This Mattersโ
An unconstrained prompt is like telling a painter "paint something beautiful" โ you'll get a result, but it probably won't match the painting you had in mind. Constraints are what transform generic outputs into exactly what you need. They're especially critical in professional settings where consistency and predictability matter.
The Four Types of Constraintsโ
1. Format Constraintsโ
Tell the AI how to structure the output.
- Use bullet points
- Return as JSON
- Write in a numbered list
- Use markdown table format
- One paragraph per point
2. Length Constraintsโ
Tell the AI how much to write.
- Keep it under 200 words
- Write exactly 3 bullet points
- Maximum 5 sentences
- One-line summary
- 2-3 paragraphs
3. Scope Constraintsโ
Tell the AI what to include and exclude.
- Focus only on frontend performance
- Don't cover backend topics
- Cover only the last 5 years
- Limit to JavaScript examples
- Exclude pricing information
4. Tone Constraintsโ
Tell the AI how to sound.
- Professional and formal
- Casual and conversational
- Technical but accessible
- Encouraging and supportive
- Direct, no filler words
The Constraint Checklistโ
Before sending your prompt, ask:
- Did I specify the format of the output?
- Did I set a length limit?
- Did I define the scope (what to include/exclude)?
- Did I mention the tone or style?
- Did I specify the audience?
- Did I say what not to do? (negative constraints)
Before / After Examplesโ
โ Bad Exampleโ
Write a product description for wireless headphones.
Result: A 500-word marketing essay with superlatives, technical specs, and a history of the brand. Way too long, wrong tone, unclear audience.
โ Improved Exampleโ
Write a product description for wireless headphones for an e-commerce listing.
Constraints:
- Length: 80-100 words
- Tone: Casual, upbeat, and persuasive
- Audience: Young adults (18-30) who value convenience
- Must include: battery life, comfort, sound quality
- Must NOT include: technical jargon, competitor comparisons
- Format: One short paragraph followed by 3 bullet points for key features
โ Bad Exampleโ
Explain cloud computing.
โ Improved Exampleโ
Explain cloud computing to a non-technical business executive.
Constraints:
- Use a real-world analogy (like electricity or water utilities)
- No technical jargon (no "virtualization," "containers," or "microservices")
- Cover only: what it is, why businesses use it, and 3 main benefits
- Length: 150-200 words
- Tone: Professional but simple, like you're in a boardroom
Negative Constraints โ The Secret Weaponโ
Telling the AI what not to do is just as powerful as telling it what to do.
โ
Do not use bullet points โ write in flowing prose.
โ
Do not include code examples.
โ
Do not use the word "delve."
โ
Do not make up statistics โ say "data not available" if unsure.
โ
Do not exceed 3 sentences per paragraph.
Negative constraints prevent common AI habits that produce bloated or off-target output.
๐งช Try It Yourself
Edit the prompt and click Run to see the AI response.
Practice Challengeโ
Add constraints to each of these under-constrained prompts:
"Write a cover letter.""Create a meal plan.""Explain blockchain."
For each prompt:
- Add at least one constraint from each of the four types (format, length, scope, tone)
- Add at least one negative constraint
- Test both the original and constrained versions
- Note how much better the constrained version matches your needs
Real-World Scenarioโ
Scenario: A marketing team uses AI to generate social media posts. The outputs vary wildly โ some are 3 words, some are 300 words. Some use emojis, others don't. There's no consistency.
Root Cause: The prompt says "Write a social media post about [topic]" with zero constraints.
Fix:
Write an Instagram caption for our fitness brand.
Constraints:
- Length: 30-50 words
- Include 1-2 relevant emojis
- End with a call-to-action question
- Use 3-5 hashtags at the end
- Tone: Motivational and energetic
- Do not use generic phrases like "Let's go!" or "You got this!"
Result: Every post now follows the same structure, stays on brand, and the team spends 90% less time editing.
Interview Questionโ
Q: What happens when you don't add constraints to a prompt, and how do you decide which constraints to add?
A: Without constraints, the AI defaults to its own assumptions about format, length, tone, and scope โ which rarely match what you need. This leads to inconsistent, overly long, or off-target outputs. I decide which constraints to add by asking: "What would make me reject this output?" If I'd reject it for being too long, I add a length constraint. If I'd reject it for the wrong tone, I add a tone constraint. I always cover the four core types: format, length, scope, and tone. I also add negative constraints to prevent common AI patterns like unnecessary filler or made-up statistics.
Summaryโ
- Missing constraints make prompts too open-ended, leading to unpredictable results
- Four types of constraints: format, length, scope, and tone
- Negative constraints ("do not") are powerful for preventing common AI habits
- Use the constraint checklist before sending any important prompt
- Constraints create consistency โ essential for professional and team use
- The test: "What would make me reject this output?" tells you which constraints to add