AI Business Solutions

Embedding Copilot Agents to SharePoint Pages

Zewei Song, Ph.D.
June 3, 2025

This comprehensive guide provides detailed instructions on how to create a Copilot agent for a SharePoint document library and embed it into a SharePoint page.

By doing so, SharePoint users can conveniently access the Copilot agent, enhancing their experience with Copilot's semantic search and other AI-enabled capabilities.

It is important to note that end users with premium Copilot licenses (the $30 per month Microsoft 365 Copilot license) can utilize the agent without any additional charges. However, users without this license will be subject to a pay-as-you-go message consumption subscription. For further details, please refer to this article: Manage message capacity - Microsoft Copilot Studio |Microsoft Learn

Create a SharePoint Copilot Agent

  • Navigate to the SharePoint library which you would like to create the agent
  • Click on the "Create an agent" button on the tool bar
  • A Copilot Agent creation dialog will pop up, finish it and create the agent

Approve the agent

Once the agent is created, you need to approve it to make it official. Follow the steps below:

  • Click on the Copilot button on the top navigation bar to open the agents
  • Select the agent you just created and click on the "..." button next to its name
  • Set it as approved

Get the approved agent's URL

Now we need to get the agent's URL so we can embed it to a SharePoint page. To do this, navigate to the SharePoint site's Site contents -> Site Assess -> Copilot -> Approved.

You should see the approved agent's ".agent" file in that folder. Now click on it to open the agent and grab the full URL on your browser's URL bar.

Add the agent to a SharePoint page

The final part of this task: to add the agent to a SharePoint page to achieve better end user experience.

  • Find a SharePoint page you can edit. Please note not all SharePoint pages are allowed to be edited, you should see an "Edit" button on a page's tool bar (not the top navigation bar!) if you have permissions to modify it. Also please note you can add an agent to a page hosted on a different SharePoint site.
  • Click the "Edit" button and now you are in its edit view. Choose a place on the page you would like to add the agent to. In this case, let's add it to the space above "Quick links" section.
  • After clicking on the "+" sign on the page's edit view, choose the Embed webpart.
  • You now need to add an iFrame tag to the Embed webpart's code section. The HTML code should look like below:
<iframe src="--the full URL to you agent--" width="360" height="720"></iframe>

In my case the iFrame code is something like:

<iframe 
src="https://******.sharepoint.com/sites/CopilotDemo/SiteAssets/Forms/AllItems.aspx?		id=%2Fsites%2FCopilotDemo%2FSiteAssets%2FCopilots%2FApproved%2FCopilot%20Demo%20Documents%20agent%2Eagent&amp;viewid=708ee07e%2D3e99%2D4da2%2D942f%2D9506762c8e32&amp;parent=%2Fsites%2FCopilotDemo%2FSiteAssets%2FCopilots%2FApproved" width="360" height="720"></iframe>
  • Feel free to change the width and height value to fit your page's layout
  • Save and republish the page, now you have an embedded Copilot agent!

Hope you enjoy this article and happy piloting Copilot!

Disclaimer

The content on Invoke, LLC's blog is provided for general informational purposes only and focuses on IT-related topics, including technology trends, software, AI, cybersecurity, and industry commentary. While we strive to provide accurate, up-to-date, and high-quality information, we make no representations or warranties of any kind, express or implied, about the accuracy, reliability, completeness, or suitability of the information, tools, or resources shared on this blog. Any reliance on such content is at your own risk.

The opinions expressed in our blog posts are those of the authors and do not necessarily reflect the official views of Invoke, LLC. Our blog may include links to third-party websites, software, or services. We do not endorse or assume responsibility for the content, functionality, security, or practices of these third-party resources.

The information on this blog is not intended to replace professional IT, technical, AI, or cybersecurity advice. You should consult a qualified IT professional before implementing any solutions, configurations, or strategies discussed on this blog. Invoke, LLC and its affiliates are not liable for any loss or damage, including but not limited to data loss, system downtime, or security breaches, arising from the use of or reliance on this blog’s content.

We reserve the right to modify, update, or remove content on this blog at any time without prior notice.

Invoke combines tightly coupled security controls and digital productivity solutions.

WANT TO LEARN MORE?

Invoke’s system integration solutions maximizes your Microsoft investments through exclusive programs, expert access, cost optimization, proven methodologies, and industry expertise.

PROFESSIONAL SERVICES

Microsoft
Entra
Microsoft
Defender XDR
Microsoft
Purview
Microsoft
Intune
Maximize Your Microsoft Investments 
Optimize Costs and Efficiency
Unified Security
Operations
Let’s talk about how we can help bring you the power and digital innovation of Microsoft technologies to your business!
Thank you! We have received your information and will contact you shortly!
Oops! Something went wrong while submitting your information. Please try again in a few minutes!
© Invoke, LLC 2025