How to Write Better AI Prompts: 10 Techniques with Examples

By the aixplor.in editors · Updated 2 November 2026 · 8 min read

Most disappointing AI answers come from short, vague prompts. The model is not reading your mind; it is filling gaps with the most generic answer that fits. Better prompts close those gaps. You do not need special syntax or "magic words". You need to tell the AI what a smart new colleague would need to know to do the job well.

The ten techniques below work across ChatGPT, Claude, Gemini, Microsoft Copilot and most other chat assistants. Each comes with a before and after example you can adapt.

The 10 techniques at a glance

#TechniqueFixes this problemUse it when
1Give contextGeneric, one-size-fits-all answersAlmost always
2Assign a roleWrong level of expertise or toneYou want a specific perspective
3State the goal and audienceAnswers that miss the pointWriting anything for readers
4Show examplesWrong style or formatYou have a clear model to copy
5Set constraintsToo long, too fancy, off-limits contentOutput has rules
6Specify the formatWalls of textYou will reuse or paste the output
7Ask for step-by-step reasoningSloppy logic, wrong mathsAnalysis, planning, calculations
8Break big tasks into stepsShallow results on complex workLong documents, projects
9Let it ask you questionsYou are not sure what to includeUnclear or high-stakes tasks
10Iterate and give feedbackStopping at a mediocre first draftEvery important task

1. Give context

The model knows nothing about your situation unless you say it. Context is the single biggest improvement you can make.

The second prompt produces an email you can send with light edits. The first produces a template you must rewrite.

2. Assign a role

A role sets the expertise level, vocabulary and viewpoint. Keep it relevant, and pair it with context; a role on its own does little.

3. State the goal and audience

Tell the AI who will read the output and what you want them to do or feel.

4. Show examples

When style matters, showing beats describing. One or two examples are often enough. This is sometimes called "few-shot" prompting.

Example: *Monsoon Earth. Smells like the first rain on dry soil. Hand-poured soy wax, cotton wick, about 40 hours of burn. Made in small batches in Jaipur.*

Candles: (1) jasmine and sandalwood, (2) masala chai, (3) unscented beeswax."

Tip: if you give only one example, the AI may copy it too closely. Two different examples help it find the pattern rather than the words.

5. Set constraints

Constraints are rules: length, reading level, words to avoid, things not to include, facts not to change.

"Do not invent any numbers" is worth adding to almost any business prompt.

6. Specify the format

If you will paste the result into a spreadsheet, slide or document, say exactly what shape you want.

Useful format words: table, bullet list, numbered steps, JSON, headings, one paragraph, email, script with timestamps.

7. Ask for step-by-step reasoning

For maths, logic, planning and decisions, asking the model to work through the problem before answering tends to reduce careless mistakes. Many newer models do some of this automatically, but asking still helps you check the logic.

Always verify the arithmetic yourself for anything involving money.

8. Break big tasks into steps

Asking for a complete 3,000-word report in one go usually gives a shallow result. Split the job and review each stage.

You stay in control of structure, and each section gets full attention.

9. Let the AI ask you questions

When you are not sure what details matter, ask the model to interview you first.

This is especially useful for plans, resumes, cover letters and anything personal. For health, legal or financial matters, treat the result as a starting point to discuss with a professional, not as advice.

10. Iterate and give specific feedback

The first answer is a draft. The best results come from two or three rounds of precise feedback.

If a conversation gets long and the AI starts drifting, start a new chat and paste in a short summary of what you want plus the best version so far.

Putting it together: a reusable prompt template

You do not need all ten techniques every time. For anything important, this structure covers most of them:

Full example: "Act as a customer support lead (role). We sell refurbished smartphones online across India, and customers often ask about warranty after delivery (context). Write a reply template for warranty questions (task) that a first-time online buyer will understand and trust (audience and goal). Under 100 words, friendly, no legal jargon, mention our 6-month warranty and that they can reply with their order number (constraints). Give two versions: one for email, one for WhatsApp (format). Flag anything you think is missing (check)."

Common mistakes

Does the tool matter?

The techniques work everywhere, but each assistant has its own strengths, limits on file uploads, and ways to save instructions (custom instructions, projects, gems and similar features). If one tool keeps misunderstanding a task, try the same prompt in another. Compare options on our ChatGPT alternatives, Claude alternatives and Gemini alternatives pages, or see side-by-side comparisons on /compare.

Quick picks

Tools and plans change often — always check each product's own website for current features, pricing and terms. aixplor.in is independent; listings and rankings are not paid placements.

More guides

All guides →