Copilot Conversation Exporter

Export Microsoft Copilot conversations to Markdown or JSON (optionally includes AI Thoughts when present)

Δημιουργός
NoahTheGinger
Ημερήσιες εγκαταστάσεις
1
Σύνολο εγκαταστάσεων
21
Βαθμολογίες
1 0 0
Έκδοση
2.0.0
Δημιουργήθηκε την
12/04/2025
Ενημερώθηκε την
27/09/2025
Μέγεθος
20 KB
Άδεια
MIT
Εφαρμόζεται σε

Copilot Conversation Exporter

A simple Tampermonkey userscript that adds an Export button to copilot.microsoft.com. This button lets you quickly export your Copilot conversation as a nicely formatted Markdown file or raw JSON data.

Copilot web chat exporter demo

Features

  • Multiple Export Formats: Export conversations as Markdown (.md) or JSON (.json) files.
  • API-Based Data Retrieval: Fetches conversation data directly from Copilot's API for complete accuracy.
  • AI Thoughts Included: Captures and includes AI reasoning content when present.
  • Clean Formatting: Properly formats messages with support for images, citations, and rich content.
  • Easy Access: The export button is fixed in the bottom-right corner of the screen.
  • Timestamped Files: Exported files include timestamps to prevent naming conflicts.

Installation

  1. Install Tampermonkey (or another userscript manager) in your browser.
  2. Create a new userscript and copy-paste the code from the repository into it.
  3. Save the script.
  4. Navigate to copilot.microsoft.com and you should see the Export button in the bottom-right corner.

Usage

  • Start a Conversation: Begin chatting with Copilot as you normally would.
  • Click the Button: Hit the Export button at the bottom-right.
  • Choose Format: Select either Markdown or JSON format from the dialog that appears.
  • Download: The script will fetch the conversation data and automatically download a file named {conversation_title}_{timestamp}.md or {conversation_title}_{timestamp}.json.

Customization

The script uses Copilot's official API endpoints to retrieve conversation data. If you need additional formatting for the Markdown output, you can modify the conversationToMarkdown() and partsToMarkdown() functions. The JSON export provides the raw conversation data for custom processing.

License

This project is released under the MIT License.