AI Agents

Supabase Automation

16 nodes 208 119 Automatic trigger
Download

Workflow Description

An intelligent automation template combining an OpenAI-powered agent with Supabase database, receiving user queries through a chat interface and storing interaction records in PostgreSQL for future reference and learning.

How it works

  1. 1.Receive user message through Chat Trigger interface
  2. 2.Route inquiry to AI Agent powered by OpenAI for intelligent processing
  3. 3.Query relevant data from Supabase database
  4. 4.Store conversation history and results in PostgreSQL via memory integration

Use cases

  • Build a smart customer support assistant that answers inquiries using private Supabase data
  • Create an automated support system that learns from stored interaction history

Requirements

  • Valid OpenAI API key and configured Supabase account authentication
  • Pre-configured PostgreSQL connection with tables for storing conversations and results

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Chat Trigger AI Agent Supabase OpenAI Postgres

Details

Trigger Automatic trigger
Nodes 16
Apps 5
Views 208
Downloads 119

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (16)

/

When chat message received

Chat Trigger

#1

AI Agent

Agent

#2

Check If Session Exists

Supabase

#3

If Session Does Exist

If

#4

Assign Path To Session

Supabase

#5

Define Path Values

Set

#6

OpenAI Chat Model

OpenAI

#7

Postgres Chat Memory

Memory Postgres Chat

#8

Sticky Note1

Sticky Note

#9

Sticky Note

Sticky Note

#10

Sticky Note2

Sticky Note

#11

Get Correct Prompt

Set

#12

Sticky Note6

Sticky Note

#13

Sticky Note8

Sticky Note

#14

Sticky Note5

Sticky Note

#15

Sticky Note3

Sticky Note

#16