Skip to content

About

View, bulk delete, and export your Microsoft 365 Copilot Chat conversations into raw JSON, readable Markdown, or ChatGPT's conversation.json format.

Topics

Resources

Stars

21 stars

Watchers

1 watching

Forks

Repository files navigation

M365 Copilot Exporter

Greasy Fork Version Greasy Fork Downloads Greasy Fork Link

View, bulk delete, and export your Microsoft 365 Copilot Chat conversations into raw JSON, readable Markdown, or ChatGPT's conversation.json format.

Install from GreasyFork here: https://greasyfork.org/en/scripts/543763-m365-copilot-exporter

Exporter design and functionality based on @Pionxzh's ChatGPT Exporter.

Copilot Exporter's modal Copilot Exporter after bulk deleting three conversations

Caution

This tool is maintained on a "until I lose access to my Microsoft 365 account after I graduate" basis. Use at your own risk!

Features

  • View, bulk export, and bulk delete your conversations in Microsoft 365 Copilot Chat (m365.cloud.microsoft) with dark mode support.
  • Choose from three export formats: Copilot JSON, Markdown (with citations!), or ChatGPT JSON (with options for each to export as single file like conversations.json or as a ZIP).
  • Convert your Copilot converstions into ChatGPT's conversations.json format for import into ChatGPT formatting tools (e.g. ChatGPT Exporter).

Limitations

  • The exporter can only show, at maximum, the latest 500 conversations. This is a limit imposed by the API endpoint used to get the list of chats. You'll need to delete some chats if you want to access anything beyond the latest 500 conversations.
  • This modal does not support HTML, PDF, or any other fancy export options. This is script is mainly for my own data hoarding purposes, so it only supports Copilot JSON, which preserves the most metadata among the format options, and two formats that I anticpate others will like: ChatGPT JSON (for conversations.json) and Markdown.

How to install

Install a userscript manager extension into your browser, such as Greasemonkey or Tampermonkey. I personally recommend Greasemonkey (and I have only used this script on it, so your mileage may vary with others)!

Greasyfork

Once you have a userscript manager, you can download this script on Greasyfork using the link below and clicking "Install this script". https://greasyfork.org/en/scripts/543763-m365-copilot-exporter

Manual

Copy or import dist/copilot-exporter.user.js into a new script in your desired userscript manager.

How to use

  1. Navigate to your M365 dashboard.
  2. Open the export menu by either:
    • Clicking on the floating export button in the bottom right.
    • Opening the Greasemonkey command menu and selecting "Open export menu".
  3. Select the conversations you want to export.
    • If the conversation(s) you want to export are further down, alter the maximum number of conversations shown and refetch.
  4. Click export once you've selected the conversations you want to export.

How to build

For those seeking to maintain this:

  1. Clone this repository: git clone https://github.com/ganyuke/copilot-exporter.
  2. Open the directory: cd copilot-exporter.
  3. Get pnpm.
  4. Run pnpm build. The newly-built userscript should be in dist/.

Someting cool!

For those wondering if it can really export ALL your conversations... here's 400+ conversations exported at once! Older UI, but the same scraping logic's still in there!

Copilot Exporter in action exporting 400+ conversations

About

View, bulk delete, and export your Microsoft 365 Copilot Chat conversations into raw JSON, readable Markdown, or ChatGPT's conversation.json format.

Topics

Resources

Stars

21 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages