AI Agent to chat with Supabase/PostgreSQL DB
n8n template #2612Summary
Use templateVideo Guide I prepared a detailed guide that showed the whole process of building a resume analyzer. Who is this for? This workflow is ideal for developers, data analysts, and business owners who want to enable conversational interactions with their database. It’s particularly useful for cases where users need to extract, analyze, or aggregate data without writing SQL queries manually. What problem does this workflow solve? 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
How to set it up
- Open template #2612 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
- Create a credential under Credentials → Add credential: OpenAI Chat Model. Then open each of those nodes and pick the credential.
- Check the model in the AI Agent node. The template may point at a model your account can't use; swap it for one you have access to.
- Click Execute workflow and step through each node's output to confirm the data looks right.
- Toggle the workflow to Active so its trigger runs on its own.
Hand off to your agent
Prompt
Help me set up the n8n workflow "AI Agent to chat with Supabase/PostgreSQL DB" (https://n8n.io/workflows/2612). It uses: AI Agent, OpenAI Chat Model. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Questions
Yes. Mark Shcherbakov published it free on n8n.io as a verified creator, and it has 17K views. It runs on n8n Cloud or a self-hosted n8n instance.
OpenAI Chat Model. The other 1 node are built into n8n.
Similar workflows
NameViews
- AI agent chat780K
- Building Your First WhatsApp Chatbot332K
- Angie, personal AI assistant with Telegram voice and text326K
- Generate AI Viral Videos with Seedance and Upload to TikTok, YouTube & Instagram215K
- AI agent that can scrape webpages212K
- ✨🤖Automate Multi-Platform Social Media Content Creation with AI205K
- Build Your First AI Data Analyst Chatbot134K
- Create a Branded AI-Powered Website Chatbot88K