Step-by-Step Tutorial: Build Your First AI Agent in Copilot Studio
Let’s walk through how to create a simple AI agent using Microsoft Copilot Studio that can automatically reply to incoming emails using your company’s documentation as a knowledge source. We’ll build an agent called Auto Business Process Responder, which reads support inquiries from email and responds with the right information based on the CRM Business Process Manual.
What This Agent Will Do:
- Monitor a shared inbox for incoming support emails with the subject line containing “Inquiry”.
- Use a Word document (your handbook) as a knowledge base.
- Automatically send a polished, friendly email response using the right answer from the document.
Step 1: Create a New Agent
- Go to Microsoft Copilot Studio.
- Click “Create” to start a new agent.
- You’ll see two options:
- Use Copilot: Guided setup where Copilot helps you by asking questions.
- Skip to configuration: You enter everything manually.
For this example, choose Skip to configuration for full control.
Step 2: Name and Describe Your Agent
Now fill in basic information about your agent.
- Name: Auto Business Process Responder
- Description: This agent assists clients by answering their questions using the CRM Business Process Manual Handbook. It provides accurate, clear, and concise responses in a professional tone.
- Icon: Give your agent an icon.


Step 3: Add Instructions to Guide the Agent
– Provide accurate and helpful answers to client questions using the CRM Business Process Manual Handbook.
– Ensure responses are clear, concise, and relevant to the client’s query.
– Avoid providing personal opinions or unverified information
– Maintain a professional and supportive tone in all interactions.
– Avoid using jargons.
– Handle sensitive topics with care and confidentiality.
– Use a friendly tone in all communication.
– When replying to an inquiry with information from the CRM Business Process Manual handbook, use the Send an email action to compose and send an email response that includes the relevant information from the CRM Business Process Manual handbook. The email should begin with a friendly greeting. Start the email body on a new line, and start the sign-off on a new line as well. Do not include citations in the email.
– The email body should always be written in well-formatted HTML. Please make it look polished.
Step 4: Upload Your Knowledge Source
Your agent needs information to respond. Let’s add the document it will use as its knowledge base.
-
- Navigate to the Knowledge section.
- Click “+ Add knowledge source”.
- Upload your file: CRM Business Process Manual.docx
- Add a short description, like:
“This document contains client handling processes and procedures for OPRO.”


Step 5: Set the Trigger – When Should This Agent Act?
-
- Go to the Triggers tab.
- Choose: When a new email arrives (V3) (This trigger monitors a mailbox for incoming emails.)
- Rename it for clarity: When a new email arrives business process automate (This helps keep things organized if you add more triggers later.)
- Configure the following:
- To: support@gmail.com (The email address this agent is monitoring — replace with your support mailbox.)
- Subject contains: Inquiry (This ensures the agent only responds to relevant emails.)
This ensures the agent only responds to relevant business queries.
Step 6: Add the Action – Configure How Your Agent Responds
This is done using the built-in action: Office 365 Outlook – Send an email (V2)
This action allows the agent to automatically generate a polished, professional email response — no manual reply needed.
- Go to the Actions tab of your agent.
- Click + Add an action.
- Choose: Office 365 Outlook – Send an email (V2)
(This is the standard connector for sending emails via Microsoft 365.)




Step 7: Add Starter Prompts (Optional, for Chat)
If you plan to use your agent in Microsoft Teams or chat, Starter Prompts can help users know what to ask. In the Start Prompts section:
- Click Add Prompt
- Enter typical questions like:
- How do I create a new quotation?
- What are the steps to approve a quotation?
- How do I handle errors during quotation?
Step 8: Test the Agent
- Simulate sending an email with the subject “Inquiry”.
- See how the agent responds using the knowledge base.
Confirm tone, formatting, and clarity.
Testing the agent in the Test window:


- Go to the Triggers tab in your agent setup screen.
- Find your trigger: When a new email arrives – business process automate
- Click the flask icon on the right side of the trigger.
(This opens the trigger test window.)
You’ll now see the “Test your trigger” popup. This shows past email instances that matched your trigger conditions.
- Select a relevant test instance (e.g., from April 24, 01:44 PM).
- Click Start testing.
The system will use that historical instance to simulate how your agent reacts to it.

Step 9: Publish and Activate the Agent
Once you’re satisfied with testing:
- Click the Publish button at the top right.
- Your agent is now live!
It will begin monitoring the inbox and automatically respond to business inquiries with helpful, knowledge-based answers.
Example:
Incoming Email

Process:

Agent Reply:

You’ve Built Your First AI Agent!
Congratulations! You’ve just created a real, working AI agent that responds to emails using your business documentation.
This type of setup is incredibly useful for:
- Automating client support
- Reducing manual responses
- Ensuring consistency and professionalism in communication