Skip to content

Lab 011: Copilot Studio β€” First AgentΒΆ

Level: L100 Path: Agent Builder β€” Teams Time: ~30 min πŸ’° Cost: Free Trial β€” Microsoft Copilot Studio free trial (no credit card for first 30 days)

What You'll LearnΒΆ

  • Navigate the Copilot Studio canvas (no-code/low-code agent builder)
  • Create a Q&A agent from a knowledge source (FAQ document)
  • Test your agent in the built-in chat test panel
  • Publish the agent to Microsoft Teams
  • Understand topics, triggers, and fallback behavior

IntroductionΒΆ

Microsoft Copilot Studio is a graphical, low-code platform for building conversational AI agents without writing code. You define topics (conversation flows), connect knowledge sources, and publish to Teams, websites, or other channels in minutes.

This lab builds a customer service agent for the fictional OutdoorGear Inc. company, grounded in a product FAQ.


PrerequisitesΒΆ

  • Microsoft account (free at account.microsoft.com)
  • Copilot Studio trial: copilotstudio.microsoft.com β†’ Start free trial
  • Microsoft Teams (free personal edition works)

No credit card needed

The Copilot Studio free trial lasts 30 days and does not require payment details.


Lab ExerciseΒΆ

Step 1: Create a new CopilotΒΆ

  1. Go to copilotstudio.microsoft.com
  2. Sign in with your Microsoft account
  3. Click Create β†’ New agent
  4. Fill in:
  5. Name: OutdoorGear Assistant
  6. Description: Customer service agent for OutdoorGear Inc. β€” answers product and policy questions
  7. Instructions: You are a friendly customer service agent for OutdoorGear Inc. Answer questions about products, return policies, shipping, and warranties. Be concise and helpful.
  8. Click Create

Step 2: Add a knowledge sourceΒΆ

  1. In the left panel, click Knowledge
  2. Click Add knowledge β†’ Public website or file
  3. Enter this URL (our sample FAQ):
    https://raw.githubusercontent.com/lcarli/AI-LearningHub/main/data/knowledge-base.json
    
    Or click Upload file and paste this content into a .txt file first.

Using the knowledge-base.json

The data/knowledge-base.json file contains 42 documents including product guides, return policies, FAQs, and shipping info β€” all pre-formatted for RAG.

Step 3: Test the built-in knowledgeΒΆ

  1. Click Test in the top-right corner
  2. In the chat panel, try these questions:
  3. What is your return policy?
  4. Do you have waterproof boots?
  5. How long does shipping take?
  6. The agent should answer from the knowledge source and cite where it found the answer

Step 4: Create a custom topicΒΆ

Custom topics let you override AI responses with deterministic flows for specific intents.

  1. Click Topics in the left panel
  2. Click Add a topic β†’ From blank
  3. Name it: Order Status
  4. Under Trigger phrases, add:
  5. Where is my order
  6. Track my order
  7. Order status
  8. What happened to my order
  9. Add a Message node:
    To check your order status, please visit our order portal at outdoorgear.com/orders or call 1-800-OUTDOOR. Have your order number ready!
    
  10. Add an End conversation node
  11. Click Save

Step 5: Test the custom topicΒΆ

In the test panel, type: Where is my order?

The agent should use your custom topic flow, not the AI fallback. Notice how deterministic topics take priority over AI generative answers.

Step 6: Publish to TeamsΒΆ

  1. Click Publish in the left panel
  2. Click Publish to make the agent live
  3. Click Channels β†’ Microsoft Teams
  4. Click Turn on Teams
  5. Click Open agent β€” this opens a deep link
  6. In Teams, click Add to install the agent as an app
  7. Start chatting with your OutdoorGear Assistant in Teams!

Copilot Studio ArchitectureΒΆ

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚          Copilot Studio                 β”‚
β”‚                                         β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚   Topics    β”‚   β”‚  Generative AI  β”‚  β”‚
β”‚  β”‚ (no-code    β”‚   β”‚  (knowledge +   β”‚  β”‚
β”‚  β”‚  flows)     β”‚   β”‚   LLM fallback) β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚         β”‚   Topic match?    β”‚           β”‚
β”‚         β”‚ β—„β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜           β”‚
β”‚         β–Ό                               β”‚
β”‚     User message                        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
         β–Ό
  Channels: Teams, Web, Slack, ...

Priority order: 1. Custom topics (exact trigger match) β†’ deterministic 2. Built-in system topics (escalate, fallback) 3. Generative AI answers from knowledge sources


When to use Copilot Studio vs Pro CodeΒΆ

Copilot Studio Pro Code (SK/MCP)
Business users, no code Developers
Fast prototyping Complex logic
Teams/SharePoint integration Custom integrations
GUI-based flows Programmatic control
Limited customization Full flexibility

Next StepsΒΆ