{"product_id":"n8n-template-notion-supabase-ai-knowledge-base","title":"n8n Template: Notion → Supabase AI Knowledge Base","description":"\u003ch3\u003eTurn your Notion knowledge into an AI-ready Supabase vector store—automatically\u003c\/h3\u003e\n\u003cp\u003eThis n8n template syncs your entire Notion database into a Supabase vector store, chunking each page into embeddings so your content is ready for semantic search by an AI assistant or chatbot. Run it on a schedule to keep everything up to date—without manual cleanup or duplicate embeddings.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eClears the Supabase knowledge base before each run\u003c\/strong\u003e so the process is safe to repeat and always reflects the latest Notion content.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetches all pages\u003c\/strong\u003e from your shared Notion database.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRetrieves the full block content\u003c\/strong\u003e of each page.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSkips empty pages\u003c\/strong\u003e to avoid wasting tokens and storage.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrepares documents for embedding\u003c\/strong\u003e by prepending each page title to its content and appending the source Notion URL.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSplits content into chunks\u003c\/strong\u003e and generates embeddings using \u003cstrong\u003eOllama\u003c\/strong\u003e with \u003cstrong\u003enomic-embed-text\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eStores embeddings in Supabase\u003c\/strong\u003e for semantic retrieval.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuild an AI knowledge base\u003c\/strong\u003e for customer support by searching across your Notion docs semantically.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEnable internal copilots\u003c\/strong\u003e for SaaS teams to query product notes, policies, and runbooks stored in Notion.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eKeep documentation synced\u003c\/strong\u003e on a schedule so AI answers reflect the newest page content.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e Notion, Supabase (pgvector), Ollama\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSupabase setup:\u003c\/strong\u003e enable pgvector, create the \u003ccode\u003edocuments\u003c\/code\u003e table and \u003ccode\u003ematch_documents\u003c\/code\u003e function\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWorkflow behavior:\u003c\/strong\u003e scheduled ingestion, safe re-runs via delete\/clear step, chunking + embeddings, semantic search storage\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/components used:\u003c\/strong\u003e if, code, notion, sticky note, http request, manual trigger\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eRequirements:\u003c\/strong\u003e a Supabase account with pgvector enabled, a Notion internal integration shared to the target database, and Ollama running locally with \u003ccode\u003enomic-embed-text\u003c\/code\u003e.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45869896499379,"sku":"N8N-18427","price":13.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/2_Awm3sT4nOsKVJ9HcdaB_xQjPBZJK.png?v=1787130768","url":"https:\/\/buyflowscripts.com\/products\/n8n-template-notion-supabase-ai-knowledge-base","provider":"N8N Commerce","version":"1.0","type":"link"}