n8n workflow template · 6 nodes · OpenAI
AI Agent to chat with Supabase PostgreSQL DB is a free n8n workflow template that starts when a chat message is received and works with OpenAI and Postgres. It has 6 nodes, 3 of them AI nodes (Chat Trigger, OpenAI Chat Model and AI Agent). The notes inside the workflow say: “Accessing and analyzing database data often requires SQL expertise or dedicated reports, which can be time-consuming. This workflow empowers users to interact with a database conversationally through an AI-powered agent.” To run it, you add your own credentials for OpenAI API and Postgres.
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
Made by Mark Shcherbakov from community 5minAI
Accessing and analyzing database data often requires SQL expertise or dedicated reports, which can be time-consuming. This workflow empowers users to interact with a database conversationally through an AI-powered agent. It dynamically generates SQL queries based on user requests, streamlining data retrieval and analysis.
This workflow integrates OpenAI with a Supabase database, enabling users to interact with their data via an AI agent. The agent can
Finetune the prompt of assistant
The text below comes from the sticky notes inside the workflow. We removed links, code samples and anything that looks like a key or token.
AI agent with tools
Replace password and username for Supabase
The 6 nodes in file order (sticky notes excluded). Branches and connections determine execution order in n8n:
Configure your own credentials after importing. Create each credential in n8n, then select it in the node.
Do you need somewhere to run it? Read our guide to self-hosted n8n.
We can adapt this workflow to your apps, data and process, then deploy and support it.
Contact Us