Create a Custom Agent with Copilot
By the end of this lab, you will be able to:
- Understand what custom agents are vs. pre-built agents
- Use natural language prompts to define agent behavior
- Connect multiple knowledge sources (websites, SharePoint, documents)
- Ground your agent with enterprise data
- Test responses with citations from knowledge sources
- Microsoft 365 account with Copilot Studio access
- Copilot Studio environment with maker permissions
- SharePoint site with sales documentation (from Course Setup)
- Sample sales FAQ document or knowledge file
- OneDrive or SharePoint for document storage
- Review what custom agents are:
- You define the purpose and behavior
- You ground with your own data and knowledge sources
- Full control over personality, instructions, and actions
- Understand the difference from pre-built agents:
- Pre-built: Templates with predefined structure
- Custom: Built from scratch with your specific requirements
- Explore use cases for custom agents (IT support, sales, HR, etc.)
-
Navigate to copilotstudio.microsoft.com
-
Select Agent in the top-left corner
-
Select Create blank agent
-
Enter the following agent details by clicking on the Edit button and click on the save button after entering each field:
-
In the Instructions section, click on the edit button and enter:
- Instructions: "You are an agent who helps the user with all parts of the sales process. Creating meeting recaps, pricing, and making offers for potential clients."
Click on the Save button after entering the instructions.
- Navigate to the Knowledge section
- Add Knowledge Source 1 - Upload a File:
- Select Add knowledge
- Select Upload a file
- Choose your Sales FAQ document and add to the agent

- Select Add to agent
- Wait for status to reach "Ready"
- Add description by clicking on the ... button > Edit button:
This knowledge source can answer questions about the sales process, discount policies, and pricing guidelines
- Click on the Save button after entering the description.
- Add Knowledge Source 2 - Public Website:
- Open the Test pane on the right side
- Refresh the test window to load the updated agent with all knowledge sources
- Test with different types of questions to trigger each knowledge source:
- For uploaded file:
What is our discount policy? - For website:
How do I configure a Microsoft product?
- For uploaded file:
- Observe the Activity Map to see:
- Which knowledge sources are being referenced for each query
- How the agent prioritizes and searches across multiple sources
- The confidence level of responses
- Verify responses include:
- Verify your agent is properly grounded with enterprise data:
- Check that the agent references internal documentation
- Confirm responses include citations to your knowledge sources
- Ensure the agent doesn't hallucinate or make up information
- Review the grounding process:
- Knowledge sources provide the "ground truth" for the agent
- The agent retrieves information from these sources when responding
- Citations show users where information came from
- This enterprise grounding is critical for:
- Maintaining accuracy and compliance
- Building trust with users
- Ensuring consistent company information
- Review the difference between a chatbot and an agent:
- Chatbot: Responds to questions with knowledge
- Agent: Performs actions, creates documents, sends emails, executes workflows
- In the next lab, you'll make your agent truly agentic by adding:
- Topics: Structured conversations for specific tasks
- Tools: Power Automate flows that create documents and send emails
- These components transform your agent from a knowledge assistant into an automation platform
~60 minutes
Proceed to Lab 7: Add New Topic with Trigger and Nodes


