Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
An n8n workflow that keeps a Supabase table in step with a Notion database. Edited pages are re-read, cut into chunks and embedded again, and a chat window answers questions from the stored chunks.
Chat over a Notion knowledge base kept fresh in Supabase is an n8n workflow in the Productivity 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 edited in Notion
It starts every minute and looks in your Notion database for pages edited in the last minute. Each page brings:
A Supabase table that mirrors your edited Notion pages, and chat answers built from it
What you need before you start.
Page source
Lists edited pages and reads their blocks.
NeedsA Notion integration token and a database shared with it
Embeddings and answers
Turns chunks into vectors and writes the chat answers.
NeedsAn OpenAI API key
Vector store
Stores the chunks and finds the ones closest to a question.
NeedsA Supabase project and a table with a vector column of 1536 dimensions
Checked by Mindket on 13 Nov 2026
This n8n workflow keeps a copy of a Notion database in Supabase and lets you chat with it. Every minute it looks for pages edited in the last minute. For each one it deletes the old chunks and reads the whole page, nested blocks included. It cuts the text into chunks of 500 tokens, embeds them with OpenAI and stores them. A second part answers questions in n8n’s chat window from the closest stored chunks. Nineteen nodes run it, one of them switched off, beside three sticky notes.
Teams that keep their know-how in Notion and want to ask it questions in plain words. It suits a database that people edit all day, because edits replace the old chunks. Skip it if your pages hold text you do not want sent to OpenAI.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Support | Help desks | Ask questions of the help pages that agents keep editing | An agent asks how refunds work and gets an answer built from the refund page. |
| Operations | Office teams | Ask about internal rules and checklists | A new hire asks who approves a purchase and gets the page’s answer. |
| People teams | HR | Search policies in plain words | A manager asks how many days of leave a role gets. |
| Software | Dev teams | Ask about runbooks and decisions | An engineer asks what to do when the queue backs up. |
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 content, metadata and a vector column of 1536 dimensions |
workflow.json.Get Edited Pages and Get Page Blocks. In Get Edited Pages, replace <YOUR_NOTION_DATABASE_ID> with the id of your database, the 32 characters in its link.documents. Follow Supabase’s guide to vector columns and n8n’s notes on its Supabase vector store. Mindket did not paste SQL for it.Delete Old Chunks, Insert Page Chunks and Search Page Chunks.OpenAI Embeddings and OpenAI Chat Model.Leave the workflow published and keep editing pages as usual. Each edited page is replaced in the table within a few minutes. Ask questions in n8n’s chat window at any time.
| To change | Where |
|---|---|
| The database | Get Edited Pages |
| How often pages are checked | Check Every Minute |
| The chunk size | Token Splitter |
| The metadata stored with each chunk | Load Page and Add Metadata |
| The model that answers | OpenAI Chat Model |
| The table | Delete Old Chunks, Insert Page Chunks and Search Page Chunks |
You edit a page called Refund policy, and later you ask the chat a question about it.
Question: How many days do customers have to ask for a refund?
The chat finds the stored chunks of the Refund policy page that sit closest to the question and has the model answer from them.
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 and answers questions from it. Start with a few short pages.
For experts. The delete step uses the page id in the metadata of each chunk, so every chunk of a page must carry that id.
| Node | What it does | What to know |
|---|---|---|
Get Edited Pages | Lists pages whose last edited time equals one minute ago | An exact time match, which Mindket did not check against Notion’s timestamps |
Loop Over Items | Handles one page at a time | The loop ends when the last page is stored |
Delete Old Chunks | Removes the stored chunks of the page | Always Output Data is on, so a new page with no old chunks still goes on |
Get Page Blocks | Reads every block of the page | Nested blocks are included |
Insert Page Chunks | Stores the chunks with their vectors | The metadata holds the page id and name |
Chat Message Received | Opens the chat | Not public, so the chat runs inside n8n |
Question and Answer Chain | Answers from the closest chunks | Uses gpt-6-luna and the stored chunks only |
Pages that are deleted in Notion are not removed from the table.
gpt-4o retires on 14 January 2027, so the chat model is gpt-6-luna. The embedding step names text-embedding-3-small itself. The loader reads the joined text and no longer embeds the whole item as JSON. The Notion database is a placeholderAn n8n workflow that keeps a Supabase table in step with a Notion database. Every minute it looks for pages edited in the last
minute, deletes their old chunks, reads each page again, cuts it into chunks and embeds them with OpenAI. A chat window
answers questions from the stored chunks.
workflow.json: the workflow as n8n exports it, 22 nodes. Three are sticky notes and one, a Notion trigger, starts switchedREADME.md: these notes.gpt-4o, which retires on 14 January 2027. The chat model is now gpt-6-luna. The chain uses no tools,text-embedding-3-small itself. The older version of the node picked an older model when none<YOUR_NOTION_DATABASE_ID>.documents with content, metadata and a vector columnworkflow.json.Get Edited Pages and Get Page Blocks. In Get Edited Pages, replace<YOUR_NOTION_DATABASE_ID> with the id of your database, the 32 characters in its link.Delete Old Chunks, Insert Page Chunks andSearch Page Chunks.OpenAI Embeddings and OpenAI Chat Model.Check Every Minute starts the run, and Get Edited Pages lists the pages whose last edited time equals one minute ago.Input Reference hands the pages to Loop Over Items, which takes one page at a time.Delete Old Chunks removes the stored chunks whose metadata holds the page id. It always outputs an item, so a new pageKeep One Delete Result makes sure only one item continues.Get Page Blocks reads every block of the page, nested blocks included. Join Blocks Into One Text joins their text intoconcatenated_content.Load Page and Add Metadata wraps the text as a document with the page id and name. Token Splitter cuts it into chunksOpenAI Embeddings turns them into vectors and Insert Page Chunks stores them. The loop then takes theChat Message Received passes a question to Question and Answer Chain. Search Page Chunks andVector Store Retriever find the closest chunks, and OpenAI Chat Model answers from them.Get Edited Pages.Check Every Minute. The switched-off Notion Trigger does the same job and can replace it.Token Splitter.Load Page and Add Metadata. Keep the id, because the delete step uses it.OpenAI Chat Model.Delete Old Chunks, Insert Page Chunks and Search Page Chunks.Notion Trigger.NOTICE.md 611 B README.md 5 KB workflow.json 13 KB
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
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…
zarazhangrui · Skill
Builds HTML presentations from scratch or from a PowerPoint file and shows visual style previews to pick from, for people who want web slides with no CSS or Ja…
iptv-org · Kit
Collects publicly available live TV channels from many countries into playlists that any video player with live streaming can open. Made for viewers and for de…
uwg · Kit
Holds a set of image upscaling models gathered from the OpenModelDB community, for people who want to enlarge low-resolution pictures with AI on their own comp…