Extract Chatgpt Transcript logo

Extract Chatgpt Transcript

Community
ShawhinT
extract-chatgpt-transcript

Extract the full text of a shared ChatGPT conversation and save it as a clean Markdown transcript. Use whenever Shaw shares a chatgpt.com/share/... link (or asks to "scrape this convo", "save this ChatGPT chat", "grab the transcript", "pull the full conversation", "copy this whole chat to a file"). Also fires when a naive copy/paste or reader-mode grab of a ChatGPT share only returns part of the thread and Shaw says "that's not the full thing." Handles the virtualization gotcha that hides most turns from a single read. Do NOT use for Claude share links, generic web articles (use a normal fetch), or live (non-shared) ChatGPT sessions that require login.

Overview

PublisherShawhinT
Repositorynon-coding-skills
Skill nameextract-chatgpt-transcript
Stars
39
Forks
6
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ShawhinT on GitHub. Read the source before you install it.

Installation

Install the Extract Chatgpt Transcript AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ShawhinT/non-coding-skills/tree/main/extract-chatgpt-transcript
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ShawhinT/non-coding-skills.git /tmp/non-coding-skills
mkdir -p .claude/skills
cp -r /tmp/non-coding-skills/extract-chatgpt-transcript .claude/skills/extract-chatgpt-transcript
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Extract Chatgpt Transcript in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Extract Chatgpt Transcript on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Extract Chatgpt Transcript is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Extract ChatGPT Transcript

Turn a shared ChatGPT conversation into a complete, faithful Markdown transcript.

The core problem: virtualization

ChatGPT share pages (chatgpt.com/share/...) are client-rendered AND virtualized: only the handful of conversation turns near the viewport are mounted in the DOM at any moment (often ~7 of 80+). Everything else is an empty wrapper. This is why the easy methods fail:

  • A plain web_fetch returns only the page shell (no conversation — it's JS-rendered).
  • get_page_text / reader-mode returns only the currently-rendered slice, usually the bottom of the thread.
  • Manual select-all + copy misses off-screen turns for the same reason.

So the reliable method is: scroll the whole thread top-to-bottom and capture each turn as it mounts, keyed by turn ID so nothing is deduped or lost.

Procedure

Use the Claude in Chrome tools (load via ToolSearch if deferred: mcp__claude-in-chrome__navigate, mcp__claude-in-chrome__javascript_tool, mcp__claude-in-chrome__tabs_context_mcp, mcp__claude-in-chrome__computer).

1. Navigate

Open the share URL in a new MCP tab. Note the returned tabId.

2. Probe the structure

Confirm the turn selector and find the scroll container:

js
(() => {
  const turns = document.querySelectorAll('[data-testid^="conversation-turn"]');
  const scrollers = [...document.querySelectorAll('*')]
    .filter(e => e.scrollHeight > e.clientHeight + 400 && e.clientHeight > 200)
    .map(e => ({tag:e.tagName, sh:e.scrollHeight, ch:e.clientHeight}));
  return JSON.stringify({turnCount: turns.length,
    withText: [...turns].filter(t=>(t.innerText||'').trim()).length, scrollers});
})()

Turns are [data-testid^="conversation-turn"] with ids like conversation-turn-1. Roles live on a child [data-message-author-role]. The scroll container is the element with the largest scrollHeight (usually a DIV wrapping <main>).

3. Install a persistent collector

Set up a Map keyed by turn testid so identical short turns ("Mmm.", "Right.") are NOT collapsed, and scroll to the top:

js
(() => {
  window.__map = new Map();
  window.__scroller = [...document.querySelectorAll('*')]
    .filter(e => e.scrollHeight > e.clientHeight + 400 && e.clientHeight > 200)
    .sort((a,b)=>b.scrollHeight-a.scrollHeight)[0];
  window.__collect = () => {
    document.querySelectorAll('[data-testid^="conversation-turn"]').forEach(t => {
      const key = t.getAttribute('data-testid');
      const roleEl = t.querySelector('[data-message-author-role]');
      const role = roleEl ? roleEl.getAttribute('data-message-author-role') : '';
      const text = (t.innerText||'').trim();
      if (text) window.__map.set(key, {role, text});
    });
  };
  window.__scroller.scrollTop = 0;
  window.__collect();
  return JSON.stringify({sh: window.__scroller.scrollHeight, size: window.__map.size});
})()

4. Sweep top-to-bottom

Run this loop, then wait and re-check window.__map.size. The Chrome javascript_tool does NOT await an async IIFE's return (it returns {} immediately), but the loop keeps running in the background — so fire it, wait ~8s, then read the size. Re-run the sweep if not yet at the bottom.

js
(async () => {
  const s = window.__scroller;
  for (let i=0;i<40;i++){
    window.__collect();
    if (s.scrollTop + s.clientHeight >= s.scrollHeight - 5) break;
    s.scrollTop += 550;
    await new Promise(r=>setTimeout(r,350));
  }
  window.__collect();
})()

Check progress: JSON.stringify({size: window.__map.size, top: window.__scroller.scrollTop, sh: window.__scroller.scrollHeight, atBottom: (window.__scroller.scrollTop+window.__scroller.clientHeight >= window.__scroller.scrollHeight-5)})

Keep sweeping until size equals the turnCount from step 2 and atBottom is true.

5. Serialize

Order turns by the numeric suffix of their testid and build the output string:

js
(() => {
  const entries = [...window.__map.entries()].sort((a,b)=>
    parseInt((a[0].match(/(\d+)$/)||[])[1]||0) - parseInt((b[0].match(/(\d+)$/)||[])[1]||0));
  window.__out = entries.map(([k,v]) => {
    const role = v.role==='user' ? 'USER' : v.role==='assistant' ? 'ASSISTANT' : (v.role?v.role.toUpperCase():'MSG');
    return `**${role}:** ${v.text}`;
  }).join('\n\n');
  return JSON.stringify({turns: entries.length, chars: window.__out.length});
})()

6. Pull the text out in slices

javascript_tool caps each response at ~1,000 chars, so read window.__out in ~900-char windows, batched several per browser_batch call:

js
window.__out.slice(0,900)     // then 900..1800, 1800..2700, ...

Concatenate the slices, then write to a .md file in outputs and present it.

Output format

Save as Markdown (<slug>-transcript.md). Header with the title (from document.title) and the source link. Then turn-by-turn with **USER:** / **ASSISTANT:** labels. Preserve voice-transcribed answers verbatim, including disfluencies — do not clean them up unless asked. Group into logical sections (e.g. "Voice Interview", "Extraction") only if the conversation clearly has them.

Gotchas checklist

  • Don't trust a single get_page_text — always compare its turn count to the [data-testid^="conversation-turn"] count. If it's short, virtualization bit you.
  • Keying by testid (not by text) is essential; podcast-style threads repeat short backchannels that a text-based Set would merge.
  • The async sweep returns {} — that's normal. Poll window.__map.size after a wait.
  • If the account requires login or it's a live (non-share) chat, this won't work; ask Shaw to use the share link.

Frequently asked questions

What does the Extract Chatgpt Transcript AI skill do?

Extract the full text of a shared ChatGPT conversation and save it as a clean Markdown transcript. Use whenever Shaw shares a chatgpt.com/share/... link (or asks to "scrape this convo", "save this ChatGPT chat", "grab the transcript", "pull the full conversation", "copy this whole chat to a file"). Also fires when a naive copy/paste or reader-mode grab of a ChatGPT share only returns part of the thread and Shaw says "that's not the full thing." Handles the virtualization gotcha that hides most turns from a single read. Do NOT use for Claude share links, generic web articles (use a normal fe...

Why use Extract Chatgpt Transcript on TypingMind?

Because you install it once and use it with any model. Extract Chatgpt Transcript is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Extract Chatgpt Transcript in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ShawhinT/non-coding-skills/tree/main/extract-chatgpt-transcript. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Extract Chatgpt Transcript?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Extract Chatgpt Transcript?

As many as you like. As long as a model supports skills, you can use Extract Chatgpt Transcript with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Extract Chatgpt Transcript AI skill free?

It is published on GitHub by ShawhinT. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇