Get Started
Screenshot of n8n workflow
FREE TEMPLATE
Index Notion to Supabase Vector Search
11
Views
0
Downloads
9
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
IT
Automation Orchestrator
n8n
Integrations
Supabase
OpenAI
Notion
Trigger Type
On app event
Approx setup time ≈ 45 min
Need help setting up this template?
Ask in our free Futurise community
About
Community
Courses
Events
Members
Templates

How to Index Notion to Supabase Vector Search?

Leon Petrou
FREE TEMPLATE
Index Notion to Supabase Vector Search
11
Views
0
Downloads
9
Nodes
Download Template
Free
Preview Template
Utility Rating
7 / 10
Business Function
IT
Automation Orchestrator
n8n
Integrations
Supabase
OpenAI
Notion
Trigger Type
On app event
Approximate setup time ≈ 45 minutes
Need help setting up this template?
Ask in our free Futurise community

Description

New pages in your Notion database become AI ready records in Supabase. The flow cleans, splits, and embeds the text so your team can power fast search or a chat bot over your knowledge. It fits knowledge bases, support guides, handbooks, and meeting notes.

When a page is added in Notion, the run starts. It fetches all blocks from the page, removes images and videos, and concatenates the remaining text into one body. The content gets metadata like page id and created time, then it is split into 256 token chunks with a 30 token overlap for better recall. OpenAI creates embeddings for each chunk, and the workflow inserts both text, vectors, and metadata into your Supabase table that has a vector column. This design keeps storage lean and makes search results more accurate.

Connect Notion, OpenAI, and Supabase, and point the trigger to the Notion database you use for source content. Prepare a Supabase table with a vector column, then map the table name in the node. Teams usually cut manual copy work to near zero and keep indexing current within minutes. Use it for policy search, engineering docs, product updates, or FAQ libraries. No coding is needed once connections are set.

Copy link

Tools Required

Supabase
Sign up
Free: $0 / mo — unlimited API requests; 500 MB database; 5 GB bandwidth; 1 GB storage; 50,000 MAUs.
OpenAI
Sign up
Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens
Notion
Sign up
Free plan: $0 per member / mo (Public API included)
n8n
Sign up
$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

What this workflow does?

  • Listens for new pages in a selected Notion database and starts the run automatically.
  • Retrieves all page blocks and keeps only text content for clean inputs.
  • Concatenates the blocks into one body to prepare for chunking and embeddings.
  • Adds metadata such as page id and created time to every document chunk.
  • Splits text into 256 token chunks with a 30 token overlap to boost recall.
  • Generates vector embeddings using OpenAI for each chunk.
  • Writes text, vectors, and metadata into a Supabase table with a vector column.
  • Configurable chunk size and overlap to match your content style.

What are the benefits?

  • Reduce manual work from 60 minutes to 2 minutes per page
  • Automate over 90 percent of indexing steps from Notion to Supabase
  • Improve data consistency by eliminating copy and paste errors
  • Handle 10 times more pages with chunking and batching
  • Connect Notion and Supabase seamlessly for AI search

How to set this up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Notion, OpenAI and Supabase. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, open the Notion nodes and create a new Notion credential. Follow the on screen instructions to connect your Notion workspace.
  4. In Notion, share the source database with the integration you created so the workflow can read new pages.
  5. Open the Notion Page Added Trigger node and select your Notion credential. Choose the database to watch and keep the polling set to every minute.
  6. Check the Notion Retrieve Page Content node. The block id expression that uses the page URL is already set. Leave it as is.
  7. Review the Filter Non Text Content node. Confirm that image and video types are excluded so only text is processed.
  8. Create an OpenAI credential in n8n. Click the Embeddings node, choose Create new credential, and paste your OpenAI API key from the OpenAI account API page.
  9. Prepare Supabase: create a table with columns for text content, metadata, and a vector column sized for your chosen OpenAI embedding model. Enable the vector extension if needed in your project.
  10. In the Supabase Vector Store node, create a new Supabase credential with your project URL and key. Set the table name and map any column settings the node requires.
  11. Run a test: add a new page to the connected Notion database. Wait a minute, then open Executions in n8n to confirm a successful run. Check your Supabase table for new rows with vectors.
  12. Troubleshoot issues: if no run appears, confirm the Notion database is shared with the integration and the correct database is selected. If rows are missing vectors, verify the OpenAI key and table vector column type. Adjust chunk size or overlap if your content is very short or very long.

Need help or want to customize this?

Similar Templates

n8n
IT
Generate Notion Chatbots for Knowledge Search
Turn any Notion database URL into a ready chat assistant workflow. Paste a link and get back validated JSON you can import into n8n. Great for teams that need fast knowledge search without building from scratch. Here is how it runs. A chat message starts the process and collects the Notion URL. The Notion node reads the database schema and returns a clean, simplified version to save tokens. That schema and a base template go into an AI Agent that uses Anthropic to build a new workflow JSON. A structured parser and an auto fix step force valid JSON. A switch checks for common mistakes like placeholder values or [object Object] in fields. If errors appear, the run adds a feedback prompt and regenerates the output. Success or error details are sent back to the chat so the user sees the result right away. Setup is simple if you have access to the Notion database and an Anthropic API key. Expect shorter build time, fewer mistakes, and a repeatable way to create chat assistants for new databases. Useful for team wikis, internal knowledge hubs, and help desks that want quick search across Notion pages.
14 views
view
n8n
IT
Automate Notion to SIGNL4 Incident Alerts
Turn Notion incident entries into on call alerts and keep both tools in sync. Teams that track issues in Notion can notify responders in SIGNL4 fast, then close alerts by updating simple checkboxes. A Notion trigger watches for new pages and sends an alert to SIGNL4 with the page ID as the external reference and optional location data. A scheduled scan also runs on an interval to find new records that are not marked as read, sends alerts, and then marks them as read. Another scheduled path looks for open records marked as Up to resolve the matching SIGNL4 alert and update the Notion page. A webhook accepts status callbacks and writes the status message into the Notion Description using a small function to map fields. Set up a Notion database with Name, Read checkbox, Up checkbox, and a Description rich text field. Connect Notion and SIGNL4 credentials in n8n, then point your alert source to the webhook if you want status updates written back. Expect faster response times, fewer missed alerts, and cleaner records. Useful for IT on call, plant floor machines, and service desk triage.
15 views
view
n8n
IT
Sync Notion Workflow Documentation
Keep your n8n workflows tracked in Notion without manual updates. Every 15 minutes, the system scans for tagged workflows and records their status in a Notion database. Great for teams that run many automations and want a single source of truth. A schedule trigger runs every 15 minutes. It calls the n8n API to get all workflows with the tag sync-to-notion. A Set step prepares key fields like name, URL, active state, created and updated dates, and a unique env id. An HTTP Request queries a Notion database for a matching env id. A Map step organizes the data, and an If check decides whether to add a new page or update an existing one. Notion nodes then create or update the database page, so records stay clean and current without duplicates. To put this in place, you need n8n API access and a Notion integration with a database that has matching fields. Add the tag to any workflow you want tracked. Expect faster reporting, fewer mistakes, and a clear view of automation health. Useful for internal documentation, audits, onboarding, and incident reviews.
11 views
view
See More Templates

These templates were sourced from publicly available materials across the web, including n8n’s official website, YouTube and public GitHub repositories. We have consolidated and categorized them for easy search and filtering, and supplemented them with links to integrations, step-by-step setup instructions, and personalized support in the Futurise community. Content in this library is provided for education, evaluation and internal use. Users are responsible for checking and complying with the license terms with the author of the templates before commercial use or redistribution.Where an original author was identified, attribution has been provided. Some templates did not include author information. If you know who created this template, please let us know so we can add the appropriate credit and reference link. If you are the author and would like this template removed from the library, email us at info@futurise.com and we will remove it promptly.