Prompts

How to write a prompt that works: a four-part recipe

Most weak AI answers come from thin instructions, and four short ingredients fix a surprising number of them.

By Laner Labs Learning teamPublished Updated 4 min read

A chat window with a question and an answer

A prompt works best when it contains four things: the task you want done, the context the assistant needs, the format you want back, and the limits to respect. Leave any of them out and the assistant fills the gap with a guess, which is why vague requests produce generic answers. This article walks through each part, shows a before and after, and explains how to improve a prompt when the first answer misses.

The four parts of the recipe

  • Task: what you want done, in one sentence, starting with a verb such as write, compare, summarise or list.
  • Context: who the output is for, what happened so far, and anything the assistant could not know, such as your deadline or your audience's experience.
  • Format: how the answer should be laid out, for example a short email, a table with three columns, or five bullet points.
  • Limits: length, tone, and what to leave out or avoid.

You do not need to label them. They can sit together in a few plain sentences. The labels are just a checklist for you before you press send.

A worked example: before and after

Imagine you need to tell a customer that their order will arrive late.

Before: "Write an email about the delay."

The assistant has to guess who the reader is, how late the order is, whether to apologise, how long to go on, and what tone to use. You will get a polite, generic email full of placeholders, and you will spend time rewriting it.

After: "Write a short email to a customer whose order will arrive two days later than promised. Apologise once, give the new delivery date of [date], and offer to answer questions by reply. Friendly and plain, no more than 100 words, and do not promise compensation."

Here the task is the email, the context is the customer and the two-day delay, the format is a short email, and the limits are the word count, the tone and the instruction not to promise anything. The assistant still needs you to check the facts, and you still read it before sending. But the draft should be much closer to usable, because you have removed most of the guesswork.

Steps to build a prompt in two minutes

  1. Write the task in one sentence. If you need two sentences, you probably have two tasks, so split them.
  2. Add the reader. Say who it is for and what they already know.
  3. Add the facts the assistant cannot know: dates, names of products, the decision that was made. Use placeholders in square brackets if the details are sensitive.
  4. Name the format. Ask for the shape you can use directly, such as a numbered list or a table.
  5. Set limits on length and tone, and say what to avoid.
  6. Read it back. If a colleague who knew nothing about your work could follow it, the assistant probably can too.

When the answer is not right

Treat the first reply as a draft and give feedback the way you would to a new colleague. Specific feedback works better than general feedback.

  • Too general: "Add two concrete examples from a small retail business."
  • Wrong tone: "Make it warmer and remove the second paragraph."
  • Wrong shape: "Turn this into a table with columns for task, owner and date."
  • Unsure of accuracy: "Which statements here are you least certain about?"

That last question will not catch every error, so it does not replace checking. It can, however, point you to the claims worth verifying first.

Good to know

Show an example when the style matters. Pasting two or three lines of your own writing and saying "match this tone" is often more effective than describing the tone in words.

Keep a prompt library

When a prompt gives you a good result, save it in a note with the changeable parts marked in square brackets, for example [customer name], [new date] and [word limit]. Next time you only fill in the blanks. Over a few weeks you will build a small set of prompts for the jobs you do most often, such as meeting follow-ups, status updates and first drafts of routine replies.

What a prompt cannot do

  • It cannot make the assistant know facts it was never given, such as your internal pricing or a decision made last week.
  • It cannot guarantee a correct answer. Check names, numbers, dates and quotations against a trusted source.
  • It should not contain confidential or personal data unless your organisation has approved the tool for that use. Use placeholders instead.

Prompting is a skill that improves with practice rather than a trick with a fixed formula, and different tools respond a little differently to the same words. If you want guided practice with exercises, our courses on writing prompts and on reusable prompt templates go through this recipe step by step.

Common questions

How long should a prompt be?

As long as it needs to be to cover the task, the context, the format and the limits, which is often three to six sentences. Longer is not automatically better; clear is better.

Why does the AI give a different answer each time I ask?

These tools generate text rather than looking up a fixed answer, so wording can vary between attempts. If you need consistency, give a clear format and an example of what good looks like.

Should I start a new chat if the answer is wrong?

Usually not. Tell the assistant what to change, such as the tone, the length or a missing detail, and it can revise using the earlier conversation.

Official pages to check

AI tools change quickly. Check the vendor's current help page before you act, and review anything an AI tool produces before you rely on it.

Share this article