← All unitsUnit 2 / 9
Unit 2

Prompt engineering

Learn to give AI clear instructions that produce excellent, reliable results.

2.1

Anatomy of a great prompt: role, task, context, format

3 min
🎬 The video for this lesson is being published — you can study it from the lesson notes below.
Lesson notes (transcript)

Welcome to unit two: prompt engineering. This is the most practical skill in the whole diploma. In this first lesson, we'll open an AI assistant together, and I'll show you, step by step, the difference between a weak prompt and a great one.

A prompt is a brief. The better the brief, the better the work.

A prompt is a brief. The better the brief, the better the work.

Think of a prompt as a brief you give to a very fast, very capable assistant who knows nothing about your situation. If your brief is vague, the work will be vague. If your brief is clear, the work will be clear. Prompt engineering simply means writing better briefs.

A weak prompt

Prompt used in the demo:

Write an email about the meeting.

Example answer:

Subject: Meeting

Hi,

I wanted to follow up regarding the meeting. Please let me know your availability and any questions you may have.

Best regards,
[Your Name]

First, let's see what most people do. We click new chat, click in the message box, and type: write an email about the meeting. We press send. And the answer is polite, but useless. Which meeting? To whom? What should it say? The AI had to guess everything, so it gave us a generic template full of blanks.

The four building blocks

  • ROLE — Who should the AI be? “You are an experienced office manager.”
  • TASK — What exactly should it do? “Write a short email inviting my team…”
  • CONTEXT — What does it need to know? Date, place, audience, purpose
  • FORMAT — How should the answer look? Length, tone, structure

A great prompt has four building blocks. The role: who should the AI be? The task: what exactly should it do? The context: what does it need to know, like the date, the audience and the purpose. And the format: how should the answer look, its length, tone and structure. You don't always need all four, but the more you include, the better the result.

A great prompt

Prompt used in the demo:

You are an experienced office manager. Write a short email to my team inviting them to a project review meeting on Thursday at 10 am in Room 3. Explain that we will review progress on the new website and agree next steps. Keep it friendly and under 120 words, with a clear subject line.

Example answer:

Subject: Project review – Thursday 10 am, Room 3

Hi team,

I’d like to invite you to our project review meeting this Thursday at 10 am in Room 3.

We’ll look at the progress on the new website together and agree on the next steps, so please bring any updates or questions from your area.

The meeting should take about 45 minutes. Thanks for all your hard work so far — see you on Thursday!

Best regards,
Sarah

Now let's try a great prompt. New chat again. This time, we type four things. A role: you are an experienced office manager. A task: write a short email inviting my team to a project review meeting. The context: Thursday at ten, Room three, and what we'll discuss. And the format: friendly, under a hundred and twenty words, with a clear subject line. Role, task, context, format. Now we send it. And look at the difference: a complete, ready to send email, with the right details, in the right tone. Same tool, completely different result. The only thing that changed was the prompt.

Three habits of great prompters

  • Be specific — Numbers, names, dates and examples beat general words
  • Say what you want — “Use simple words” works better than “don’t be complicated”
  • One main task — Split big requests into steps (Lesson 3)

Three habits will make every prompt better. Be specific: numbers, names, dates and examples beat general words. Say what you want, rather than only what you don't want: use simple words works better than don't be complicated. And give one main task at a time. We'll learn how to split big requests in lesson three.

Turning on a tool: web search

Prompt used in the demo:

What are the main AI rules that apply to businesses in the EU this year? Summarise in 5 bullet points and give the official sources.

Example answer:

Searching the web…

Here is a short summary, with links to the official sources:

- EU AI Act — applies in stages; some uses of AI are banned, and “high-risk” systems must meet strict requirements.
- Transparency — people must be told when they are talking to an AI or seeing AI-generated content.
- …

Sources: European Commission · Official Journal of the European Union

Part of a great prompt is choosing the right tool. When your question is about recent facts or rules, turn on web search first. Click the plus button, choose search the web, and you'll see the search tool switched on below the message box. Then write your prompt, including the format: five bullet points, with official sources. The assistant looks up current information and shows where it came from. Always open the sources before you rely on the answer.

Your turn — 15-minute exercise

  • Choose a real task from your work or studies
  • Write it as a one-line prompt and run it
  • Rewrite it with role, task, context and format
  • Compare the two answers: note three differences

Now it's your turn. Choose a real task from your work or studies. Write it first as a one line prompt, and run it. Then rewrite it with a role, a task, the context, and the format you want. Run it again in a new chat, and write down three differences between the answers. You'll be surprised how big the difference is.

Next: Examples and tone

Great work. You now know the four building blocks of a great prompt. In the next lesson, we'll learn two powerful techniques: giving the AI examples to copy, and controlling the tone of its writing. See you there.

Practical exercise

Take one real task from your work or studies. Write it first as a one-line prompt, then rewrite it with a role, task, context and format. Run both in the same AI assistant and write down three differences between the answers.

2.2

Giving examples and setting the tone

3 min
🎬 The video for this lesson is being published — you can study it from the lesson notes below.
Lesson notes (transcript)

Unit two, lesson two. Sometimes it's hard to describe exactly what you want. The solution is simple: show the AI an example. In this lesson, you'll learn how to give examples, and how to control the tone of everything the AI writes for you.

Two ways to ask

  • Zero-shot — You describe the task and the AI does its best. Fast, but the style is up to the AI.
  • Few-shot — You add one to three examples. The AI copies the pattern: length, structure and style.

There are two ways to ask. Zero shot means you describe the task, and the AI does its best. It's quick, but the style is up to the AI. Few shot means you add one to three examples of what you want. The AI then copies the pattern: the length, the structure and the style. When consistency matters, use examples.

Few-shot: product descriptions

Prompt used in the demo:

Write a product description in the same style as these examples. Example 1: Ceramic mug — Hand-glazed in deep blue. Holds 350 ml. Dishwasher-safe. Perfect for slow mornings. Example 2: Linen napkins — Set of 4 in natural oat. Soft, stonewashed linen. Gets better with every wash. Now write one for: Bamboo cutting board.

Example answer:

Bamboo cutting board — Solid, sustainably grown bamboo. 35 × 25 cm with a juice groove. Gentle on knives, light to carry. Made for everyday cooking.

Let's try it. Imagine you run an online shop. We type: write a product description in the same style as these examples. Then we paste two examples, each with a name, two or three short facts, and a friendly last line. Finally: now write one for a bamboo cutting board. We send it. And the AI follows our pattern exactly: the same length, the same rhythm, the same warm ending. Imagine doing this for a hundred products, all in one consistent voice.

Tone: the words that change everything

  • Formal — Reports, official letters, applications
  • Friendly — Customers, colleagues, social media
  • Concise — Busy managers, mobile readers
  • Persuasive — Sales, proposals, fundraising
  • Simple — Beginners, children, non-experts
  • Empathetic — Complaints, difficult news

Now, tone. A few words in your prompt can completely change how a text feels. Formal for reports and official letters. Friendly for customers and colleagues. Concise for busy managers. Persuasive for sales and proposals. Simple for beginners. And empathetic for complaints, or difficult news. Always say who the audience is, and which tone you want.

Same message, different tone

Prompt used in the demo:

Rewrite this message twice: first for our CEO (formal and concise), then for our customers (warm and simple). Message: The new app update is delayed by two weeks because we found a security issue during testing.

Example answer:

For the CEO
The app update will be released two weeks later than planned. Testing identified a security issue, which we are resolving before launch. A revised release date will follow by Friday.

For our customers
Good things take a little time! We’re making our new update even safer, so it will arrive in about two weeks. Thank you for your patience — we think you’ll love it.

Here's a powerful example. We ask the AI to rewrite one message twice: first for our CEO, formal and concise, then for our customers, warm and simple. The message: the new app update is delayed by two weeks because we found a security issue. We send it, and we get two very different texts from the same facts. Notice that the customer version is still honest about the delay. Tone changes the feeling, not the truth.

Pro tips

  • Use your own past writing — Paste a text you wrote and ask the AI to match its style
  • Add do and don’t lists — “Do: short sentences. Don’t: jargon or emojis.”
  • Name the reader — “For a busy finance manager” beats “for professionals”

Three pro tips. Use your own past writing as the example, and ask the AI to match your style. Add short do and don't lists, for example: do use short sentences, don't use jargon or emojis. And name the reader as precisely as you can. For a busy finance manager is much better than for professionals.

Your turn — 15-minute exercise

  • Write two short examples of a text you produce often
  • Ask the AI for three new ones in the same style
  • Ask for one of them in two different tones
  • Compare: what stayed the same, what changed?

Your turn. Write two short examples of a text you produce often, like product descriptions or replies to customers. Ask the AI to write three new ones in the same style. Then ask for one of them in two different tones, and compare what stayed the same, and what changed.

Next: Step-by-step thinking

Excellent. You can now guide the AI's style with examples, and control its tone with just a few words. Next, we'll learn how to handle big, complex tasks by breaking them into steps. See you there.

Practical exercise

Write two short examples of a text you produce often (for example, product descriptions or replies to customers). Use them in a prompt and ask the AI to write three new ones in the same style. Then ask for one of them in two different tones and compare.

2.3

Step-by-step thinking and breaking big tasks down

3 min
🎬 The video for this lesson is being published — you can study it from the lesson notes below.
Lesson notes (transcript)

Unit two, lesson three. AI is brilliant at small, clear tasks. But when you ask for something big in one go, like a full business plan, the result is often shallow. In this lesson, you'll learn how to break big tasks into steps, and how to make the AI think more carefully.

The plan-first method

  • Outline — Ask for a structure only — no full text yet
  • Approve — Change the outline until it is right
  • Build — Ask for one section at a time
  • Review — Ask the AI to check the whole against your goal

Here's the method professionals use: plan first. Step one, ask for an outline only, with no full text yet. Step two, review and change the outline until it's right. Step three, ask for one section at a time, so each part gets full attention. And step four, ask the AI to review the whole result against your original goal.

Step 1: ask for the outline only

Prompt used in the demo:

I need a one-page business plan for a small home bakery that sells online. Before writing anything, give me only a short outline with 6 section headings and one line on what each will cover. Wait for my approval.

Example answer:

Here is a proposed outline:

1. The business — what we bake and what makes it special
2. Customers — who buys and why
3. Products and prices — core range and price points
4. Selling online — website, social media and delivery
5. Costs and first-year numbers — start-up costs and break-even
6. Next 90 days — the first practical steps

Would you like me to change anything before I write the full plan?

Let's see it. We ask for a one page business plan for a small home bakery that sells online. But notice the key sentence: before writing anything, give me only a short outline with six headings, and wait for my approval. We send it, and we get a clear structure we can check in seconds, instead of a page of text we'd have to fix later.

Step 2: build one section at a time

Prompt used in the demo:

Good. Replace section 6 with “Risks and how we reduce them”. Now write section 2 only, in about 80 words, for a city with many young families.

Example answer:

2. Customers

Our main customers are young families in the city who want fresh, homemade treats without the time to bake. Parents buy for birthdays, school events and weekends, and they value natural ingredients and reliable delivery. A second group is small cafés and offices that order regularly. We will reach both through Instagram, local parent groups and a simple online order form.

Now we continue in the same chat. We tell it: good, replace section six with risks and how we reduce them. Then: write section two only, in about eighty words, for a city with many young families. Each section now gets the AI's full attention, and we stay in control of the direction.

For decisions, comparisons and calculations, ask the AI to work through the steps.

For decisions, comparisons and calculations, ask the AI to work through the steps.

There's a second technique for thinking tasks, like decisions, comparisons and calculations. Ask the AI to work through the problem step by step, and to show the criteria it used. Many assistants also have a think longer or reasoning mode, which spends more time before answering. Use it for complex problems, not for simple ones.

Think longer: compare and decide

Prompt used in the demo:

Compare these two job offers step by step. Offer A: $3,000/month, 1 hour commute, large company. Offer B: $2,700/month, remote, startup with training budget. Use a table with 5 criteria, then recommend one for someone who values learning and family time.

Example answer:

| Criteria | Offer A | Offer B |
|---|---|---|
| Monthly salary | $3,000 | $2,700 |
| Time commuting | ~40 hours/month | None |
| Learning | Structured, slower | Training budget, broad tasks |
| Stability | Higher | Lower |
| Family time | Less | More |

Recommendation: Offer B. You lose $300 a month but gain about 40 hours, and the training budget fits your goal of learning. Check the startup’s funding and contract terms before you accept.

Let's try it. We open the tools menu and switch on think longer. Then we ask the AI to compare two job offers, step by step, using a table with five criteria, and to recommend one for someone who values learning and family time. The answer shows its reasoning clearly in a table, then gives a recommendation, and even a sensible warning to check before deciding. You can see why it decided, so you can disagree if your situation is different.

Your turn — 20-minute exercise

  • Pick a big task: a report, plan or presentation
  • Ask for an outline only — then approve or change it
  • Ask for one section at a time
  • Ask the AI to review the result against your goal

Your exercise. Pick a big task from your work or studies, a report, a plan or a presentation. Ask for an outline only, and approve or change it. Then ask for one section at a time. Finally, ask the AI to review the whole result against your original goal, and to suggest three improvements.

Next: Improving answers through conversation

Well done. You now know how to plan first, build step by step, and use reasoning for harder problems. Next, we'll learn the art of the follow up: how to turn a good first answer into an excellent final one. See you there.

Practical exercise

Pick a big task (a report, a plan or a presentation). Ask the AI for an outline only and approve or change it. Then ask for one section at a time. Finally, ask it to review the whole result against your original goal.

2.4

Improving answers through conversation

3 min
🎬 The video for this lesson is being published — you can study it from the lesson notes below.
Lesson notes (transcript)

Unit two, lesson four. Here's a secret of expert AI users: they almost never accept the first answer. They treat it as a first draft, and improve it through conversation. In this lesson, you'll learn four follow up techniques that turn good answers into excellent ones.

Four follow-up techniques

  • Specific feedback — Say exactly what to change
  • Variations — Ask for options to choose from
  • Reverse questions — Let the AI ask you what it needs
  • Self-review — Ask it to critique its own answer

Here are the four techniques. Specific feedback: say exactly what to change. Variations: ask for several options to choose from. Reverse questions: let the AI ask you what it needs to know. And self review: ask it to critique and improve its own answer.

Technique 1: specific feedback

Prompt used in the demo:

Make it shorter (max 60 words), less formal, mention one real project I did (a sales dashboard for a local shop), and end with a question to my network.

Example answer:

Just finished my data analysis course! 🎉

My favourite part: building a sales dashboard for a local shop, which showed them their best-selling hours for the first time.

Next step: using these skills at work.

What’s one data skill that made the biggest difference in your job?

Here's a typical first answer: a LinkedIn post that's correct, but generic and a bit stiff. Instead of starting again, we reply in the same chat with specific feedback: make it shorter, maximum sixty words, less formal, mention one real project, a sales dashboard for a local shop, and end with a question to my network. And now it sounds like a real person, with a real story. Vague feedback like make it better gives vague results. Specific feedback gives specific improvements.

Technique 2: ask for variations

Prompt used in the demo:

Give me 3 alternative first lines in different styles: one curious, one confident, one humble.

Example answer:

1. Curious: Ever wondered what your sales data is really telling you? I just found out.
2. Confident: New skill unlocked: I can now turn raw sales data into clear decisions.
3. Humble: I’m still a beginner, but I just finished my first data analysis course — and built my first real dashboard.

Technique two: variations. When you're not sure what you want, ask for options. Here we ask for three alternative first lines, in three styles: curious, confident and humble. Now we can simply pick the one that fits us best, or mix them.

Technique 3: let the AI ask you

Prompt used in the demo:

I want to write a short speech for my sister’s wedding. Before you write anything, ask me the 5 most important questions you need answered.

Example answer:

Happy to help! Here are my five questions:

1. What are three memories or qualities that best describe your sister?
2. How did she meet her partner, and what do you like about them?
3. How long should the speech be (1, 3 or 5 minutes)?
4. What tone do you want: funny, emotional or a mix?
5. Are there any topics or people you’d like to avoid mentioning?

Technique three is one of my favourites: reverse questions. For personal or complex tasks, the AI doesn't know enough to do a great job. So we write: I want to write a short speech for my sister's wedding. Before you write anything, ask me the five most important questions you need answered. Now the AI interviews us, and the final speech will be personal, not generic.

When to start a new chat

  • New topic — Old details can confuse the new task
  • Long, messy chat — Early instructions get less attention
  • Fresh start — Paste a short summary of what matters

Finally, know when to start a new chat. Start fresh for a new topic, because old details can confuse the new task. Start fresh when a chat becomes long and messy, because early instructions get less attention. And when you do, paste a short summary of what matters, so you don't lose your progress. And don't forget technique four: at any time, ask the AI to review its own answer, find weaknesses, and improve it.

Your turn — 15-minute exercise

  • Ask for a short text you really need
  • Give one round of specific feedback
  • Ask for three variations and choose one
  • Ask: “What questions do you have for me?”

Your exercise. Ask the AI for a short text you really need: a post, a bio or an announcement. Improve it with at least three follow ups: one with specific feedback, one asking for variations, and one asking what questions it has for you. Keep the before and after versions, and notice how far you came.

Next: Your personal prompt library

Excellent work. You now know how to turn any first draft into a great final answer. In the last lesson of this unit, you'll build your own personal prompt library, so you never start from zero again. See you there.

Practical exercise

Ask the AI for a short text you need (a post, a bio or an announcement). Improve it with at least three follow-up messages: one with specific feedback, one asking for variations, and one asking the AI what questions it has for you. Save the before and after.

2.5

Building your personal prompt library

3 min
🎬 The video for this lesson is being published — you can study it from the lesson notes below.
Lesson notes (transcript)

Unit two, lesson five, the final lesson of this unit. Every time you write a great prompt, you've created something valuable. In this lesson, you'll learn to turn your best prompts into reusable templates, and build a personal prompt library that saves you hours every week.

A template is a great prompt with blanks: [audience], [topic], [length].

A template is a great prompt with blanks: [audience], [topic], [length].

Here's the key idea. A prompt template is simply a great prompt with blanks. You keep the structure that works, the role, the format and the rules, and you replace the parts that change with square brackets: audience, topic, length. Next time, you just fill in the blanks.

Using a template

Prompt used in the demo:

You are a [friendly customer-service expert]. Write a reply to this customer message: [My order arrived late and one item was missing]. Apologise once, explain the next step clearly, offer [a 10% discount code], and keep it under [100] words.

Example answer:

Hi Layla,

I’m really sorry your order arrived late and that an item was missing — that’s not the experience we want for you.

We’ve already sent the missing item by express delivery, and you’ll receive the tracking number by email today.

As a thank-you for your patience, here is 10% off your next order: SORRY10.

Kind regards,
Omar — Customer Care

Let's see a template in action. This one is for replying to customers. The parts in brackets are the blanks: the role, the customer's message, the offer, and the maximum length. We filled them in for a late order with a missing item. We send it, and get a professional reply in seconds. Tomorrow, with a different complaint, we change only the brackets. Same quality, every time, for anyone on your team.

Five starter templates

  • Email — Role · recipient · purpose · key facts · tone · length
  • Summary — “Summarise for [reader] in [5] bullets, then 1 action”
  • Social post — Platform · audience · message · hook · call to action
  • Explain — “Explain [topic] to [audience] with one example”
  • Meeting notes — Decisions · actions · owners · deadlines

Here are five starter templates everyone should have. An email template, with role, recipient, purpose, key facts, tone and length. A summary template: summarise for a specific reader, in five bullets, then one action. A social post template, with platform, audience, message, hook and call to action. An explain template, for learning anything. And a meeting notes template that always captures decisions, actions, owners and deadlines.

Where to keep your library

  • A notes app or document — Simple, searchable, easy to copy and paste
  • Your assistant’s saved instructions — Many tools let you save preferences that apply to every chat
  • Custom assistants — In Unit 7 you’ll turn templates into your own AI assistants

Where should you keep your library? The simplest place is a notes app or a document, easy to search and copy. Many assistants also let you save custom instructions or preferences that apply to every chat, for example your job, your language, and the tone you like. And in unit seven, you'll turn your best templates into your own custom AI assistants.

Keep your library sharp

  • Name clearly — “Customer reply — late delivery” beats “Prompt 7”
  • Test and improve — Note what worked; update the template
  • Share with your team — Same quality from everyone, every time

To keep your library sharp: name templates clearly, so you can find them fast. Test and improve them: when a result isn't perfect, update the template, not just the answer. And share them with your team, so everyone gets the same quality, every time. A shared prompt library is one of the fastest ways a company can benefit from AI.

Your turn — 30-minute exercise

  • Create five templates for tasks you repeat
  • Use [square brackets] for the parts that change
  • Test each template once with real details
  • Improve the template — not just the answer

Your exercise for this unit. Create your own prompt library with at least five templates for tasks you repeat, using square brackets for the parts that change. Test each template once with real details, and improve the template based on the result. This library will be one of the most useful things you take from this diploma.

Unit 2 complete — take the unit check

Congratulations, you've completed unit two, prompt engineering. You can now write clear prompts, use examples and tone, break big tasks down, improve answers through conversation, and build your own library. Take the short unit check on the diploma page. In unit three, we'll put these skills to work on writing, communication and content. See you there.

Practical exercise

Create your prompt library with at least five templates for tasks you repeat (for example: email, summary, social post, explaining a concept, meeting notes). Use [square brackets] for the parts that change. Test each template once and improve it.

Unit 2 check

Answer the questions to complete the unit. You can try again as many times as you need.

1. Which four building blocks make up a great prompt in this unit?
2. “You are an experienced office manager.” Which building block is this?
3. “Keep it under 120 words, with a clear subject line.” Which building block is this?
4. Adding two or three examples to a prompt so the AI copies their pattern is called:
5. Which instruction follows the advice “say what you want, not only what you don’t want”?
6. You need a 10-page report. What does the “plan-first” method recommend?
7. When is a “think longer” or reasoning mode most useful?
8. The first answer is too formal and long. What is the best next step?
9. Asking “Before you write anything, ask me the 5 questions you need answered” is an example of:
10. What is a prompt template?
创建免费账户