On this pageBefore you start

Obsidian Second Brain From AI Chats and YouTube Transcripts

Xtrusio9 min read

Short answer

A single script can turn your exported chats and downloaded video captions into Markdown notes. The first step is to save both as plain files. The notes then go into an Obsidian vault, which is only a folder of Markdown files on your computer.

A woman writing notes in a notebook at a table with a laptop and a stack of books beside the headline Turn old chats into notes
Photo: George Milton / Pexels. Cover design by Xtrusio.

If you would rather not set anything up, download the starter kit as a .zip file. It holds a ready vault, the note templates and the Python builder script, and it needs no email.

Treat the kit as a starter. It was tried only on made-up sample files that we wrote for the demo, never on real exports.

Before you start

Install Obsidian and a recent version of Python, and keep your exported chat files in one folder. Python runs the builder script, and Obsidian opens the notes it writes. If you also want video captions, install yt-dlp, a free command-line tool that downloads subtitle files.

Get the free Obsidian second brain starter kit

Unzip the file and open the folder named vault as a vault in Obsidian. A vault is just a folder, so nothing needs installing or importing.

Chats, videos and your own topic notes each have a folder of their own, so raw material never mixes with your thinking.

Each template starts a new note with the right properties already filled in, so you only type the content.

The base file turns the properties of your notes into tables, so you can see which sources are still raw.

The script turns each chat and each video in your files into a note of its own.

After you open the vault, follow these four steps.

  1. Export your chats and get your captions, as the next sections explain.
  2. Replace the sample files in the sources folder with your own, each in its matching subfolder, so the script sees only your data.
  3. Run python build_vault.py --rebuild in the kit folder the first time, so the SAMPLE notes are removed. The script prints how many notes it wrote, and your notes appear under Notes in Obsidian.
  4. Open build-report.txt to see which files the script cannot read.

Export your AI chats from ChatGPT, Claude and Gemini

The table puts the export routes for each app side by side, with the limit that matters for each.

App

Where to click

What you get and what is left out

Link or wait limit

Who cannot export

ChatGPT

On the web: Settings, Data controls, Export data, then confirm the export

A ZIP with an index.html viewer and your conversations in JSON.

The download link expires 24 hours after you receive it. An export can take up to 7 days.

Business, Enterprise and Healthcare workspaces

Claude

On the web app or Claude Desktop, open Settings, then Privacy. The iOS and Android apps cannot run an export.

Your chats, but not the original files you uploaded.

The link expires 24 hours after it is created, and it may work only once.

Team and Enterprise members, until an organization owner turns member exports on

Gemini

Google Takeout, then My Activity, then Gemini Apps. Set the My Activity format to JSON, because the kit script reads only .json files.

An archive as .zip or .tgz, with your Gemini chats inside.

The link in the email is active for 7 days.

None listed

An export cannot restore chats that were already deleted. When the files arrive, copy the JSON file with your conversations into the matching folder under sources. The script reads every .json file in that folder, and the sample files in the kit are named conversations.json and MyActivity.json.

Get YouTube transcripts with Show transcript or yt-dlp

If you need one video, open its description and click Show transcript. YouTube gives a transcript for any video that has captions, so you can paste it into a note yourself.

For many videos, let yt-dlp download only the subtitle files. The command below fetches the captions of one video and leaves the video itself alone.

yt-dlp --write-subs --write-auto-subs --skip-download --sub-langs en --convert-subs srt "VIDEO_ADDRESS"

To fetch several videos, put more addresses after the same flags. Then move the downloaded files into the sources/youtube folder.

yt-dlp --write-subs --write-auto-subs --skip-download --sub-langs en --convert-subs srt "ADDRESS_1" "ADDRESS_2" "ADDRESS_3"

Here is what each flag does.

  • --write-subs writes the subtitle file the uploader made.
  • --write-auto-subs writes the automatically generated captions.
  • --skip-download keeps yt-dlp from downloading the video.
  • --sub-langs takes a language list or a pattern, here just en.
  • --convert-subs converts the subtitles to another format, here srt.

Some videos have no captions, so there is no transcript to fetch. List every video address in sources/youtube/videos.txt, and the script will name the ones without a subtitle file instead of failing. The script finds each video by the ID in square brackets in the file name. Add the ID to the name if a file does not have one.

Which importer covers which chat app

Several Obsidian plugins import chats, but they cover different apps, so the table below shows who handles what. A dash means the plugin page does not mention that app. Obsidian's official Importer is not in the table, because it converts notes from other note apps, not chat exports.

Tool

ChatGPT

Claude

Gemini

YouTube

Nexus AI Chat Importer

Yes

Yes

Not on its list

-

Chat Splitter

Yes

Yes

-

-

Curtis AI Chat Porter

Archived

Archived

Archived, no longer available

-

YTranscript

-

-

-

Yes

The kit script

Yes

Yes

Yes

Yes

Nexus turns chat exports into Markdown notes organized by provider and date, and importing a newer export adds only the new messages. It supports ChatGPT, Claude, Mistral Vibe, Perplexity and Grok, and Gemini is not on that list. The one plugin that read Gemini exports is archived and unavailable. So for Gemini chats you need a script such as the one in the kit.

Chat Splitter is for a single long ChatGPT or Claude chat, which it cuts into topic notes. YTranscript puts a video transcript into a note with clickable timestamps.

How the builder script turns your files into a vault

Source files

  • Chat exports and subtitle files stay in a sources folder outside the vault

The script reads each file

Builder script

  • Writes one note per chat or video into the Notes folder

Notes are written into the vault

Vault notes

  • Obsidian automatically refreshes your vault to keep up with external changes

Chat exports and subtitle files stay in a sources folder outside the vault, so deleting notes never touches them. The script reads each file and writes one note per chat or video into the Notes folder. Obsidian automatically refreshes your vault to keep up with external changes, so the new notes appear in the app.

The kit is laid out on disk like this.

xtrusio-obsidian-second-brain-starter-kit/
  build_vault.py
  sources/             your raw files
    chatgpt/  claude/  gemini/  youtube/
  vault/               open this folder in Obsidian
    .obsidian/
    Notes/Chats/       written by the script
    Notes/Videos/      written by the script
    Notes/Topics/      written by you
    Templates/
    Bases/sources.base

Never place one vault inside another, because links may not update correctly.

Some characters and settings break Obsidian links without any warning, so the builder avoids them. Links may break when a name contains # | ^ : %% or double square brackets. That is why the script replaces those characters with spaces in every file name.

Link paths start at the vault root and use forward slashes, even on Windows. A Markdown-style link needs each space written as %20, so a note called "gemini plan" is linked as [plan](Notes/Chats/gemini%20plan.md). A wikilink is the note name inside double square brackets, and it works the same as a Markdown link. If you rename a file, Obsidian can update the internal links for you.

Two rules apply to properties. Nested properties are not supported, so the script writes only flat properties and simple lists. A property name keeps one type across the vault, so created should always hold a date and tags should always hold a list.

Templates, properties and the base file

Templates is a core plugin that inserts predefined text into the note you have open. The kit has three templates: an AI chat note, a video transcript note and a topic note. They use only the title and a date written as {{date:YYYY-MM-DD}}, where the letters are Moment.js format tokens. The AI chat template looks like this.

---
type: ai-chat
title: "{{title}}"
created: {{date:YYYY-MM-DD}}
status: raw
source:
tags:
  - ai-chat
---

## Summary

## Ideas worth keeping

Properties hold structured data such as text, links, dates, checkboxes and numbers. To start a property block, type three dashes at the very beginning of a file. The script writes this block into every note. Each file name starts with a date in the YYYY-MM-DD form, which Obsidian daily notes also use by default.

The base file turns those properties into views. Bases is a core plugin that gives database-like views of your notes. A base is saved as a .base file that must be valid YAML. Your data stays in Markdown files and properties.

Each week, open the base view called Raw sources to read, which lists notes with status raw. Pick a few, copy their one useful idea into a topic note in your own words, then set the source note status to read. One idea per note keeps topic notes small and easy to link.

Rebuild the vault from your source files

To start again, run python build_vault.py --rebuild. With the sample files in the kit, it prints these lines, and the same notes appear again in the Notes folder.

written: 6
skipped (already in the vault): 0
removed by --rebuild: 6

Could not read (check these against your own export):

Videos with no subtitle file (no captions, or not fetched yet):
  https://www.youtube.com/watch?v=CCCCCCCCCCC

The command deletes only the notes the script wrote, which it marks with the property generated_by: build_vault.py, so your topic notes stay. Anything you changed inside those chat and video notes, including a status set to read, goes back to how the script first wrote it.

Start with a handful of exports, build, open the notes and fix anything odd before you add the rest. To add a newer export, copy it into the same sources folder and run python build_vault.py again. A normal run skips notes that already exist, so only new notes are written.

If you keep the vault in Git, add .obsidian/workspace.json and .obsidian/workspaces.json to .gitignore, because they update whenever you open a new file. Keep the sources folder out of the repository too, because it holds your raw exports.

If you run several AI agents, our guide to setting up an AI agent team shows how to split the work.

Privacy: what a chat export can hold

A chat export can hold personal data. OpenAI says downloaded data can include sensitive account information, so treat every export and the vault built from it as private. Do not put the zip, the sources folder or the vault in a public repository or a shared drive.

Exporting from Gemini does not delete your activity from Google servers, so the copy there stays until you delete it. The builder script runs on your computer, and YTranscript contacts only YouTube.

Sources

  1. How Obsidian stores data, Obsidian Help
  2. Internal links, Obsidian Help
  3. Properties, Obsidian Help
  4. Templates, Obsidian Help
  5. Daily notes, Obsidian Help
  6. Introduction to Bases, Obsidian Help
  7. Bases syntax, Obsidian Help
  8. How do I export my ChatGPT history and data?, OpenAI Help Center
  9. How can I export my Claude data?, Claude Help Center
  10. Download your Gemini Apps data, Gemini Apps Help
  11. My Activity schema reference, Google for Developers
  12. Use YouTube transcripts, YouTube Help
  13. yt-dlp README, yt-dlp on GitHub
  14. Obsidian Importer, Obsidian on GitHub
  15. Nexus AI Chat Importer, Obsidian community plugins
  16. Chat Splitter, Obsidian community plugins
  17. Curtis AI Chat Porter, Obsidian community plugins
  18. YTranscript, Obsidian community plugins

Xtrusio

AI visibility research

Xtrusio is the Perception Engine for B2B brands.

Free check

See how AI engines answer about you

Get your free AI visibility check

Talk to us about the managed plan (free trial)