lesson
35 min

Examples and Prompt Chains

Teach the AI by example, and break big jobs into steps.

What you will learn

By the end of this lesson, you can write a prompt with examples and build a three-step prompt chain.

Teach by example

Few-shot prompting means you show the AI a few examples of what you want. Then it matches the pattern. It works well for a brand voice, a caption style, or a naming pattern.

Write a caption in this style.

Example 1: "Fresh conchas, 6 a.m. Your coffee called. We answered."

Example 2: "Pan dulce Friday. Bring the whole office. Or don't, and keep them all."

Now write three more for: empanadas, our new pumpkin bread, and Sunday hours.

Two or three good examples beat a long description. Use examples you wrote, or that the owner approved. Do not paste in someone else's work and ask the AI to copy it.

Break big jobs into a chain

A prompt chain is a set of prompts in order. The result of each step feeds the next one. Chains work better than one giant prompt, because you can check and fix each step.

Here is a chain for a short video for a youth coding club at a public library:

StepPromptFeeds into
1. Research"List five reasons teens in San Antonio join a free after-school coding club. Use plain words."Step 2
2. Concept"Using reasons 2 and 4, suggest three ideas for a 20-second video. No faces of teens. Show screens, hands, and the library space."Step 3
3. Shot list"Turn idea 1 into six shots. For each shot, give framing, action, and on-screen text."Your storyboard

You stop between each step. You read. You fix. Then you move on. That pause is where judgment lives.

Why chains are safer

  • You catch made-up facts early, before they spread into every step.
  • You can swap one step without starting over.
  • You can save each step in your Prompt Library, so a teammate can rerun it.

Notice the judgment constraint in step 2: "No faces of teens." You build the rule into the chain, so it never gets forgotten.

Chain step 1: research

Write the first prompt of a three-step chain for a real campaign.

Who should the AI act as?

What exactly should it do?

What does it need to know?

What shape should the answer take?

Your prompt

Fill in the fields to build your prompt.

Do not paste private details (full name, address, ID numbers) into any AI tool.

Try this: Run your step 1. Then write step 2 in your Prompt Library, using two items from the step 1 result.

Module check

Quiz: Module 2 quiz: The five elements

  1. 01Which element gives the AI background it cannot know on its own?

    Choose one.

  2. 02Your captions came out generic. What is the most likely fix?

    Choose one.

  3. 03Why stop between steps in a prompt chain?

    Choose one.

  4. 04Which is a fair way to use few-shot examples?

    Choose one.

  5. 05Which constraint protects privacy in an image prompt?

    Choose one.