Skip to main content
Module 02 of 05Beginner25 min

Prompting & Instructing Models.

Learn to write prompts that work reliably, and briefs that an agent can follow on its own for many steps.

  1. Module 1
  2. Module 2 (current)
  3. Module 3
  4. Module 4
  5. Module 5

After this module you can

  • Structure a prompt with role, task, context, format and constraints
  • Apply few-shot, step-by-step and self-critique techniques
  • Write an agent brief with a clear definition of done

Core principles

  • Be specific. Treat the model like a capable new colleague who knows nothing about your context.
  • Give context, not just commands. Explain why — models make better trade-offs when they know the goal.
  • Show the output you want. Format, length and an example beat adjectives.
  • Iterate. The first prompt is a draft.

Anatomy of a prompt

Role
“You are a procurement analyst at a Swiss industrial company.”
Task
“Compare the three supplier offers attached.”
Context
“We prioritise delivery reliability over price; budget is CHF 200k.”
Format
“Return a table with criteria as rows and a one-line recommendation.”
Constraints
“Only use information from the attached offers. Flag missing data.”

Techniques

Few-shot examples

Provide two or three examples of input and ideal output; the model infers the pattern.

Step-by-step reasoning

Ask the model to think through the problem before answering — especially for analysis and calculations.

Structured output

Request tables, JSON or fixed headings so results can be reused in other tools.

Self-critique

Ask the model to review its own answer against your criteria and improve it.

Prompting agents

Agents run for many steps without you. Their brief must define the goal, the tools they may use, what “done” looks like, and when to stop and ask a human. Think job description, not question.

Common mistakes

  • Vague goals (“make it better”).
  • Missing context about audience and purpose.
  • Trusting facts without sources — always verify.
  • Pasting confidential data into consumer tools.

Exercise · 10–15 min

Rewrite a weak prompt

  1. 1Take a prompt you used recently that gave a mediocre answer.
  2. 2Rewrite it using the five-part anatomy from this module.
  3. 3Run both versions and compare the outputs side by side.
  4. 4Note which part of the anatomy made the biggest difference.

Key takeaways

  • Context beats commands: say why, not only what.
  • Show the format you want — examples beat adjectives.
  • An agent brief is a job description: goal, tools, done, escalate.

Check yourself

Answer in your head first, then reveal.

Q1Name the five parts of a well-structured prompt.Reveal

Role, task, context, format, constraints.

Q2What must an agent brief contain that a chat prompt often does not?Reveal

Allowed tools, a definition of “done”, and when to stop and ask a human.