Adapted from Microsoft Learning
Original Microsoft Learning lab page
Adapted from Lab 01: Write and Test Prompts for Contoso Field Services in the MicrosoftLearning/AB-410T00-Build-intelligent-applications repository, made available by Microsoft Learning under the MIT License.
Copyright (c) 2024 Microsoft. See the repository LICENSE file.
View full MIT License text
MIT License
Copyright (c) 2024 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Changes made by IGOE AI: converted into a UK English follow-along checklist with browser progress tracking, prerequisites and a recap. This is not an official Microsoft page and is not endorsed by Microsoft.
Watch the video
A walkthrough video will appear here once the YouTube ID is added.
What you will build
Four tested prompts showing how adding context, a dispatcher persona, structured output rules and few-shot examples transforms AI responses for field service triage.
Prerequisites
- Completed Lab 00 with your ALH Microsoft 365 work account.
- Access to Microsoft Copilot Chat at m365.cloud.microsoft/chat.
Scenario
Contoso Field Services installs and repairs industrial equipment for business customers. Its service team handles daily calls about request status, troubleshooting and scheduling, and needs reliable prompts before automating workflows.
Learning outcomes
By the end of this lab, you will be able to:
- Compare a vague prompt against a specific, Contoso-grounded prompt.
- Shape tone and accuracy using persona and context instructions.
- Constrain outputs into structured formats and guide classification with few-shot examples.
Lab instructions
Phase 1: Sign In to Microsoft Copilot
Phase 2: Task 1: Write a Basic Prompt & Test Specificity
Phase 3: Task 2: Set a Persona and Context (System Prompt)
Phase 4: Task 3: Constrain the Output Format
Phase 5: Task 4: Use Few-Shot Examples
Quick reference
| Technique | What It Does |
|---|---|
| Specificity | Adding context about the company, product, and role improves relevance. |
| Persona and context | A system-level instruction sets the AI's tone and behaviour across the conversation. |
| Output constraints | Controlling length, format, and audience makes responses immediately usable. |
| Few-shot examples | Demonstrating the desired style produces more consistent output. |
What you built
You ran four progressive prompt experiments in Microsoft Copilot Chat, moving from a generic request to a constrained, few-shot prompt tailored for Contoso Field Services dispatchers.
Open the original Microsoft Learning lab page or view the source GitHub repository.
See where your organisation stands
Complete the short AI and automation scorecard. Your answers stay in your browser. Nothing is sent or stored, and there is no email sign-up.