Prompting 101Intermediate14 min

Advanced Prompting and Your Prompt Library

Level up past single prompts: few-shot examples, personas, and verified prompt chains, then stop rewriting from scratch by building a tested, reusable prompt library.


What you'll learn

  • Adapt a gallery or pack prompt with the four elements instead of pasting it raw
  • Promote a prompt through discover, adapt, test, and save gates
  • Use few-shot examples and test them on unseen inputs
  • Write a persona that changes emphasis without changing the facts
  • Chain prompts with checkpoints that stop on a failed count
On this page

If you type a fresh version of "summarize this status update for leadership" every few days, the task has outgrown a one-off prompt. You can improve the prompt itself with examples, personas, chains, and named-file grounding. You can also keep the versions that have survived a real test in a prompt library. These techniques still rely on the four elements from lesson one. They give you more control when the task needs it.

Start with Microsoft's prompt galleries

Microsoft offers two galleries for different parts of the job. The public Prompt Gallery is a browsable catalog organized by function, product, and task, with "Copy prompt" and "Open in Copilot" actions. Start there when you want ideas. The in-product gallery inside Copilot contains Microsoft's Suggested prompts, prompts you've saved under "Your Prompts," and prompts shared by your team. You may also find downloadable function packs for roles such as Sales, Marketing, HR, and Finance. Each pack contains a small set of scenario prompts to adapt.

A copied prompt is still a draft. It was written for a broad audience, so its source, audience, and output format may have little to do with your task.

Treat every borrowed prompt as a draft to finish with the four elements. Replace each bracketed placeholder, name your exact source and audience, set the format and length, and add the missing-information rule you already know:

Use only the supplied source. If an owner, date, amount, action, or risk
is absent, write "Not stated in the source." Do not infer missing facts.

Then, when you check the output, classify each statement three ways: supported (the source states the fact), mechanically derived (the prompt only changed presentation, sorting supplied ratings, placing a supplied request under a heading), or not supported (a fact, owner, or judgment you can't trace). Annotate the mechanical transformations so a colleague could reproduce them, and re-prompt anything unsupported. A gallery prompt gets you past the blank composer. That adaptation step is where the answer earns its trust.

One more habit for pack prompts specifically: inspect every bracketed value and file reference before you run it, down to the ones that look harmless. Function packs ship with placeholders like [specific areas of concern] and sample file names that mean nothing in your tenant. Leave one unresolved and Copilot either stops to ask mid-answer or, worse, invents a value to keep going. Read the whole prompt once as if you were Copilot: could any word point at something you haven't supplied? Resolve it, then add the source-fidelity line. The difference between a pack prompt that works and one that fabricates without telling you is usually a single placeholder nobody replaced.

Adapt a gallery prompt to your source· copilot-chat
Bad example

Improve this prompt I found in the gallery: [paste prompt].

Good example

Here's a prompt I copied from the gallery: "[paste the prompt]". Rewrite it for my task: goal [what I need], audience [who reads it], source [name or paste it], format [sections and length]. Add: use only the supplied source, and write "Not stated in the source" for any missing owner, date, amount, or risk. Do not infer missing facts.

Why this works: A resolved, source-bounded version of the gallery prompt with no leftover placeholders, ready to test on real material.

The prompt lifecycle: discover, adapt, test, save

A prompt only becomes reusable after it passes gates you can observe. The path is discover → adapt → test → save, and saving branches into sharing and scheduling when your workspace offers them.

Gate What proves you passed it
Adapt → Test Every placeholder replaced, with audience, source, and format explicit
Test → Save Run on realistic material, every claim checked, missing facts labeled
Save → Reuse-ready Reopened, text matches the tested version, and a second input still produces the required structure

The gate people skip is the last one. Saving a prompt does not prove its output is accurate. A successful save, share, or schedule only proves the control worked. Quality starts with a different input running through the prompt cleanly, because that's the first evidence it generalizes beyond the example you built it on.

Saving is not proof of quality

Discovering, copying, saving, sharing, or scheduling a prompt all feel like progress, but none of them verify a single fact. The only quality gate is running the prompt on real material and checking every claim against its source, then testing it again on a second input.

Show, don't just tell: few-shot examples

Most prompts are zero-shot: you describe the task and ask for a result. Few-shot prompting adds a few completed demonstrations before the real inputs, so Copilot sees the exact labels, reasoning, and output shape you expect. It's worth the extra length when categories have fuzzy boundaries, local terminology, or a strict schema.

There's one rule that makes or breaks a few-shot test: your demonstrations must use different items than the ones you're evaluating. If you show three completed examples and then ask Copilot to classify those same three, you've tested copying. Keep a written rubric, demonstrate with sample items, and score the prompt on unseen inputs. A correct few-shot run doesn't have to look different from a correct zero-shot run. The test is whether both follow the same rubric while the few-shot run applies your examples to new material.

Reach for few-shot when a category boundary is fuzzy (is a completed-but-frustrating task Neutral or Risk?), when your team uses local terminology a general model won't know, or when you need a strict output schema. Keep every demonstration consistent with your written rubric. A demonstration that contradicts the rule teaches Copilot the wrong pattern faster than the rule corrects it. Resist demonstrating with the very items you're grading. A perfect score on those items proves Copilot can echo the answers you handed it. The next hundred comments you haven't labeled are the real test.

Few-shot classification with a rubric· copilot-chat
Bad example

Label these comments as Positive, Neutral, or Risk.

Good example

Apply this rubric. Positive: a clear benefit with no unresolved obstacle. Neutral: no experience or opinion. Risk: any failure, confusion, delay, or retry, even if completed. Demonstrations: "The dashboard saves me an hour a week" = Positive. "I opened the announcement but haven't used it" = Neutral. "The export works but the columns confuse me" = Risk. Now classify these unseen comments: [paste comments]. Return ID, Comment, Label, Reason. Use only Positive, Neutral, or Risk.

Why this works: Consistent labels on new comments, each with a one-line reason drawn from the comment itself, with no invented cause, owner, or impact.

A persona can shift emphasis

A persona tells Copilot whose perspective to take, which is a precise way to set context and expectations. Skip "act as an expert": it's untestable. Define four parts instead: the role (operations analyst), the audience (a regional director), the decision focus (blockers addressable this week), and the constraints (don't infer causes, owners, or affected-user counts).

The line a persona must never cross: it may reorder, re-emphasize, or recommend, but it must not change the underlying facts. Ask the same verified source as an operations analyst and as a communications manager, and the priorities and recommendations can differ. The counts, quotations, and events stay identical. If a persona prompt reports "all users can't sign in" when the source showed one blocked user, the persona broke its contract and the output is wrong.

A testable analyst persona· copilot-chat
Bad example

Act as an operations analyst and summarize these classifications.

Good example

Act as an operations analyst preparing a weekly review for a regional director. Use only the verified classifications above. Decision focus: task blockers and friction addressable this week. Separate observations from recommendations, label each recommendation, and do not infer causes, owners, dates, or affected-user counts. Return prioritized observations, source evidence, recommended next action, and owner.

Why this works: A prioritized review where facts match the source exactly and recommendations sit in their own clearly labeled column.

Chain prompts, and stop on a failed checkpoint

A prompt chain breaks a big task into stages: extract, classify, count, recommend, and verifies each result before feeding it to the next. The reason to bother is containment: an unsupported number in stage one becomes a wrong recommendation in stage four if nothing catches it in between. Define decision rules before you rank ("a group with a task blocker outranks friction. Report ties as ties"), and build a checkpoint into the counting stage: each group's count must equal the number of listed source IDs, and every ID must appear exactly once.

When a checkpoint fails, the correct move is to stop, identify the mismatch, fix and re-verify that stage, and only then continue. If a stage reports four items but lists three IDs, you do not push forward because the failures "seem urgent," and you do not ask a persona to reinterpret the count. A persona can't repair broken evidence. Grounding a comparison in named files with / references works the same way: assign each file a clear role ("use /ProjectBrief.docx for requirements, /ReadinessChecklist.xlsx for status"), then verify the filenames, quoted evidence, and calculations against the files rather than trusting a confident summary.

Skipping the stages and asking for the whole analysis in one shot lets errors compound silently. A miscount in the extraction stage becomes a wrong ranking, which becomes a misdirected recommendation, which becomes a decision memo that sends people to fix the wrong thing, and by the final bullet, nothing visibly points back to the original mistake. Checkpoints are cheap insurance: a one-line rule that "each count must equal the number of listed IDs" catches the error where it's still obvious.

Define your decision rules before you ask for a ranking, too. "Find the most urgent issue" invites Copilot to improvise a definition of urgent. A stated rule, severity first, then count, ties reported rather than broken, makes the ranking reproducible and reviewable.

Try it yourself

Build a reusable prompt and prove it generalizes

Turn a one-off prompt into a tested, reusable one, about nine minutes.

  1. 01

    Take a prompt you've written more than once (say, a status-brief summarizer) and resolve every placeholder: goal, audience, source, sections, length, and a "Not stated" rule.

  2. 02

    Run it on a first realistic source and audit every claim as supported, mechanically derived, or not supported. Re-prompt anything unsupported.

  3. 03

    Now run the same prompt unchanged on a second, different source.

    Hint: Reuse-ready means it works on input it wasn't built around. Saving only stores the prompt.

  4. 04

    Confirm the second run kept the required structure and labeled its gaps. If your surface offers "Your Prompts," save it only now, then reopen and check the text matches.

A prompt you've proven on two inputs. Saving comes after that proof.

Key takeaways

  • Adapt gallery and pack prompts with the four elements. A raw paste rarely fits your source or format.
  • A prompt is reuse-ready only after a second, different input runs through it cleanly. Saving proves nothing.
  • Few-shot demonstrations must use different items than the ones you evaluate, or you test copying, not skill.
  • A persona may change emphasis and recommendations. Counts, quotations, and events stay fixed.
  • Chain prompts with checkpoints, and stop the moment a count fails instead of letting the error propagate.

Check your understanding

  1. 1. Put the reusable-prompt stages in order and say where saving proves quality.

  2. 2. A learner gives Copilot three completed classification examples, then asks it to classify those same three examples. Is this a valid few-shot test?

  3. 3. A chain stage reports a count of 4 task-blocking failures but lists only three source IDs. The checkpoint requires count to equal the IDs. What should happen next?

  4. 4. Asked to prioritize issues as an operations analyst, Copilot writes "all users are unable to complete the form," but the source shows one user who retried and finished. What went wrong?

  5. 5. What is the right way to use the public Prompt Gallery?

Frequently asked questions

Terms used in this lesson

zero-shot prompting
Describing a task and asking for a result without providing any completed example.
few-shot prompting
Adding a few completed demonstrations before the real inputs so Copilot matches the labels, reasoning, and format you want.
persona
A prompt that sets a role, audience, decision focus, and constraints to change emphasis, never the underlying facts.
prompt chain
A sequence of stages where each result is verified at a checkpoint before it feeds the next, so errors can't propagate.
prompt library
Your collection of tested, reusable prompts, whether in the in-product gallery or your own notes, that you adapt instead of rewriting.

Further reading