anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
An n8n workflow that watches a Notion database for new pages. It reads each page, cuts the text into chunks, turns the chunks into vectors with an OpenAI embedding model and stores them in a Supabase table.
Notion pages stored in Supabase with OpenAI embeddings is an n8n workflow in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
A page is added in Notion
It starts when a new page appears in your Notion database, checked every minute. It brings:
The page’s text stored in your Supabase table as vectors, with the page id, title and creation time as metadata
What you need before you start.
Page source
Watches a database for new pages and reads their blocks.
NeedsA Notion integration token and a database shared with it
Embedding model
Turns each chunk of text into a vector.
NeedsAn OpenAI API key
Vector store
Stores the chunks and their vectors in a table.
NeedsA Supabase project and a table with a vector column of 1536 dimensions
Checked by Mindket on 13 Nov 2026
This n8n workflow turns each new page in a Notion database into rows of searchable vectors. Every minute it looks for a page added to the database you choose. It reads the page’s blocks, skips images and videos and joins the text into one piece. A token splitter cuts the text into chunks of 256 tokens with a small overlap. An OpenAI embedding model turns each chunk into a vector. Supabase stores the chunks in a table, with the page id, the title and the creation time as metadata. Eight nodes run it, beside one sticky note.
People who want to search or chat over their Notion pages and already keep their data in Supabase. Skip it if you do not use a Supabase project. It only handles new pages, so later edits never reach the table. It fills the table and does not read from it.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Product teams | Index specs and decisions so an assistant can answer from them | A team files each decision as a page and later asks a bot why it was made. |
| Support | Help desks | Keep answers in Notion and search them by meaning | An agent looks up how a past case was solved. |
| Consulting | Small firms | Build a searchable library of client notes | A consultant files one page for each call and searches by topic. |
| Education | Course teams | Make lesson pages easy to find from a question | A tutor looks up the page that explains a topic. |
You need to know n8n’s settings: import a file, add three credentials and prepare a table in Supabase.
Any n8n that can reach Notion, OpenAI and your Supabase project will run it.
Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Setup is three credentials, a database id and a table.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| Notion | An integration token, as a Notion credential in n8n, and a database that is shared with that integration |
| OpenAI | An API key, added in n8n as an OpenAI credential |
| Supabase | A project, its host and its secret key as a Supabase credential, and a table named documents with a vector column of 1536 dimensions |
workflow.json.Page Added in Notion and Get Page Blocks. In Page Added in Notion, replace <YOUR_NOTION_DATABASE_ID> with the id of your database, the 32 characters in its link.documents with a vector column of 1536 dimensions. Follow Supabase’s guide to vector columns. Mindket did not paste SQL for it.Store in Supabase. If your table has another name, change it there.OpenAI Embeddings.Leave the workflow published and add pages to the database. Each new page is split, embedded and stored within a few minutes. Search the table from another workflow or tool.
| To change | Where |
|---|---|
| The database | Page Added in Notion |
| Which blocks are skipped | The conditions in Filter Non-Text Content |
| The chunk size and the overlap | Token Splitter |
| The metadata stored with each chunk | Load Page and Add Metadata |
| The embedding model | OpenAI Embeddings, and the vector column of the table |
| The table | Store in Supabase |
You add a page called Onboarding guide with three paragraphs to the database.
pageId: 0a1b2c3d4e5f60718293a4b5c6d7e8f9, createdTime: 2026-11-12T09:30:00.000Z, pageTitle: Onboarding guide
Each stored chunk of that page carries those three values as metadata, so a search result can point back to the page.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. This one copies your Notion pages into a special table that finds text by meaning. Test it with a short page first.
For experts. The text reaches the document loader as one field called concatenated_content.
| Node | What it does | What to know |
|---|---|---|
Page Added in Notion | Polls the database for new pages | Simplify is off, so it returns the raw page with all its properties |
Get Page Blocks | Reads the blocks of the page | Only the blocks directly on the page, not nested ones |
Filter Non-Text Content | Drops image and video blocks | Everything else stays |
Join Blocks Into One Text | Joins the text of the blocks with a line break | One item for each page |
Load Page and Add Metadata | Wraps the text as a document | The title comes from the page’s title property, whatever its name |
OpenAI Embeddings | Makes the vectors | text-embedding-3-small, which gives 1536 numbers |
Store in Supabase | Inserts the chunks | Each run adds new rows and never removes old ones |
This workflow only fills the table. Reading from it is a separate job.
text-embedding-3-small itself, where the older version of the node picked an older model. The loader read a node name with an apostrophe inside an expression, which broke it, so it now reads the joined text directly. The title is read from whichever property holds it, and the database is a placeholderAn n8n workflow that watches a Notion database for new pages. It reads each page, joins the text, cuts it into chunks and
turns the chunks into vectors with an OpenAI embedding model. Supabase stores the chunks in a table, with the page id, the
title and the creation time as metadata.
workflow.json: the workflow as n8n exports it, nine nodes. One is a sticky note. It holds no credential.README.md: these notes.text-embedding-3-small itself. The older version of the node picked an older model when none<YOUR_NOTION_DATABASE_ID>.Name. It is now read from whichever property holds the title, so it worksdocuments with a vector column of 1536 dimensions.workflow.json.Page Added in Notion and Get Page Blocks. In Page Added in Notion, replace<YOUR_NOTION_DATABASE_ID> with the id of your database, the 32 characters in its link.Store in Supabase. If your table has anotherOpenAI Embeddings.Page Added in Notion finds a new page. Simplify is off, so the item holds the raw page with its properties.Get Page Blocks reads the blocks that sit directly on the page.Filter Non-Text Content drops blocks of the type image or video.Join Blocks Into One Text joins the text of the remaining blocks, one block to a line, into the fieldconcatenated_content.Load Page and Add Metadata wraps that text as a document with the page id, the creation time and the page title.Token Splitter cuts it into chunks of 256 tokens with an overlap of 30.OpenAI Embeddings turns each chunk into a vector, and Store in Supabase inserts the chunks into your table.Page Added in Notion.Filter Non-Text Content.Token Splitter.Load Page and Add Metadata.OpenAI Embeddings. Change the vector column of the table with it.Store in Supabase.NOTICE.md 659 B README.md 4 KB workflow.json 7 KB
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.