
A customer-service agent built with Microsoft Copilot Studio answered a store-hours question and emailed the response without code being needed to configure it. Kevin Stratvert’s walkthrough follows the example from its first instructions to an automatic inbox trigger. The same approach can give an agent company documents to answer questions and tools for repetitive work. Discover how to set up the assistant, test its actions and review what happens after publication.
Choose A Task And Give The Agent Sources
TL;DR Key Takeaways :
- Building an agent requires a Microsoft work or school account.
- Local files need reuploading when their contents change; websites and SharePoint files supply current information.
- Chipbot answered a store-hours question and sent the answer by email in the test.
- An incoming-email trigger can start the agent without a user initiating each action.
- Activity and Analytics help identify problems and gaps in the knowledge base.
Copilot Studio builds task-specific agents from natural-language instructions. A custom agent can use company documents to answer questions with information that a general-purpose assistant such as ChatGPT would not otherwise know. The example assistant, Chipbot, is intended to answer Kevin Cookie Company customer questions using its frequently asked questions and other company information.
Start by signing in with a Microsoft work or school account; personal Microsoft accounts are not supported. Select Chat and then All Agents on the left to browse ready-to-use assistants. In Microsoft 365 Copilot, Researcher analyzes supplied documents, reports or articles in detail, while Analyst can summarize trends and flag outliers in files such as Excel sheets and help create visualizations.
The choice of source affects how you maintain an agent’s knowledge. A locally uploaded file must be uploaded again when its contents change, while a website or SharePoint file automatically supplies up-to-date information. Chipbot can be questioned after its initial setup request, but without its FAQ and instructions on answering, its early responses are unlikely to be helpful.
Decide When The Agent Should Act
Knowledge lets an agent answer questions; tools let it take actions such as sending emails or updating records. Copilot Studio can connect agents to over 1,500 tools, as well as Power Automate flows, custom backends and APIs. Power Automate flows in Copilot Studio are available alongside the tool connections used in the setup below.
Triggers let an agent work when an event occurs without a person starting each action. A new email, a Microsoft Forms response, or a row being added, modified or deleted can start it. An agent can also be configured to hand work to or collaborate with other AI agents.
Build And Test The Customer Service Agent
These steps begin with the simple builder and then move into the advanced version of Copilot Studio for an email action and trigger:
- Select Create Agent at the top right, lower on the page or on the left. Templates are available, or you can describe Chipbot in the prompt field as a customer-service agent that answers questions using the company FAQ and documents.
- Send the request and answer the setup assistant’s follow-up questions. For Chipbot, ask for concise, friendly answers with humor, tell it not to invent answers, direct unanswered questions to the company’s support email and provide the company website as a source.
- Select Configure at the top and review the prefilled name, description and instructions. Adjust the tone, source restrictions and fallback guidance to match the job.
- To change the image, select the pencil icon, choose Change Icon, navigate to an image, then select Open and Save. You can use an AI-generated image.
- In Knowledge, use the search field to add Excel, Word, PowerPoint or PDF files, websites, SharePoint, Teams or emails. Alternatively, drag and drop a local FAQ file into the section.
- Under Capabilities, enable code interpreter for calculations or image generation for visuals if needed. Both are left off for Chipbot because its job is to answer customer questions.
- Edit, delete or add Suggested Prompts at the bottom of Configure. These sample questions appear when someone starts a chat and show what they can ask.
- Test the agent in the chat pane by asking about store hours. Chipbot answers that the store is open Monday through Saturday, nine to seven, and closed Sunday; it adds a cookie-monster joke and cites a Word document that can be opened to check the hours.
- Select Create at the top right to publish the simple agent, which is initially available only to you. To share it, select Change Sharing Settings, choose specific users or Anyone in the organization, and select Save; you can then copy a link, and Chipbot also appears under All Agents.
- For actions and live-data retrieval, open the advanced version of Copilot Studio and recreate the agent with the same instructions and uploaded FAQ. Select Agents on the left and open it to see its image, name, description, instructions and knowledge sources in Overview.
- Select Add Knowledge to connect more sources, including Dataverse, Salesforce and ServiceNow, or select Advanced to see more. A database such as Oracle can supply live information such as an order’s status; in Chipbot’s advanced Knowledge section, Web Search is off so it uses supplied information instead of pulling from the internet.
- In Tools, select Add Tool, then use All to browse available tools or Flow to find Power Automate flows. For the email action, select the Office 365 Outlook connector, choose Send an Email V2, and select Add and Configure.
- Name the tool send an email and describe it as “Email Response to Customer.” The description helps the agent decide when to use the tool.
- Under Inputs, leave To, Subject and Body set to fill dynamically with AI, so the agent derives them from the conversation. Fixed custom values can be used instead, for example for a subject line or message body; select Save at the top right when finished.
- Return to Overview, select the Edit icon next to Details, and instruct Chipbot to ask whether the user wants the answer emailed and, if they agree, use the Send an Email tool to send a summary of the question and response. Save the instructions, then test the action in the right-hand pane: when asked about store hours, Chipbot offers to email the answer, and the email arrives after the user agrees.
- To handle incoming messages automatically, return to Overview, scroll to Triggers and select Add a Trigger. Choose When a new email arrives, select Next, keep or change the trigger name, ensure you are signed in to the services involved and select Next again.
- Set filters if the trigger should apply only to a particular folder, sender or subject, then select Create Trigger. The example leaves the defaults unchanged so every email in the customer-question inbox can trigger a response.
- Before testing, open Details, select Edit and remove the instruction asking whether the customer wants an email, since this agent is meant to respond to incoming messages. Save, select the option to test the trigger in Triggers, send an email to the monitored inbox and select Start Testing after Copilot Studio detects it; an email response arrives in the test.
- Select Publish at the top right, review the information and select Publish again. Chipbot is then live with its inbox trigger; select Channels at the top, choose a channel and follow its connection steps.
Check Interactions And Unanswered Questions
After publication, Channels determines where people can interact with the advanced agent. Choices include Teams, SharePoint, web and native apps, Slack and Facebook Messenger. The channel connection steps provide the route for making the assistant available in the selected location.
Open Activity to inspect recent interactions, then select one to see the question, response, tools and knowledge sources used, and any problems. The Activity Map shows conversation steps, including knowledge referenced, tools called and values supplied. In the email test, it shows the Send an Email call after the user agrees, followed by the completed response.
The Analytics tab gives an overview over time, including total sessions, usage, trigger counts and how often the agent could not find an answer. If common questions go unanswered, add content or adjust the knowledge base to improve coverage. The interaction details can also help you debug and refine individual answers.
We think the email trigger is most useful when paired with regular Activity and Analytics checks. Chipbot answered the tested question and sent the requested response, but an automatic inbox action deserves attention after publishing, especially when the agent cannot find an answer. We would check those unanswered questions and update the knowledge base before expanding what the agent handles. Keeping source material current matters alongside configuring the action.
Chipbot’s question-answering and email functions met expectations in the example. For a similar customer-service agent, continue reviewing interactions and add missing information as questions arise.
More on Copilot:
- GitHub Copilot AI coding assistant for Visual Studio Code – Beginners Guide
- How to Build Business AI Agents in Microsoft Copilot Studio
- Copilot Studio Gains Autonomous Agents, SDK and Voice Tools
- Microsoft Copilot Updates Bring Coding Agents, Vision and Shopping
Media Credit: Kevin Stratvert
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.