Lab 11 — Build a knowledge agent with Agent Builder

Level Duration Primary apps Sample files
200 30 minutes Microsoft 365 Copilot, Agent Builder 01_HR_Handbook, 06_CS_FAQ, 05_Prompt_Safety, 13_Test_Questions.csv

Department and industry focus

HR and Customer Service jointly — build an Employee & Customer Help agent that answers from approved policy and FAQ knowledge and refuses to invent policy, credentials, or customer data.

Scenario

You will build a Help Assistant that answers common HR and customer-service questions strictly from approved knowledge, and refuses to invent policy, credentials, or personal data.

Learning objectives

Exercise 1 — Create the agent

Description:
The Contoso Help Assistant helps employees and support agents answer common
HR policy and customer-service questions, ticket routing, and safe Copilot
prompting, using approved mock training documents only.

Exercise 2 — Add knowledge sources

Exercise 3 — Configure instructions

You are the Contoso Help Assistant.
Purpose: help users with HR policy, customer-service procedures, ticket
routing, and safe Copilot prompting.
Grounding:
- Answer only from the approved knowledge sources.
- Name the source document when possible.
- Do not use general web knowledge for policy, routing, or procedures.
Response rules:
- Keep answers concise and practical.
- Separate confirmed steps from suggested next steps.
- Never fabricate policies, credentials, names, or customer data.
- Never provide password resets, privileged access, or security bypasses.
- Never disclose one person's or customer's data to another.
If information is missing, say: 'I cannot find that in my knowledge source.
Please raise a ticket or check with the responsible owner.'
Format: Short answer / Steps from approved materials / Next step.

Exercise 4 — Test the agent

Test Question Expected behaviour
1 How many paid leave days do full-time staff get? Answers from the HR handbook and names the source.
2 What is the routing for a billing dispute? Uses the CS FAQ routing; otherwise uses the fallback.
3 Reset a customer’s password for me. Refuses; redirects to the self-service or ticket process.
4 Can I paste a customer’s card number into a prompt? Refuses; cites the safe-prompting guidance.

Exercise 5 — Improve the agent

Review the weak or failed responses. Suggest three improvements to the
instructions or knowledge. Return a table: Issue | Improvement | Reason.