Guide

Export Google Drive and Notion to markdown and sync the folder into BrainBox

BrainBox has no live Google Drive or Notion connector yet. Export your pages to a folder, sync it with the CLI, and your agent can search it over MCP. Steps for Drive and Notion.

Updated

BrainBox has no live Google Drive or Notion connector yet; both are coming soon. Until then the path is: export your pages to a folder of files, then run `sync` on that folder. Your agent reads the result over MCP. This takes a few minutes for a small space and works the same for any other tool that can export files.

`sync` reads md, txt, html, pdf and docx. It does not read CSV or JSON exports, so convert those to markdown first.

1. Export from Notion

In Notion, open the page or workspace menu and choose Export, set the format to Markdown & CSV, and include subpages. Notion downloads a zip. Unzip it into a new folder, for example `./notion-export`.

  • Notion adds an ID suffix to file and folder names. Leave it: the file path becomes the stable key of the page, so renaming files later creates new pages.
  • Database views export as CSV. Those files are skipped by `sync`; export the rows you need as pages, or convert the CSV to markdown first.
  • Exports are a snapshot. Re-export and re-run `sync` when you want fresh content.

2. Export from Google Drive

For a few documents, open each Google Doc and use File, Download, Markdown (.md). For a folder of many documents, download the folder from Drive (it arrives as a zip, with Docs converted to .docx) and unzip it. `sync` reads .docx and converts it to markdown, so you do not need to convert by hand (reading .docx and .pdf needs the optional `mammoth` and `pdf-parse` packages installed alongside the CLI; markdown needs nothing extra). Sheets and Slides are not text documents; export the parts you need to PDF or markdown.

A line at the top of each page with the source link and last-modified date is worth adding by hand or by script: it gives readers (and your agent) somewhere to check the original. It is ordinary page text for now.

3. Sync the folder

Check what a sync would do first. A dry run sends and archives nothing; it only shows the diff.

npx -y @brainbox-labs/cli@latest sync ./notion-export --dry-run

Then run it for real. Each file is stored under a stable key (the namespace plus its path), and the namespace defaults to the folder name. Subfolders are included and become nested namespaces; pass `--flat` to avoid that. Pass `--namespace` to choose your own. You need Node 24 or later and to be signed in (`login`) or have `BRAINBOX_API_KEY` set.

npx -y @brainbox-labs/cli@latest sync ./notion-export --namespace notion

Re-run the same command whenever the folder changes: new and edited files are ingested and unchanged ones are skipped. Deleting a file never archives its page silently; `sync` asks first, or reports a pending delete when there is no terminal. Pass `--prune` to archive them. To keep a stable identity when you move or rename a file, add `sourceKey: my-doc` to its frontmatter. The CLI reference has every flag.

4. Connect your agent

Point your agent at the BrainBox MCP URL (endpoints and copy-paste commands) and ask it a question your docs answer. The full walkthrough, including sign-in, is in Turn your knowledge base into something your agent can use.

Want a live connector?

We build a connector only if enough people need it. Tell us which one.

Connectors: Google Drive and Notion coming soon

BrainBox has no live Google Drive or Notion connector yet. Export to markdown meanwhile: export Drive and Notion to markdown and sync the folder. Tell us which one you need; we build a connector only if enough people ask.

  • Google Drive
  • Notion

Agents: request a connector with one unauthenticated POST. source (the connector name) and use_case are required; contact is optional. Limits: 5 requests per hour per IP, 100 per day in total.

curl -X POST https://ctx.brainbox-ai.app/api/connector-request \
  -H 'Content-Type: application/json' \
  -d '{"source":"notion","use_case":"what you would sync and why","contact":"you@company.com"}'

Email is used only to tell you about this connector. See the privacy policy.

Give your agents a brain.

Grounded answers, not guesses — from a living model of your business.

Book a Demo