Create Autonomous Agents in Copilot Studio

Yesterday, one of my colleagues informed me that their IT team was receiving too many support emails every day. They had to check each email, identify the issue, determine its urgency, set a deadline, update a tracker, and then send a reply to the person who had asked for help.

It was taking a lot of time and effort, and they wanted a better way to handle it.

Therefore, I suggested to create Autonomous Agents in Copilot Studio to simplify the process.

With just a few steps, we created a smart system that:

  • Reads new emails automatically
  • Understands the issue and sets a priority
  • Calculates when the issue should be fixed
  • Saves everything in a SharePoint list
  • Sends a reply to the user with all the ticket details

Everything happens in the background; no need for anyone to do it manually.

In this tutorial, I will explain what Autonomous Agents are and how to create one in Microsoft Copilot Studio.

Autonomous Agents in Copilot Studio

Autonomous Agents in Microsoft Copilot Studio are intelligent, AI-powered workflows that can run in the background and perform tasks independently, requiring no user interaction.

Think of them as your digital assistants that can:

  • Take action based on triggers (like a new email or form submission),
  • Understand and process information using AI,
  • Make decisions (like setting priority levels),
  • And perform follow-up actions (like saving data or sending emails).

Just like humans need a problem, tools, and instructions to get a job done, Autonomous Agents in Copilot Studio also need a few things to work smoothly.

Here are the four primary building blocks of every autonomous agent:

  1. Trigger – What starts the agent (You tell your agent when it should start working.)
  2. Knowledge – What the agent needs to know (Just like we need information to do our jobs, agents need knowledge or context.)
  3. Actions – What the agent can do (Send an Email, Create an item)
  4. Instructions – What the agent should do (This is where you give the agent its job description. Tell it exactly what it needs to do.)

Create the Agent in Copilot Studio

Before we jump into how to create the agent flow, let’s first look at the structure needed for our use case. For this scenario, I’ve created a SharePoint list named IT Support Tickets with the following columns:

Column NameType
TitleSingle line of text
SubjectSingle line of text
DescriptionMultiple lines of text
PriorityChoice (Low/Medium/High)
StatusChoice (Open/In Progress/Resolved/Closed)
Expected Resolution DateDate and Time
IDDefault Column
Autonomous Agents in Copilot Studio

Steps to Create Your First Autonomous Agent:

  1. Go to Copilot Studio. Click Create -> + New agent.
create autonomous agents in copilot studio
  1. Please assign a name (IT Help Desk Agent) and provide a brief description explaining its purpose (such as tracking and responding to support emails). Then click on Create.
Build Your First Autonomous Agent with Copilot Studio
  1. Then, you can see that our agent has been successfully created here.
How to create an autonomous agent with Copilot Studio

Add Actions to the Agent

Now that our agent is set up in Copilot Studio and we have a SharePoint list named IT Support Tickets, let’s add functionality to our agent. We want it to perform two key actions:

  • Save ticket details to a SharePoint list
  • Send an email to the user

Add Create Item Action in Agent Flow

To save the ticket details in SharePoint, follow the steps below to add a Create item action:

  1. In the above agent, select the “Tools” tab, then click the + Add a tool button.
Autonomous Agents Copilot Studio
  1. Then, a pop-up will open where you search for “Create item”. Select “Create item” from the SharePoint connector, as shown in the screenshot below.
Copilot Studio Autonomous Agents
  1. Once selected, you’ll see a new screen prompting you to choose how you want to proceed. At the bottom right, you’ll find three buttons:
    • Add to agent – This adds the action to your agent without any configuration.
    • Add and configure – This option adds the action and opens the configuration screen where you can input the required details, such as:
      • Site Address
      • List Name
      • Mappings for each SharePoint column
    • Cancel – Closes the pop-up without taking any action.
  2. In my case, click Add to agent. After that, we will add the site address and other required things.
Build Autonomous Agent in Copilot Studio
  1. Then, select the “Create item” action, which will open the screen below.
Design Autonomous Agent Copilot Studio
  1. Next, expand the ‘Additional details’ section, then select ‘Agent author authentication’ under Authentication.
Copilot Studio Agent Development
  1. In the Inputs section, add the Site Address where you create the SharePoint list. Then, in the List Name, change ‘Dynamically fill with AI’ to ‘Custom value’ under ‘Fill using’, and select your SharePoint list, in my case, ‘IT Support Tickets’.
No-Code Agents Copilot Studio
  1. Then, click the + Add input to the column where you want to add the item. In my case, the fields are Title, Subject, Expected Resolution Date, Priority, and Description.
AI Agent Builder Copilot Studio

Then we need to customize the above input parameters. Here I will customize one; you need to customize the rest of the field.

  1. Click Customize in the Priority input field. Then, under the Description, provide the following things:
Importance of the ticket. Categorize tickets based on their urgency. Categorize in High, Medium and Low Priority

These steps are designed to guide the agent flow to perform this action based on your text; it will work.

Copilot Studio Create AI Agent
  1. In the same way, add a description for Title, Subject, Expected Resolution Date, and Description.
TitleSummary for the Subject.
SubjectEmail Subject
Expected Resolution DateAdd 24 hours to the current time if it is a High Priority, 48 hours for Medium, and 72 hours for Low.
DescriptionSubject for the overall ticket.

You can change the description according to your requirements.

  1. After that, save the action by clicking the “Save” button on the top right side.
Smart Agent Copilot Studio

Now, our first action, ‘Create Item’, is added to the agent.

Copilot Studio Intelligent Agents

Add a Send an Email Action in Agent Flow

Next, let’s configure the second action, sending an email to the user once the ticket is submitted.

  1. Go back to the Tools tab in your agent. Click + Add a tool again. Search for Send an email’ (V2) or ‘Send an email‘ under the Outlook or Mail connector (depending on what’s available). Click Add and configure to open the setup screen.
Create Virtual Agents Copilot Studio
  1. Next, expand the ‘Additional details’ section, then select ‘Agent author authentication’ under Authentication.
Agent Templates in Copilot Studio
  1. Here, I do not want to add any inputs. Instead, I would like to modify the email body description.
Autonomous agents in AI

Once the email body is ready, click the Save button at the top right.

Add a Trigger to the Agent

To activate the agent and initiate the conversation flow, you need to define a trigger, which is something the user might say to start the ticket creation process.

Follow the steps below to add a trigger:

  1. Now, go to the Overview tab, scroll down, and look for the section at the top labeled ‘Triggers’.
How autonomous agents work
  1. Click + Add trigger, then a pop-up will appear with a search bar. In the search box, type: When a new email arrives (V3). Select the trigger “When a new email arrives (V3)” from the Outlook connector. Click Next.
Use cases of autonomous agents
  1. Next, the screen will add the connection, then click the ‘Next’ button to create the trigger.
AI-powered autonomous agents
  1. The next screen will ask if you want to add any parameters. (In my case, I only want the agent to trigger when an incoming email’s subject contains the word “Support.” This helps avoid triggering the agent for unrelated emails.) In the Subject box, type: Support. Click the Create trigger button at the bottom right.
Build your own autonomous agent
  1. Then you can see that our trigger has been added to the agent flow.
Applications of autonomous agents in business

If you still want to make any changes to the trigger after it’s been added, you can do so easily using Power Automate.

In the Triggers section of your agent in Copilot Studio, locate the trigger you just created. Click the three dots (…) next to the trigger name. Select Edit in Power Automate from the dropdown.

This will redirect you to the Power Automate portal, where the trigger flow is created. Here, you can make any modifications, such as changing the subject filter, adding conditions, or connecting additional actions.

Once you’re done editing, click Save draft in the top-right corner. Then click Publish to apply your changes and push them live.

Autonomous agents in customer service

Add General Instructions to the Agent

To make your Copilot agent behave more naturally and follow your desired workflow, it’s helpful to provide general instructions. These instructions guide the agent.

  1. Go to the Overview tab. Then click on Edit under Details, next in the General instructions section. Add instructions.
You need to completely automate the auto reply process for the any support emails you're receiving. AS soon as any incoming emails arrive determine the urgency of the emails and categorize the email to High, Medium or Low Priority. After that you need to call below actions without any human interactions.
-Create item in the SharePoint list
-Send an email
  1. Next, click the Save button.
How to test autonomous agents

Now our agent is ready to work, so click the Publish button on the top right side.

Autonomous agents in Microsoft ecosystem

Test the Autonomous Agents

Now that your agent is built and published, it’s time to test it in action to make sure everything works as expected.

Send a test email to the mailbox that the trigger is monitoring. Ensure the subject line contains the word “Support”.

Autonomous agents with API integration

After some time, go to the SharePoint list, and you will see that the item has been created with all the necessary details.

Test the Autonomous Agents

Then the user who sends will receive an email like below:

Create Autonomous Agents in Copilot Studio

Also, you can check the agent run activity.

Autonomous agents in Microsoft Copilot Studio

With just a few easy steps, you’ve now built an Autonomous Agent in Microsoft Copilot Studio that can completely automate your IT support email process.

No more manually checking emails or setting priorities, your agent does all of that intelligently and automatically.

If you encounter any difficulties or have questions, please comment below. I’m happy to help.

Also, you may like some tutorials:

Power Apps functions free pdf

30 Power Apps Functions

This free guide walks you through the 30 most-used Power Apps functions with real business examples, exact syntax, and results you can see.

Download User registration canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App