{"product_id":"n8n-slack-rag-workflow-supabase-gemini-openrouter","title":"n8n Slack RAG Workflow: Supabase + Gemini + OpenRouter","description":"\u003ch3\u003eAsk your product backlog PDF in Slack—automatically\u003c\/h3\u003e\n\u003cp\u003eWith this \u003cstrong\u003en8n Slack RAG Workflow: Supabase + Gemini + OpenRouter\u003c\/strong\u003e, you can upload a product backlog PDF, index it into a \u003cstrong\u003eSupabase vector store\u003c\/strong\u003e, and then query it instantly from \u003cstrong\u003eSlack\u003c\/strong\u003e using a slash command. The workflow runs Retrieval-Augmented Generation (RAG): relevant passages are retrieved from Supabase using \u003cstrong\u003eGoogle Gemini embeddings\u003c\/strong\u003e, and answers are drafted by an \u003cstrong\u003eOpenRouter chat model\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIndex a backlog PDF:\u003c\/strong\u003e Receives a form submission with a PDF upload, extracts text from the file, generates embeddings with \u003cstrong\u003eGoogle Gemini (PaLM)\u003c\/strong\u003e, and inserts the content into a Supabase vector store table.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eInitialize a knowledge base:\u003c\/strong\u003e Loads default documents and embeddings to set up the same Supabase knowledge base.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAnswer questions from Slack:\u003c\/strong\u003e Handles a Slack slash command request to the workflow webhook path \u003cstrong\u003e\/backlog-query\u003c\/strong\u003e and immediately posts an in-channel “search in progress” acknowledgment.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRun RAG with retrieval + generation:\u003c\/strong\u003e Sends the user’s question to an \u003cstrong\u003eOpenRouter\u003c\/strong\u003e-powered RAG agent, retrieves relevant backlog passages from Supabase using \u003cstrong\u003eGemini embeddings\u003c\/strong\u003e, and generates a Slack-formatted answer.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRespond in the channel:\u003c\/strong\u003e Posts the final response back to the originating channel using Slack’s \u003cstrong\u003eresponse_url\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eProduct teams want quick answers to “What’s the status of feature X?” directly in Slack, based on the backlog PDF.\u003c\/li\u003e\n  \u003cli\u003eSaaS operators can centralize backlog knowledge for faster alignment across engineering and stakeholders.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers can deploy a ready-made RAG pattern using n8n, Supabase, Gemini, OpenRouter, and Slack.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes:\u003c\/strong\u003e webhook, sticky note, form trigger, HTTP request, \u003cstrong\u003en8nn8n-nodes-langchainagent\u003c\/strong\u003e, and “extract from file”.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e \u003cstrong\u003eSupabase\u003c\/strong\u003e vector store (table: \u003cstrong\u003ebacklog_documents\u003c\/strong\u003e), \u003cstrong\u003eGoogle Gemini (PaLM)\u003c\/strong\u003e for embeddings, \u003cstrong\u003eOpenRouter\u003c\/strong\u003e for the chat model, and \u003cstrong\u003eSlack\u003c\/strong\u003e slash commands.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup highlights:\u003c\/strong\u003e Configure the form trigger (share it for PDF uploads), add Supabase + Gemini + OpenRouter credentials, create the Slack slash command POSTing to \u003cstrong\u003e\/backlog-query\u003c\/strong\u003e, and use the generated webhook URL in Slack.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45758766350515,"sku":"N8N-17762","price":45.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/cfBJjDlw0CNU6IgCf6S1O_5mdtSgKF.png?v=1785835143","url":"https:\/\/buyflowscripts.com\/products\/n8n-slack-rag-workflow-supabase-gemini-openrouter","provider":"N8N Commerce","version":"1.0","type":"link"}