AI Agent to chat with Supabase PostgreSQL DB

Replace password and username for Supabase

Workflow Structure (6 nodes)
100%
Langchain.chat Trigger
When chat message received
Langchain.agent
AI Agent
Langchain.lm Chat Open Ai
OpenAI Chat Model
Postgres Tool
Run SQL Query
Postgres Tool
DB Schema
Postgres Tool
Get table definition
Node Types:
trigger
default
action
Requires credentials

Prerequisites

Required Credentials (2)

OpenAI

Used by: OpenAI Chat Model

Docs

Postgres

Used by: DB Schema, Get table definition +1 more

Docs

Complexity

Moderate

Some experience helpful. Multiple integrations or logic.

Setup time: ~25 min
Score: 22/100

When to Use This Workflow

AI-Powered Content Creation

Automate content generation, summarization, or analysis using AI capabilities.

Save hours of manual work while maintaining quality and consistency.

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "nodes": [
    {
      "id": "0a4e65b7-39be-44eb-8c66-913ebfe8a87a",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1140,
        840
      ],
      "parameters": {
        "color": 3,
        "width": 215,
        "height": 80,
        "content": "**Replace password and username for Supabase**"
      },
      "typeVersion": 1
    },
    {
      "id": "2cea21fc-f3fe-47b7-a7b6-12acb0bc03ac",
...

Workflow Details

Nodes
11
Trigger
Event
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

Chat with GitHub OpenAPI Specification using RAG (Pinecone and OpenAI)

Indexing content in the vector database This part of the workflow is responsible for extracting content, generating embe...

Http-request
Vectorstorepinecone
Documentdefaultdataloader
Textsplitterrecursivecharactertextsplitter
17 nodesEvent
Curated

Build a Tax Code Assistant with Qdrant, Mistral.ai and OpenAI

Step 1. Download the Tax Code PDF [Read more about handling Zip Files](https://docs.n8n.io/integrations/builtin/core-nod...

Embeddingsmistralcloud
Documentdefaultdataloader
Textsplitterrecursivecharactertextsplitter
Http-request
38 nodesEvent
Curated

Building RAG Chatbot for Movie Recommendations with Qdrant and Open AI

Tool, calling Qdrant's recommendation API based on user's request, transformed by AI agent

Github
Embeddingsopenai
Documentdefaultdataloader
Textsplittertokensplitter
27 nodesEvent
Curated

Extract insights & analyse YouTube comments via AI Agent chat

... or watch set up video [13 min] [![Youtube Thumbnail](https://cflobdhpqwnoisuctsoc.supabase.co/storage/v1/object/publ...

Lmchatopenai
Toolworkflow
Memorypostgreschat
Agent
29 nodesEvent
Curated

AI Agent To Chat With Files In Supabase Storage

Replace Storage name, database ID and credentials.

Http-request
Documentdefaultdataloader
Textsplitterrecursivecharactertextsplitter
Embeddingsopenai
33 nodesEvent
Curated

AI Agent : Google calendar assistant using OpenAI

Chat trigger - When a message is received This node is the entry point of the workflow. It triggers the workflow wheneve...

Chat
Lmchatopenai
Memorybufferwindow
Googlecalendartool
13 nodesEvent
Curated