Building a Copilot Agent for a Contact Centre Team
Microsoft Copilot Studio lets you build generative AI agents without writing code. This tutorial walks through creating a working agent for a contact centre team — one that answers questions by drawing on a SharePoint document library — and covers how to share it with your team and keep it up to date.
What Is Copilot Studio and What Can It Do?
Microsoft Copilot Studio is a low-code platform for building AI-powered agents. It sits within the Microsoft 365 ecosystem and is accessible to anyone with an appropriate licence — you do not need to be a developer to use it. Agents built in Copilot Studio can answer questions, guide users through processes, look up information and hand off to a human when needed.
There are two broad approaches to building an agent in Copilot Studio. The first is a topic-based agent, where you define specific conversation flows and the agent follows them. The second — and the focus of this tutorial — is a generative agent, where the agent uses a large language model to generate responses based on knowledge sources you provide. Generative agents are better suited to question-and-answer scenarios where the range of possible questions is wide and hard to predict in advance.
For a contact centre team, a generative agent is a natural fit. Contact centre staff regularly need to look up policies, procedures, product information and escalation paths. Rather than searching through folders or asking a colleague, they can ask the agent directly and get a grounded, accurate answer drawn from the team's own documentation.
Copilot Studio is available as part of Microsoft 365 Copilot licences and also as a standalone add-on. Check with your IT or licensing team before you start — you will need at least one Copilot Studio licence to build and publish an agent, though end users consuming the agent through Teams may not need their own licence depending on your agreement.
Creating the Agent in Copilot Studio
Navigate to Copilot Studio at copilotstudio.microsoft.com and sign in with your Microsoft 365 account. From the home screen, select Create and then choose New agent. You will be prompted to describe what you want the agent to do — this description is used to pre-configure the agent's name, instructions and initial topics. Write something specific: for example, 'An agent for our contact centre team that answers questions about our call handling procedures, escalation policies and product information.'
Once the agent is created, you will land in the agent editor. The left-hand panel shows the main sections: Overview, Knowledge, Topics, Actions and Settings. The Overview tab shows the agent's name, description and instructions. Review the auto-generated instructions and edit them to reflect your team's context. Instructions tell the agent how to behave — for example, 'You are a helpful assistant for the contact centre team at Snips Housing. Answer questions based only on the documents provided. If you cannot find the answer in the documents, say so clearly and suggest the user contacts their team leader.'
Set the agent's language to English (United Kingdom) in the Settings section if it has defaulted to US English. This affects how the agent formats dates, uses terminology and presents responses. While it does not change the underlying model, it helps the agent produce responses that feel consistent with your team's working environment.
The instructions you write for the agent are one of the most important configuration choices you will make. Be specific about what the agent should and should not do. If you want it to stay strictly within the provided documents and not draw on general knowledge, say so explicitly in the instructions. Vague instructions produce inconsistent behaviour.
Adding the SharePoint Library as a Knowledge Source
In the agent editor, select the Knowledge tab from the left-hand panel. Select Add knowledge and choose SharePoint from the list of available sources. You will be prompted to enter the URL of your SharePoint site or document library. Paste in the URL of the library you prepared earlier — for example, https://yourorganisation.sharepoint.com/sites/ContactCentreKnowledge/Shared%20Documents.
Copilot Studio will connect to the library and begin indexing the documents. This process can take a few minutes depending on the number and size of files. Once indexing is complete, the library will appear in the Knowledge tab with a status indicator. A green tick means the source is active and the agent can draw from it. If you see a warning or error, check that the account used to configure the agent has read access to the library.
You can add multiple knowledge sources to a single agent. If your contact centre team also has a useful internal wiki, a set of FAQs stored in a different SharePoint site, or a public-facing help page, you can add these as additional sources. The agent will draw from all of them when generating responses. Be mindful of the total volume of content — very large knowledge bases can affect response quality, so prioritise the most relevant and reliable documents.
Once the knowledge source is connected, test it using the Test your agent panel on the right-hand side of the editor. Type a question that should be answerable from one of your documents — for example, 'What is the escalation process for a complaint about a repair?' The agent should respond with a grounded answer and, importantly, cite the source document it drew from. If it does not cite sources, check that the Show citations setting is enabled in the Generative AI section of Settings.
Test with questions you know the answers to before you share the agent with your team. This lets you verify that the agent is drawing from the right documents and producing accurate responses. Pay particular attention to edge cases — questions where the answer is not clearly stated in any document, or where two documents give slightly different guidance.
Configuring the Generative AI Behaviour
In the Settings section of the agent editor, navigate to Generative AI. This is where you control how the agent uses its language model to generate responses. The key setting here is the content moderation level — this controls how strictly the agent filters its responses. For an internal contact centre tool, a moderate setting is usually appropriate. A very strict setting may cause the agent to refuse to answer legitimate questions; a very permissive setting may allow responses that are not grounded in your documents.
Enable the Allow the AI to use its own general knowledge option only if you want the agent to draw on information beyond your provided documents. For a contact centre agent where accuracy and consistency are important, it is usually better to leave this disabled and keep the agent strictly grounded in your own content. If a user asks something the agent cannot answer from the documents, it should say so clearly rather than improvising.
Review the Classic topics that Copilot Studio creates by default — these include system topics such as Greeting, Goodbye, Escalate and Fallback. The Fallback topic is particularly important: it defines what the agent does when it cannot find a relevant answer. Edit the Fallback topic to include a clear message directing users to an appropriate alternative, such as contacting their team leader or raising a query through the normal support channel.
The Escalate topic is worth customising for a contact centre context. You can configure it to provide a specific phone number, email address or Teams channel for users to contact when the agent cannot help. This turns a dead end into a useful handoff and maintains trust in the agent even when it cannot answer a question.
Keeping the Agent Up to Date
An agent is only as useful as the documents it draws from. Keeping the knowledge base current is an ongoing responsibility, not a one-off task. Assign ownership of the SharePoint document library to a named person or small team — someone who is responsible for reviewing documents when policies change, adding new content when processes are updated and removing or archiving anything that is no longer accurate.
When you update a document in the SharePoint library, Copilot Studio will re-index it automatically — you do not need to re-add the knowledge source or republish the agent for document changes to take effect. The re-indexing typically completes within a few minutes. However, if you add a new document to the library, check the Knowledge tab in the agent editor to confirm it has been picked up. Occasionally a new file may not be indexed automatically and will need to be added manually.
If you need to change the agent's instructions, add a new knowledge source, or modify its topics and behaviour, make the changes in the agent editor and then republish. Select Publish from the top menu and confirm. The updated agent will be available to users in Teams immediately after publishing — there is no need to redistribute a link or ask users to reinstall anything.
Review the agent's conversation history periodically using the Analytics section in Copilot Studio. This shows you which questions are being asked most frequently, which sessions ended without a satisfactory answer and where users escalated to a human. This data is invaluable for identifying gaps in your knowledge base and improving the agent over time. A question that consistently produces a poor answer is a signal that the relevant document either does not exist, is unclear or needs to be updated.
Set a recurring calendar reminder — monthly or quarterly — to review the agent's analytics and check that the key documents in the knowledge library are still current. An agent that gives outdated or incorrect answers is worse than no agent at all, because it erodes trust and can cause real problems for the team relying on it.