See llms.txt for all machine-readable content.

Notion and Supabase integration

Save yourself the work of writing custom integrations for Notion and Supabase and use n8n instead. Build adaptable and scalable Productivity, workflows that work with your technology stack. All within a building experience you will love.

How to connect Notion and Supabase

Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Notion and Supabase integration: Create a new workflow and add the first step

Upsert huge documents in a vector store with Supabase and Notion

Purpose This workflow adds the capability to build a RAG on living data. In this case Notion is used as a Knowledge Base. Whenever a page is updated, the embeddings get upserted in a Supabase Vector Store. It can also be fairly easily adapted to PGVector, Pinecone, or Qdrant by using a custom HTTP request for the latter two. Demo IMAGE ALT TEXT HERE How it works A trigger checks every minute for changes in the Notion Database. The manual polling approach improves accuracy and prevents changes from being lost between cached polling intervals. Afterwards every updated page is processed sequentially The Vector Database is searched using the Notion Page ID stored in the metadata of each embedding. If old entries exist, they are deleted. All blocks of the Notion Database Page are retrieved and combined into a single string The content is embedded and split into chunks if necessary. Metadata, including the Notion Page ID, is added during storage for future reference. A simple Question and Answer Chain enables users to ask questions about the embedded content through the integrated chat function Prerequisites To setup a new Vector Store in Supabase, follow this guide Prepare a simple Database in Notion with each Database Page containing at least a title and some content in the blocks section. You can of course also connect this to an existing Database of your choice. Setup Select your credentials in the nodes which require those If you are on an n8n cloud plan, switch to the native Notion Trigger by activating it and deactivating the Schedule Trigger along with its subsequent Notion Node Choose your Notion Database in the first Node related to Notion Adjust the chunk size and overlap in the Token Splitter to your preference Activate the workflow How to use Populate your Notion Database with useful information and use the chat mode of this workflow to ask questions about it. Updates to a Notion Page should quickly reflect in future conversations.

Build your own Notion and Supabase integration

Create custom Notion and Supabase workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Notion supported actions

Supabase supported actions

Notion and Supabase integration details

Notion

Notion

Notion is an all-in-one workspace for you and your team. It helps team members create tasks, wikis, and databases all at one place.

Supabase

Supabase

Supabase is an open-source Firebase alternative that provides all the backend features you need to build a product. It provides database storage, along with an easy to use authentication service.

FAQ about Notion integrations

Need help setting up your Notion and Supabase integration?

Discover our latest community's recommendations and join the discussions about Notion and Supabase integration.

  • Justin Cheu

    Notion Node Bug: The relation id "fffbfe90567a-8132-b56d-c3acc1e8eb71" is not a valid uuid with optional dashes

    Justin Cheu

    The relation id “fffbfe90567a-8132-b56d-c3acc1e8eb71” is not a valid uuid with optional dashes. { "errorMessage": "The relation id \"fffbfe90567a-8132-b56d-c3acc1e8eb71\" is not a valid uuid with optional dashes.", …

    Open topic
  • Cris A. Works

    Problem activating workflow. NodeAPIError

    Cris A. Works

    Describe the issue: Whenever I run this command: docker run -it --rm --name n8n -p 5678:5678 -v C:\Users\billy\.n8n:/home/node/.n8n docker.n8n.io/n8nio/n8n Yields in a looping error. It didn’t used to happen before. W…

    Open topic
  • Oliver Cordingley

    Notion append block formatting, using loop, still no luck

    Oliver Cordingley

    Hey, I’m using open AI to write written reports which have a set structure using H2 H3 and bullet points. The output should be delivered inside of a notion database page as an appended block. My output from open AI is ra…

    Open topic
  • Martin

    Any way to embed the interactive flow diagrams into notion?

    Martin

    Is there any way to replicate the way we share templates here on the forum within notion pages? (eg Creating an API endpoint | n8n workflow template) We use notion for documentation purposes and I’d love to be able to u…

    Open topic
  • Liam Skaff

    Notion Relations ID Error

    Liam Skaff

    Hello. Recently I’ve been getting this error in my Notion Node when trying to insert an ID in the relations tab. I contacted Notion support and they told me that the problem is from n8n. This is the error I’m receiving…

    Open topic

Looking to integrate Slack and VirusTotal in your company?

Trusted by teams building smarter workflows.

Why

Why use n8n to integrate Notion with Supabase

Handle branching, merging and iteration easily. Pause your workflow to wait for external events.

Re-run single steps to test changes in no time. And pin your data to avoid generating trigger events every time you execute.

Your data is displayed alongside your settings, making edge cases easy to track down.

Use 1000+ workflow templates available from our core team and our community.

Copy and paste, easily import and export workflows.

Simple enough to 
understand + sophisticated 
enough to ship