Find a course
Age level: Adults & professionals (18+)BeginnerData & AI

Prompt Engineering Basics

Write clear prompts that get useful, reliable answers from AI chatbots

⏱ 2 h 5 min5 modules · 12 lessons79 practice questionsFinal exam: 20 questions
Included with this course

Your certificate for this course

Finish the 12 lessons (about 2 h 5 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.

  • Your name and this course titlePrinted in classic diploma typography
  • Grade: Pass, Merit or DistinctionOn the gold seal, with your final score
  • Unique ID and QR codeAnyone can verify it in seconds
  • Score report PDFModule-by-module results and exam score
  1. Lessons12 lessons
  2. Final exam20 questions · 70% to pass
  3. CertificatePDF + score report

What you will learn

  • Explain in plain terms how a large language model turns a prompt into a response, including tokens, context windows and randomness
  • Write prompts that state a clear task, give relevant context, set the output format and add useful constraints
  • Turn vague requests into specific, unambiguous instructions using delimiters, audience and length targets
  • Use zero-shot, few-shot, step-by-step and prompt-chaining techniques and know when each one helps
  • Assign roles and set tone with system and user instructions without relying on them for accuracy
  • Test and improve prompts with a small test set, a rubric and one change at a time
  • Reduce and catch hallucinations by grounding answers in sources and verifying important claims
  • Protect private data, recognize prompt injection and bias, and build a reusable library of prompt recipes

About this course

Two people open the same AI chatbot and ask for help with the same cover letter. One gets a bland page of clichés. The other gets a tight, specific letter that sounds like a real person and fits the job ad. The model was identical. The difference was the prompt.

Prompt engineering is the practical skill of writing instructions that a large language model can follow well. It isn't magic phrasing or secret tricks. It's closer to briefing a capable new colleague who knows a lot about the world but nothing about you, your project or your standards.

This free course starts with how language models actually work: tokens, context windows and why the same prompt can give different answers. Then you'll learn the ingredients of a strong prompt (task, context, format, constraints and examples) and practice turning vague requests into precise ones. You'll use proven techniques such as few-shot examples, step-by-step reasoning, prompt chaining and role instructions, and you'll learn to test prompts the way professionals do, with a small set of test cases and a clear rubric.

Because AI output can be confidently wrong, a full module covers hallucinations, verification, privacy, prompt injection and bias, so you can use these tools at work without creating new risks. The last lesson collects reusable recipes for everyday tasks like summarizing, drafting emails, extracting data and learning new topics.

The course is for beginners: office workers, students, writers, managers and anyone who uses tools like chat assistants and wants better results with less back-and-forth. No coding is required. The techniques work across popular models because they're built on how these systems process text. Every lesson mixes short explanations with rewrites, scenarios and quick checks, and you can earn a free certificate by passing the final exam.

Syllabus

  1. How AI Models Read Your Prompts

    See what a large language model really does with your words, and why tokens, context windows and randomness shape every answer.

    1. What a Prompt Really Is11 min
    2. Tokens, Context Windows and Randomness12 min
  2. Anatomy of a Strong Prompt

    Learn the building blocks every good prompt draws on, turn vague requests into specific ones, and control the shape of the output.

    1. The Core Ingredients of a Prompt11 min
    2. From Vague to Specific11 min
    3. Controlling Format and Structure11 min
  3. Core Prompting Techniques

    Use examples, step-by-step reasoning, prompt chaining and roles to handle tasks that a single plain instruction can't.

    1. Teaching with Examples: Zero-Shot and Few-Shot11 min
    2. Step-by-Step Reasoning and Prompt Chaining12 min
    3. Roles, Tone and System Prompts10 min
  4. Test, Improve and Verify

    Treat prompts like drafts: diagnose failures, test changes systematically, and catch hallucinations before they reach anyone else.

    1. Iterating on Prompts Like a Pro12 min
    2. Hallucinations and How to Catch Them12 min
  5. Using AI Safely and Effectively

    Protect private data, recognize prompt injection and bias, and build a personal library of prompt recipes for everyday tasks.

    1. Privacy, Prompt Injection and Bias12 min
    2. Everyday Prompt Recipes12 min
  6. Final exam and certificate

    20 questions drawn from a pool of 33. Score 70% or more to pass; retakes get a fresh set of questions.

Try a sample question

Why did Lena get a generic announcement?

  1. Her prompt was too short for the model to process properly
  2. The model filled every missing detail with the most typical, average choice
  3. AI assistants are designed to add positive marketing language
  4. She should have used more polite words like "please"
Show the answer

Answer: B. The model filled every missing detail with the most typical, average choice

With no facts, audience, length or tone, the model continued her text in the most generic way it could. Short prompts are fine when the task is simple; the problem was missing information, not word count. Politeness doesn't hurt, but it can't supply facts the model doesn't have.

Prompt
The text (and sometimes files or images) you give an AI model to tell it what to do.
Large language model (LLM)
An AI system trained on huge amounts of text to predict the next token, which lets it generate and transform language.
Token
A chunk of text a model processes, often a word or part of a word. In English, one token averages about four characters.
Context window
The maximum amount of text, measured in tokens, that a model can consider at once, including your prompt, earlier messages and its own reply.
Temperature
A setting that controls how random the model's word choices are. Lower values give more predictable output; higher values give more varied output.
System prompt
Instructions set at the start of a conversation, often by the app developer, that shape the model's behavior for every later message.

Frequently asked questions

Do I need to know how to code to learn prompt engineering?

No. Prompting is mostly clear writing and careful testing. Coding helps if you later want to call models from your own software, but every technique in this course works in an ordinary chat window.

Do these techniques work with every AI model?

The core techniques (clear tasks, context, examples, format instructions, step-by-step reasoning and verification) work across all major chat models because they follow from how language models process text. Details differ: some models follow formatting better, some have longer context windows, so always test on the model you actually use.

Is there a perfect prompt I can copy for any task?

No. Templates are a useful starting point, but the best prompt depends on your task, audience and quality bar. A short, specific prompt with the right context beats a long generic template almost every time. That is why this course teaches a method for testing and improving prompts instead of a list of magic phrases.

Why does the AI give a different answer when I ask the same question twice?

Models pick each next word from a probability distribution, and most chat tools add some randomness (often controlled by a setting called temperature). Small changes in wording or earlier conversation also shift the result. For tasks that need consistency, give clear formats and examples, and test several runs.

Can I trust facts that an AI chatbot gives me?

Treat them as a draft, not a source. Models can produce fluent, confident statements that are false, including invented citations. For anything that matters, ask the model to work from documents you provide and check key claims against reliable sources.

Is it safe to paste work documents into an AI tool?

Only if your organization allows it and the tool is approved for that kind of data. Many consumer tools may store conversations or use them to improve models unless you change settings. Remove personal and confidential details or use an approved enterprise tool.

How long should a good prompt be?

As long as it needs to be and no longer. A one-line prompt is fine for a simple question. Complex tasks often need several paragraphs of context, constraints and examples. Length is not the goal; every sentence should change the output in a way you want.

Sources and further reading

Related courses

Adults & professionalsBeginner

Using AI Tools at Work

Prompting, checking and safely using generative AI in everyday jobs

Data & AI
2 h 5 min12 lessonsCertificate
Adults & professionalsBeginner

Responsible AI and AI Ethics

Bias, fairness, transparency, privacy and governance explained with real cases

Data & AI
2 h 5 min11 lessonsCertificate
TeensBeginner

AI for Teens

How artificial intelligence learns, how chatbots work, and how to use AI wisely

Data & AI
1 h 50 min11 lessonsCertificate
KidsBeginner

AI for Kids

How computers learn from examples, where AI is hiding, and how to use it wisely

Data & AI
1 h 5 min7 lessonsCertificate
Adults & professionalsBeginner

Data Analysis Fundamentals

Ask good questions, clean data, summarize it honestly and turn numbers into decisions

Data & AI
2 h 20 min12 lessonsCertificate