Building Agents: Create, Test & Publish
Step-by-step: create a Copilot Chat agent in 15 minutes, build a SharePoint agent, then test and refine it before sharing with your team.
Two ways to build agents
Think of it like making a sandwich.
Copilot Chat agent = you describe what you want and the kitchen builds it. You say βI want a club sandwich with extra picklesβ β Copilot Studio takes your description and creates the agent. You can also use a recipe (template) as a starting point.
SharePoint agent = you pick ingredients from whatβs already in the fridge. You point the agent at a SharePoint site and say βanswer questions about whatβs in here.β Itβs scoped to that content.
Both are no-code β you donβt write a single line of programming. If Kai at Brew & Byte can order a sandwich, they can build an agent.
Creating a Copilot Chat agent
This is a two-tab process in Copilot Studioβs lite experience:
Tab 1: Describe (the quick way)
- Open Copilot Chat β click Create agent
- Youβll see the Describe tab β type what you want in plain English:
- βCreate an agent that helps new employees find answers about company policies, using our HR SharePoint siteβ
- Copilot Studio generates a draft agent based on your description
- Review the draft β tweak if needed β click Create
Tab 2: Configure (the detailed way)
If you need more control, switch to the Configure tab:
| Setting | What You Configure |
|---|---|
| Icon & name | Visual identity for the agent |
| Description | What the agent does (shown to users) |
| Instructions | Detailed behaviour rules (tone, scope, limitations) |
| Knowledge sources | SharePoint sites, web URLs, Copilot connectors |
| Capabilities | Code interpreter, image generator (optional) |
| Starter prompts | Suggested questions users see when they open the agent |
Real-world: Brew & Byte builds an onboarding agent
Kai (Brew & Byteβs owner) needs a way for new hires to find company policies without asking 10 different people.
Step 1: Opens Copilot Chat β βCreate agentβ Step 2 (Describe): Types: βAn assistant that answers new employee questions about Brew & Byte policies. Friendly tone. References our HR SharePoint site.β Step 3 (Configure): Adds the HR SharePoint site as a knowledge source. Adds starter prompts: βHow do I claim expenses?β, βWhatβs the dress code?β, βHow do I book holiday?β Step 4: Clicks Create β shares with the team
Total time: 15 minutes. Zero coding. New hires now have a 24/7 policy assistant.
Templates β start from a recipe
Instead of describing from scratch, you can start from a template. Microsoft provides templates like:
- Prompt Coach (writing better prompts)
- Writing Coach (improving written content)
- Meeting Facilitator
- Project Helper
Templates come with preconfigured instructions and settings. You customise from there.
Creating a SharePoint agent
SharePoint agents are created directly from within a SharePoint site:
- Navigate to the SharePoint site where you want the agent
- Open the agent panel (from the site home, a library, or a specific file)
- Configure three tabs:
| Tab | What You Set |
|---|---|
| Overview | Agent name, description, icon |
| Sources | Entire site, specific library, or selected files |
| Behaviour | Custom instructions, welcome message |
- Click Create β the agent is saved as a .agent file on the site
SharePoint vs Copilot Chat agents β key differences
| Feature | Copilot Chat Agent | SharePoint Agent |
|---|---|---|
| Created in | Copilot Studio (lite) | SharePoint site |
| Knowledge scope | SharePoint + web + connectors | That specific SharePoint site |
| Extra capabilities | Code interpreter, image generator | Not available |
| Where users access it | Copilot Chat | On the SharePoint site |
| Saved as | Cloud service | .agent file on the site |
Exam tip: SharePoint agents are simpler and more focused β theyβre designed for site-specific content. Copilot Chat agents are more flexible β they can combine multiple knowledge sources.
Testing and editing agents
Before sharing an agent, always test it. Hereβs the testing checklist:
- Ask varied questions β donβt just test the happy path
- Check tone and style β does it match your instructions?
- Test edge cases β what happens with unexpected questions?
- Verify accuracy β are the answers factually correct?
- Check permissions β does the agent respect who can see what?
- Get user feedback β share with 2-3 colleagues before wide rollout
Editing after creation
Agents arenβt set-and-forget. You can edit them anytime:
- Copilot Chat agents: Open Copilot Studio β find the agent β edit instructions, sources, or capabilities
- SharePoint agents: Open the .agent file on the site β edit Overview, Sources, or Behaviour β click Update
Key concept: When you update an agent, changes take effect immediately for everyone using it. This is why testing is so important β a bad update affects all users instantly.
π¬ Video walkthrough
Flashcards
Knowledge Check
Northwave's marketing team wants to create an agent that answers questions about their brand guidelines. The guidelines are stored in a SharePoint document library AND on the company's public website. Which approach should they use?
Zoe at Brew & Byte created a SharePoint agent for the design team's project site. A week later, the team uploaded 50 new files to the library. Does Zoe need to update the agent?
Next up: Agent Lifecycle β the governance side: who can access agents, how approvals work, and how to monitor agents in production.