Can a Copilot Agent Retrieve Embedded Files from OneNote?
Question details
The user needs to know if a Copilot agent can retrieve and process Word, PowerPoint, and Excel files that are embedded within OneNote pages.
- Product
- Microsoft Copilot / OneNote
- Device & OS
- not provided
- Scenario
- Developing or configuring a Copilot agent to process complex documents and attachments embedded in OneNote.
- Observed behavior
- Needs a programmatic method or workflow to successfully extract and read embedded attachments for Copilot processing.
Ensure you have developer access to the Microsoft Graph API and the necessary application permissions (such as Notes.Read.All) configured in Microsoft Entra ID.
Use Microsoft Graph API to Extract Embedded Files
Since native Copilot retrieval might not directly parse all embedded attachments automatically, using the Microsoft Graph API allows your agent to programmatically extract and process these files.
To enable your Copilot agent to read embedded files, you will need to build a custom integration using Microsoft Graph. The Graph API provides the necessary endpoints to access OneNote content, locate the embedded files, and download them so your agent can process their contents separately.
Use the Microsoft Graph API endpoint to retrieve the specific OneNote pages containing the embedded files you want to access.
Identify the embedded Word, PowerPoint, or Excel files within the page's HTML structure or resource metadata provided by the API response.
Download the extracted files programmatically and feed them into your Copilot agent's data processing pipeline.
For specific implementation guidance, post your architecture questions in Microsoft Q&A using the 'Microsoft Copilot' and 'Microsoft Copilot for Microsoft 365 Development' tags.
Looking for a Lightweight and Free Office Alternative? Try WPS Office
If you are managing various documents like Word, PowerPoint, and Excel, and want a unified, AI-powered workspace without the complexity of Microsoft 365 development, WPS Office provides an excellent free alternative with high compatibility and built-in AI tools.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite.
- 2. Open Your Documents: Open your existing Word, Excel, or PowerPoint files directly in the unified WPS workspace.
- 3. Utilize WPS AI: Click on the WPS AI icon within your document to start analyzing, summarizing, or generating content instantly.

Frequently Asked Questions
Can Copilot natively read files embedded in OneNote without Graph API?
Currently, standard Copilot interactions may struggle to deeply parse heavily nested or embedded files in OneNote natively. Utilizing the Microsoft Graph API to extract them programmatically is the recommended workaround for custom agents.
What permissions does the Graph API need to read OneNote files?
Your application will typically require Notes.Read or Notes.Read.All permissions delegated through Microsoft Entra ID (formerly Azure AD) to successfully access and retrieve OneNote page content and its attachments.
Where can I get help building a Copilot agent for Microsoft 365?
The best place to seek technical implementation guidance is the Microsoft Q&A platform. Be sure to use the 'Microsoft Copilot for Microsoft 365 Development' tag to reach the appropriate developer community and Microsoft engineers.




