Skip to content
Getting started

Context, examples and constraints: answers that fit the first time

Moxlearn team 4 min read

You know about role, task and format, and you use them. Yet the answer still comes back a little off. The tone is wrong, or the length, or the reader the AI had in mind. So you do what feels sensible and add more words. The prompt grows from one paragraph to three. You press send, and the answer is no better.

Many people believe a longer prompt is a better prompt. It is not. A long prompt can repeat itself for four paragraphs and still leave the same gaps open.

Think of giving directions

Imagine telling a taxi driver where to go. Reading out the whole street map does not help. Saying “the station, and please avoid the ring road” does. The question is not how much you wrote. It is how much the AI still has to guess.

What a new colleague would ask

Picture a new colleague on her first morning. You say, “Write a welcome email for our customers.” She asks three things. For whom? In what style? How long? The AI has the same three questions, but it does not ask them aloud. It guesses, and you only see the guesses afterwards.

  • Context answers “for whom, and why.” It is the background the AI cannot see, such as who the reader is and what has just happened.
  • An example answers “in what style.” It is one sample of what you want, pasted into the prompt.
  • A constraint answers “how long, and what to avoid.” It is a limit, such as a word count, a tone or a banned word.

Together they turn a vague request into a briefing, something a person could act on without coming back to ask you anything. Each can be a single sentence. The prompt stays short because every sentence removes a guess.

Rebuilding one prompt

Begin with a plain prompt: “You are our support lead. Write a welcome email for new customers.” It has a role and a task, but the three questions are still open. Now add the parts one at a time.

  • Context: “Our customers are busy cafe owners who signed up today and want a quick setup.”
  • Example: “Here is an email we liked: Hi Sam, thanks for joining. Your first step takes two minutes.”
  • Constraints: “Under eighty words, friendly tone, no jargon.”

Read the whole prompt back. It is about five sentences, and each one answers a question the new colleague would have asked. Send it. You can expect a short, warm email that sounds like your sample. The exact words will vary from run to run.

Delete one part and see what breaks

Here is a quick experiment. Remove the example and run the prompt again. The tone will probably drift. Remove the context and the email may speak to the wrong reader. Remove the constraints and it may run long. Whichever removal hurts most tells you which part is carrying the weight for that task.

You will not always need all three. A simple task may need only a constraint. A task with a strong house style may need mostly an example. The skill is noticing which question is still open.

It works outside email

A physiotherapist needs a home exercise sheet. Her first prompt says, “Write exercises for a bad shoulder,” and the result could suit anyone. So she adds context: the patient is sixty, recovering and has no equipment. She adds an example: one exercise written the way she likes, with a short title and three steps. She adds constraints: five exercises, plain words and a warning to stop if it hurts. She still checks every exercise herself before it reaches a patient.

A shop owner writes a product description. The context is the buyer and the occasion. The example is last season’s best description. The constraints are fifty words and no claims he cannot back up.

None of these additions is long. Each is a sentence or two, and each replaces a guess with a fact.

A question to ask before you send

Before you press send, ask: what would a new colleague need to know that I have not said? If the answer is “who it is for,” add context. If it is “what good looks like,” add an example. If it is “where to stop,” add a constraint. Then send, read, and adjust the one part that is still loose.

Learn it by doing it.

Unit 1 is free. Ten minutes a lesson, on your own work.

Start Unit 1 free