See llms.txt for all machine-readable content.

OpenAI and Supabase integration

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

How to connect OpenAI 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.

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

Company knowledge base agent (RAG)

Overview Turn your docs into an AI-powered internal or public-facing assistant. This chatbot workflow uses RAG (Retrieval-Augmented Generation) with Supabase vector search to answer employee or customer questions based on your company documents—automatically updated via Google Drive. Whether it’s deployed in Telegram or embedded on your website, this agent supports voice and text input, transcribes voice messages, pulls relevant context from your internal files, and responds with a helpful, AI-generated answer. Two additional workflows listen for file changes in a shared Google Drive folder, convert them into embeddings using OpenAI, and sync them with your Supabase vector DB—so your knowledge base is always up to date. Who’s it for Startups building an internal ops or HR assistant SaaS companies deploying help bots on their websites Customer support teams reducing repetitive questions Knowledge-driven teams needing internal AI assistants How it works Triggered via Telegram bot (or easily swapped for website chatbot or “on chat message”) If user sends a voice message, it’s transcribed to text using OpenAI Whisper Input is passed to a RAG agent that: Searches a Supabase vector store for relevant docs Pulls context from matching chunks using OpenAI embeddings Responds with an LLM-powered answer The response is sent back as a Telegram message Two separate workflows: New File Workflow: Listens for file uploads in Google Drive, extracts and splits text, then sends to Supabase with embeddings Update File Workflow: Detects file edits, deletes old rows, and updates embeddings for the revised file Example use case > You upload your internal policy docs and client FAQs into a Google Drive folder. > > Employees or customers can now ask: > - “What’s the refund policy for annual plans?” > - “How do I request a day off?” > - “What tools are approved for use by the engineering team?” > > The chatbot instantly pulls up the right section and responds with a smart, confident answer. How to set up Connect a Telegram bot or use n8n’s webchat / chatbot widget Hook up OpenAI for transcription, embeddings, and completion Set up a Supabase project and connect it as a vector store Upload your internal docs to Google Drive Deploy the “Add File” and “Update File” automations to manage embedding sync Customize the chatbot’s tone and personality with prompt tweaks Requirements Telegram bot (or n8n Chat widget) Google Drive integration Supabase with pgvector or similar enabled OpenAI API key (Whisper, Embeddings, ChatGPT) Two folders: one for raw documents and one for tracking updates How to customize Swap Supabase for Pinecone, Weaviate, or Qdrant Replace Telegram with web chat, Slack, Intercom, or Discord Add logic to handle fallback answers or escalate to human Embed the chat widget on your site for public customer use Add filters (e.g. department, date, author) to narrow down context

Build your own OpenAI and Supabase integration

Create custom OpenAI 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.

OpenAI supported actions

Supabase supported actions

OpenAI and Supabase integration details

OpenAI

OpenAI

OpenAI, the creator of ChatGPT, offers a range of powerful models including GPT-3, DALL·E, and Whisper. Leverage these models to build AI-powered workflows.

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 OpenAI integrations

Need help setting up your OpenAI and Supabase integration?

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

  • Artem

    How to define AI-powered Extra Workflow Inputs in AI tools?

    Artem

    Describe the question I need to pass to the tool some data from the AI Agent. Like, “task name” and “task tags” to create a task via Custom Workflow Tool. So I don’t know what to refer to in the Extra Inputs. Because th…

    Open topic
  • sérgio eduardo floresta filho

    The prompt is not being executed

    sérgio eduardo floresta filho

    Hello! My goal is to use Google Forms to collect information from my clients and then use n8n to automate the processing of this information. My workflow involves: Collecting data through Google Forms. Using n8n to re…

    Open topic
  • Heisenbug

    How to handle multi-message prompts in OpenAI Chat node?

    Heisenbug

    Describe the problem/error/question I want to send multiple messages to the OpenAI Chat node (LangChain → LLM Prompt Template) in a single execution, simulating a conversation. The first message is fixed, and the followi…

    Open topic
  • Julien

    OpenAI node - How to use the new Endpoint?

    Julien

    Is it possible to choose the Responses API or OpenAI ? It has been updated a few months ago by OpenAI, but the node still seems to be using the old Completions API. [https://platform.openai.com/docs/guides/migrate-to-re…

    Open topic
  • Andrew adawdad

    OpenAI not receicving JSON data from previous node

    Andrew adawdad

    Describe the problem/error/question Im currently using the openAI node to send a text message to the system. I am sending the previous nodes JSON data, but the openai response says that im only sending {{ $json }} instea…

    Open topic

Looking to integrate Slack and VirusTotal in your company?

Trusted by teams building smarter workflows

Why

Why use n8n to integrate OpenAI 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