Skip to content
SparkTime, home

Guide · Technology

Writing Better AI Prompts: A Practical Guide

Most disappointing AI answers come from vague questions. Learn a simple structure for prompts, how to give context and examples, how to iterate, and how to check what comes back.

5 min readBeginner

For

Professionals and students who use AI chat assistants and want more useful answers.

Level

Beginner
On this page

Key takeaways

  • Treat the AI like a capable new colleague who knows nothing about your situation. Give context.
  • A good prompt states the goal, the context, the constraints and the format you want.
  • Examples of what you want teach the model faster than long descriptions.
  • Iterate. The first answer is a draft. Tell it what to change.
  • Always verify facts, numbers and code. Fluent text can be wrong.

Two people ask an AI the same thing. One writes, "Write a cover letter." The other writes a short paragraph about the job, their background and the tone they want. The second gets something usable. The first gets something generic.

The difference isn't a secret trick. It's information. This guide shows what to include and how to improve answers step by step.

How to think about an AI assistant

#

Imagine a very quick, well-read colleague who has just joined. They know a lot of general things but know nothing about you, your company, your audience or what happened yesterday.

If you give such a person a one-line request, you get a generic result. If you give them the background, you get better work. Prompts follow the same rule.

The five parts of a good prompt

#

You don't need all five every time, but check them when an answer disappoints.

  1. Role or perspective (optional): who should it act as?
  2. Task: exactly what you want done.
  3. Context: background, audience and purpose.
  4. Constraints: length, tone, things to include or avoid.
  5. Format: how the answer should look.

Before and after

#

Weak:

Write an email about the delay.

Better:

Write an email to a client, Mr Rao, explaining that his website launch will slip from 15 October to 22 October because the payment gateway approval is pending. Tone: polite and direct, no blame. Offer a short call on Thursday. Under 120 words. Subject line included.

The second prompt names the audience, the facts, the tone, the length and the next step.

Give context, not just commands

#

Useful context includes:

  • Who it's for: "for first-year engineering students", "for my manager".
  • Why: "so I can decide between two vendors".
  • What you have: paste the relevant text, data or code.
  • What you've tried: "I already checked the config file".
  • What good looks like: "a one-page summary that a CEO can read in two minutes".

If the AI needs to use a document, paste the relevant parts. Don't paste confidential material unless your organisation's policy allows it. See using AI at work.

Show examples

#

Examples are one of the strongest tools.

Rewrite these product descriptions in the same style as the example.

Example: "Our steel bottle keeps drinks cold for 24 hours. Fits in any bag. Cleans in seconds."

Now rewrite: "This lunch box is made of stainless steel and has three compartments and a leak-proof lid."

The model copies the length, rhythm and tone of the example without you having to describe them.

Ask for the format you want

#

Say how the answer should be laid out:

  • "Give me a table with three columns: option, pros, cons."
  • "Use five bullet points, each under 15 words."
  • "Return valid JSON with the keys title and summary."
  • "Explain it in three steps, then give one example."

If you plan to use the answer in another tool, a precise format saves time.

Break big tasks into steps

#

Large requests produce muddled answers. Split them.

Instead of "Write my whole report", try:

  1. "List the main sections this report should have, given this brief."
  2. "Draft section 2, using these notes."
  3. "Shorten it to 150 words."
  4. "Check this section for claims that need sources."

You stay in control and can fix problems early.

Iterate like an editing conversation

#

The first answer is a draft. Respond to it:

  • "Make it shorter and more direct."
  • "The tone is too formal. Make it friendlier."
  • "Keep paragraphs one and three, rewrite two with a concrete example."
  • "What assumptions did you make?"
  • "What's missing from this?"

Specific feedback gets better results than "try again".

Ask the AI to ask you

#

When you aren't sure what to include, let it find the gaps:

I want to plan a three-day Goa trip on a ₹25,000 budget. Before suggesting an itinerary, ask me the questions you need answered.

This often produces better plans than guessing the details yourself.

Prompts for common work

#

Learning

#

Explain how mutual funds work to someone with no finance background. Use an analogy, then a simple numerical example. Then give me five questions to test my understanding.

Combine this with real sources. For example, SIP for beginners gives a reviewed explanation to compare with.

Writing and editing

#

Here is my draft. Keep my voice. Fix grammar, remove repetition and point out any sentence that is unclear. Don't add new claims.

Coding

#

I'm using Python 3.12. This function should return the top three scores, but it returns an empty list for [90, 85]. Here's the code and the error. Explain the likely cause first, then suggest a fix.

The habit of asking for the cause before the fix also appears in how to debug any bug.

Decisions

#

I'm choosing between two job offers. Offer A has a higher salary and a longer commute. Offer B has a better manager and more learning. Help me list the factors I should weigh, and ask me about my priorities first.

For a structured way to decide, see when to switch jobs.

Check what comes back

#

AI models can state wrong things confidently. This is often called hallucination.

  • Verify facts, dates, figures and quotations against reliable sources.
  • Run and test code before using it.
  • Ask for reasoning or sources, then check those too. Some invented sources look real.
  • Beware of stale information. The model may not know recent changes, such as new tax rules.
  • Watch for bias and gaps, especially for sensitive topics.

For anything important (money, health, law), treat AI as a starting point and confirm with a professional or official source.

Privacy and safety

#
  • Don't paste passwords, API keys, customer data or confidential company information unless you have approval.
  • Remove names and identifying details when you can.
  • Remember that people can misuse generated content. Disclose AI help when rules or honesty require it.

Common mistakes

#
  • Vague requests with no context
  • Asking for everything in one prompt
  • Not saying who the audience is
  • Accepting the first answer
  • Treating output as fact
  • Writing prompts as magic phrases, rather than clear explanations

A reusable template

#

Copy and adapt:

Code
Role: [who the AI should act as, optional]Task: [what to do]Context: [background, audience, purpose]Constraints: [length, tone, what to avoid]Format: [bullets, table, JSON, steps]Input: [paste the text or data]

Frequently asked questions

#

Do I need special "prompt engineering" tricks?

#

Mostly no. Clear writing, context and iteration matter more than formulas. Tricks change as models improve.

Should I be polite to the AI?

#

It's harmless, and clear, courteous writing tends to be clear in general. Politeness isn't required for it to work.

Why does the AI give a different answer each time?

#

These models generate text with some randomness. If you need consistency, give a precise format and examples.

Can I rely on AI for study notes?

#

Use it to explain, quiz and summarise, but check against textbooks or official material.

Will prompt skills matter in the future?

#

The core skill is communicating clearly and judging results. That stays useful, whatever the tools look like. If you're thinking about your own skills, read learning to program in the AI era.


AI tools change quickly. Features and limits mentioned here are general, so check your tool's current documentation.

  • Guide · Technology

    How to Use AI for Emails and Documents Without Losing Your Voice

  • Guide · Technology

    AI, Machine Learning, Generative AI and LLMs: The Map

  • Course · Technology

    AI From Zero to Productive: A Practical Guide to Using AI Well