This n8n workflow enables interactive chat with a PostgreSQL database using OpenAI's GPT-4o-mini model and LangChain agent. It automatically generates and executes SQL queries based on user prompts, fetching schema and table info dynamically for accurate DB responses.
▮▮▯Intermediate15 min11 nodes
$9.00
Instant access
SSL secureInstant access24h refund
Card payment via Dodo
Wise · Bank transfer
Wise emailvirginaiagency@gmail.com
Amount$9.00 USD
Referencevai-lib-ai-pow
VISA
AMEX
PayPal
Pay
GPay
✦ Built with
PostgreSQLn8nOpenAIOpenAI GPT-4o MiniLangChain
✦ Workflow at a glance
✦ What you get
In thebox.
workflow.json
Ready-to-import n8n workflow file
Setup guide
Step-by-step deployment instructions
Node documentation
What each node does + how to tune it
Sample data
Test inputs to verify it works end-to-end
Community support
Best-effort via Telegram / GitHub
Lifetime updates
New versions delivered free, forever
✦ Setup
Live inthree steps.
01
Import
Open n8n → Workflows → New from JSON. Drop in the workflow.json you received.
02
Connect
Add credentials for each tool used (OpenAI key, Slack token, etc.). All shown in the setup guide.
03
Test & activate
Run on sample data to verify the flow. Toggle the workflow to active and you're shipping.