Create your Copilot agent and add it to Microsoft Teams

In my last few posts, I’ve looked at creating a Copilot agent. Now the next step is to put the agent somewhere useful. In this post I’ll create a basic agent and add it to Microsoft Teams.

Create an agent

To create an agent I’m going through the following steps. For more details also see my Get started post with Copilot Studio.

Visit https://copilotstudio.microsoft.com/ then create a new agent.

Copilot Create Agent
Copilot Create Agent

Then you could either just hit create or first configure your agent.

Copilot Agent description configuration
Copilot Agent description configuration

I’m going for the Skip to configure option, so that I can give my agent a proper name.

Create Copilot Agent
Create Copilot Agent

Then after the above I will hit the Create button.

This will now create us our agent. I could now add Knowledge, and Topics, but I’m going to skip that step. Just so that I can keep this post simple and focused on the adding the app to Microsoft Teams.

My demo version of my agent in Copilot
My demo version of my agent in Copilot

Adding the agent to Teams

Now if you were to try and add the agent to teams, then you will find that the agent isn’t found (yet). The agent first will need to go through an approval process in Teams.

My App is not found
My App is not found

Turn on Teams

First I’m going to add Microsoft Teams to my Channels. Simply click on Channels, Microsoft Teams and then Turn on Teams.

Turn on Teams in my Agent
Turn on Teams in my Agent

Then after a short while, the following confirmation will come back.

App was added
App was added

Then click on the Availability options button and then in my case I’m going to share my agent with everybody within my organisation

Show to everyone in Organasation
Show to everyone in Organasation

Now, agents that are available to everybody will have to go through admin approval.

Create your Copilot agent and add it to Microsoft Teams
Create your Copilot agent and add it to Microsoft Teams 1

All we have to do as the agent developer is press the Submit for admin approval button. We will get the confirmation that the app has been submitted for approval. It is slightly confusing why the Submit for approval button is still there. But ignore that button and all seems to be working well.

Create your Copilot agent and add it to Microsoft Teams
Create your Copilot agent and add it to Microsoft Teams 2

Approving the app request as an admin

I’m now switching roles. I’m now an admin and I’m going to the Microsoft Teams Admin Center.

Pending approvals is 0 …

Pending approvals is 0
Pending approvals is 0

However if you wait a few minutes the pending approval should be there.

Pending approvals is 1
Pending approvals is 1

Using the search I can now find my agent that I developed earlier.

The app appears as blocked
The app appears as blocked

The app has been clearly marked as Blocked. To unblock the agent the Teams Administrator will have to approve the app.

Then you click on the agent link, you should find yourself on the following screen:

App details of the app with error message
App details of the app with error message

One of the challenges now is that the above doesn’t give the administrator any clue on who developed this, what its purpose is. So expect that an administrator will expect a call from you after you published the agent.

Anyway, I’m going to publish this agent, by clicking on the publish button. However the Publish button it may not work. Did you noticed the red error message in the previous screenshot? Also resubmission of the app may give errors related to App not found.

Teams app not found
Teams app not found

This is where we need to press that submission button again. The second or third time you press the Submit for admin approval will make the app registration/approval work.

Create your Copilot agent and add it to Microsoft Teams
Create your Copilot agent and add it to Microsoft Teams 3

After the admin has approved your agent, you will find that you will still get the App not found message when you submit it for approval again. Hey, aren’t we all impatient? Until you get the Conflict detected, the approval process may still be running.

Create your Copilot agent and add it to Microsoft Teams
Create your Copilot agent and add it to Microsoft Teams 4

During this approval process the administrator will even find that the app disappears from the list of available apps. Once the approval process has finished the app will be back. This often takes about 5 minutes.

Create your Copilot agent and add it to Microsoft Teams
Create your Copilot agent and add it to Microsoft Teams 5

The administrator will now also see who has permissions to the agent.

Create your Copilot agent and add it to Microsoft Teams
Create your Copilot agent and add it to Microsoft Teams 6

Adding the Copilot agent to a Team

Finally we have got to the final step. Our app is now published, however …

Create your Copilot agent and add it to Microsoft Teams
Create your Copilot agent and add it to Microsoft Teams 7

After Open agent if you click on Add

Create your Copilot agent and add it to Microsoft Teams
Create your Copilot agent and add it to Microsoft Teams 8

Then you might get the Something went wrong. This message may even appear for quite a while.

Something went wrong
Something went wrong

Then suddenly after about an hour or more the app will appear in the app store.

Create your Copilot agent and add it to Microsoft Teams
Create your Copilot agent and add it to Microsoft Teams 9

And then it will be possible to add the app to your Teams setup.

Added Successfully
Added Successfully

Once we added the app to Microsoft Teams, it can be used. Once important note, for when you name you agents. Keep the names short. Keeping the name below 30 characters is a good idea. I guess it is time for a cup of Tea now.

Agent in Teams
Agent in Teams

More about Copilot Studio

For more posts about Copilot Studio, read my Copilot Studio User Guide


Discover more from SharePains

Subscribe to get the latest posts sent to your email.

Related Posts

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.