Skip to content

Master AI Agents in Microsoft Copilot Studio: Complete IT Support Bot Tutorial

Building an AI Agent in Microsoft Copilot Studio: Complete IT Support Bot Tutorial

This tutorial will guide you through creating a powerful AI agent for IT support using Microsoft Copilot Studio. You'll build a bot that can search a knowledge base, use AI for generative actions, and automate rule-based actions like creating support tickets. For a broader introduction to the platform, see this How to Use Copilot Studio: Complete Beginner Tutorial for Building AI Agents.

Getting Started with Agent Creation

  1. Navigate to CopilotStudio.microsoft.com.
  2. Click Agent in the left menu.
  3. Select Create blank agent in the upper right corner.

Configuring Agent Details

  • Name: Change from "Agent" to "IT Support Agent"
  • Description: "The IT support agent provides self-service IT support by answering common questions and enabling users to create IT service requests when further assistance is required."
  • Icon: Upload a custom icon (available in the lesson files linked below).

Adding Knowledge Sources

To ensure your agent answers accurately, you must connect it to internal knowledge.

  1. Disable web search: Go to Overview > Select your agent's model > Knowledge. Toggle off "Web search."
  2. Choose a model: Select DBT-5 Chat (stable) over experimental or preview models.
  3. Add knowledge: Click Add knowledge and choose OneDrive.
  4. Upload your document: Upload the "IT Service Desktop Knowledge Base" Word document (approx. 20 pages) to your OneDrive first, then browse and select it from Copilot Studio.
  5. Confirm: Click Add to agent and wait for the status to change to "Ready."

Important: Disable "Use general knowledge" in Settings > Knowledge to prevent the agent from using general AI knowledge for answers.

Setting Agent Instructions

Instructions guide the agent's behavior. Go to Overview > Instructions and click Edit.

You are an internal IT service desk agent for [Company Name].
Only provide answers about the IT service desktop knowledge base.
If you are asked about topics outside the IT service desktop knowledge base, politely remind the user that you are an IT service desktop knowledge base assistant and only answer questions about them. Do not attempt to answer the question.

Creating Custom Topics

Topics guide the agent through specific scenarios. For a deep dive on building and managing these conversational paths, check out this Build AI Agents with Microsoft Copilot Studio – No Code Guide.

Topic 1: Capture the Issue

  • Name: CaptureTheIssue
  • Trigger: Agent chooses (when user describes a problem)
  • Action: Set a variable
    • Variable name: UserIssueText (Global scope)
    • Value: System.Activity.Text (captures user's last message)

Topic 2: Create IT Support Request

  • Name: CreateITSupportRequest
  • Trigger: Agent chooses (when user wants to create a ticket)
  • Actions:
    1. Ask a question: "Would you like me to create an IT support request for you?" (Yes/No options)
    2. Condition: If "Yes" -> Send message: "Your IT support request has been created. The service desk will follow up shortly."
    3. Condition: If "No" -> Send message: "All right! Let me know if you need anything else."

Integrating Actions with Tools

Connect your agent to external systems using tools. We'll use Microsoft Planner to create support tickets.

Creating the Flow

  1. Go to Tools > Add a tool > Agent flow.
  2. Input: Add an input variable named IssueDescription (Text).
  3. Action: Create a task (Planner connector)
    • Plan: IT Support Issue Tracking (created earlier)
    • Title: "IT Support Request"
    • Bucket ID: "New Issues"
    • Start Date: convertTimeZone(utcNow(), 'UTC', 'W Europe Standard Time')
    • Due Date: convertTimeZone(addDays(utcNow(), 3), 'UTC', 'W Europe Standard Time')
  4. Second Action: Update task details
    • Task ID: From created task
    • Description: IssueDescription (from input)

Adding a Prompt for Summarization

  1. Go to Tools > Add a tool > New prompt.
  2. Name: SummarizeIssue
  3. Model: GPT-5 Chat
  4. Instructions: "Summarize the user's issue in two clear sentences for an IT support ticket."
  5. Input: UserIssueText (Text)
  6. Test with sample data.

Integrating into the Topic

  1. Open the CreateITSupportRequest topic.
  2. In the "Yes" branch, after the question, add the SummarizeIssue prompt tool.
  3. Map the prompt's input to the global variable UserIssueText.
  4. Create a new variable IssueSummary (Record) to store the output.
  5. Add the CreateITSupportTicket flow tool.
  6. Map the flow's input to IssueSummary.Text.

Publishing and Deploying Your Agent

  1. Click Publish in the upper right corner.
  2. Go to Channels.
  3. Add channels: Select Teams and Microsoft 365 Copilot.
  4. Customize: Edit details, add icon, and configure availability.
  5. Share: Submit for admin approval or share directly with users.
  6. Admin approval: In the Microsoft 365 Admin Center, approve and publish the agent for all or specific users.

Testing Your Agent

  • In Copilot Studio: Use the test pane on the right.
  • In Teams: The agent will appear as a chat bot.
  • In Microsoft 365 Copilot: Users can find and add the agent from "All agents."

Your fully functional AI agent is now ready to assist users with IT issues and automate ticket creation! Once deployed, learn how to get the most out of your new agent by exploring this Master Microsoft Copilot in Teams & Outlook: Communicate Better with AI guide to enhance daily communication tasks.

Keep this summary

Save it to LunaNotes and it becomes a real note in your library — editable, searchable, and ready to turn into flashcards or a diagram. Free to start.

Save to LunaNotes

Or summarise for another video.

This summary and transcript were automatically generated using AI with the Free YouTube Transcript Summary Tool by LunaNotes.

Related summaries

Build AI Agents with Microsoft Copilot Studio – No Code Guide

Build AI Agents with Microsoft Copilot Studio – No Code Guide

Learn how to create custom AI agents using Microsoft Copilot Studio without writing any code. This step-by-step tutorial covers building a customer service bot, connecting it to company documents, automating email responses, and publishing it for your team.

How to Use Copilot Studio: Complete Beginner Tutorial for Building AI Agents

How to Use Copilot Studio: Complete Beginner Tutorial for Building AI Agents

This comprehensive tutorial walks beginners through every step of building a custom copilot agent using Microsoft Copilot Studio. Learn how to create agents from scratch, add knowledge from websites and documents, control conversations with topics, and publish your agent to demo websites—all within a free trial.

How to Build an Autonomous Agent in Copilot Studio: Step-by-Step Guide

How to Build an Autonomous Agent in Copilot Studio: Step-by-Step Guide

Learn to create a fully autonomous AI assistant in Microsoft Copilot Studio that automatically processes form submissions, assigns tasks based on data lookup, and communicates results via email and Teams. This tutorial covers triggers, tools, instructions, and agent-to-agent handoff for a complete no-code automation solution.

Creating Custom Agents with Microsoft 365 Co-Pilot: A Step-by-Step Guide

Creating Custom Agents with Microsoft 365 Co-Pilot: A Step-by-Step Guide

This video provides a comprehensive overview of the Agent Builder experience within Microsoft 365 Co-Pilot, enabling users to create personalized agents without any prior skills. It covers the process of customizing agents for specific business needs, connecting to various data sources, and refining agent functionalities.

Building AI Agents with n8n: A Comprehensive Guide

Building AI Agents with n8n: A Comprehensive Guide

Learn how to create AI agents using n8n for effective automation workflows in this detailed tutorial.

Found this summary useful?

Take it with you. One click puts it in your own LunaNotes library.

Save to LunaNotes

Start taking better notes today with LunaNotes