Designing and Governing a Prompt Library
This lesson explains how to structure, populate and govern a prompt library.
Learning outcomes
After completing this lesson, you will be able to:
- Explain why organizations need a prompt library.
- Identify what each library entry should contain.
- Describe a lifecycle that keeps the library trustworthy.
Why organizations need a prompt library
Without a library, each employee rediscovers good prompts alone, results vary between teams, and successful prompts are lost when people change roles. A prompt library captures prompts that have been tested and approved, so that new users start from proven examples and solutions reuse consistent prompts. For employees, Microsoft 365 Copilot provides a prompt gallery where users can save prompts and share them with colleagues and teams. For makers, prompts built with the prompt builder are stored in Dataverse and appear in the AI hub in Power Apps and Power Automate, from where they can be used in apps, flows and Copilot Studio agents. Microsoft also offers a prompt library of templates in the prompt builder.
A library serves two audiences with different needs. Business users need prompts for everyday tasks, such as summarizing a meeting or drafting a reply. Makers need reusable prompt components with defined inputs and outputs that behave consistently inside automated solutions.
What each library entry should contain
Every entry should contain enough information for someone else to use it correctly and for an owner to maintain it.
- Title and purpose: the task the prompt performs and the role it serves.
- The prompt text, with placeholders for variable inputs written in a consistent notation.
- Inputs and expected output: what the user or solution must supply, and an example of a good result.
- Where it works: the app or platform, such as Copilot in Outlook or a Copilot Studio agent, and the model it was tested with.
- Owner, version and review date, so that outdated prompts are found and retired.
- Data handling notes: the sensitivity of data the prompt may process, and any restrictions.
Organizing and governing the library
A library is only useful if people can find the right prompt. Entries should be organized by business function and task, tagged by app, and limited to prompts that have passed testing. The following table describes a simple lifecycle that keeps the library trustworthy.
| Stage | Activity | Responsible |
|---|---|---|
| Submit | A user or maker proposes a prompt with an example output | Contributor |
| Test | The prompt runs against representative inputs and is checked against criteria | Library curator or CoE |
| Publish | The prompt is added with owner, version and tags | Curator |
| Monitor | Feedback and usage are reviewed; problems are reported | Owner |
| Revise or retire | Prompts are updated when models or processes change, or retired | Owner and curator |
Model changes are a particular reason for review: a prompt tuned for one model version can behave differently on the next, so prompts used in automated solutions should be retested when the underlying model changes.
Setting up a library for two audiences
A bank's AI CoE wants to share good prompts. Relationship managers use Microsoft 365 Copilot, and makers build Power Automate flows that call prompts to classify customer emails. Several makers have built slightly different classification prompts that give inconsistent results. What should the CoE recommend?
For relationship managers, the CoE should curate tested prompts and share them through the Microsoft 365 Copilot prompt gallery, organized by task, with owners and review dates. For makers, the CoE should replace the duplicate classification prompts with one tested prompt built in the prompt builder, with defined inputs and a fixed output format, stored in Dataverse and reused from the AI hub by every flow. Changes to that shared prompt then go through testing and ALM, so all flows benefit together.
Why should library prompts be retested when the underlying model changes?
Show answer
A prompt tuned for one model version can behave differently on another, so its output may no longer meet expectations.
Exam Tips
Remember for the exam
- A prompt library captures tested prompts for reuse by users and solutions.
- Each entry needs purpose, text with placeholders, inputs and outputs, platform, owner, version and data notes.
- Maker prompts built with the prompt builder are stored in Dataverse and reused from the AI hub.
- Retest prompts when the underlying model changes.