Chat with Postgresql database
Who is this template for? This workflow template is designed for any professionals seeking relevent data from database using natural language. How it works - Each time user ask's question using the n8n chat interface, the workflow runs. - Then the message is processed by AI Agent using relevent tools - Execute SQL Query, Get DB Schema and Tables List and Get Table Definition, if required. Agent uses these tool to form and run sql query which are necessary to answer the questions.
At a glance
Chat with Postgresql database is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects OpenAI. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- OpenAI
- Modules
- 7
- Price
- Free
- Version
- v1.0

About this workflow
Who is this template for? This workflow template is designed for any professionals seeking relevent data from database using natural language. How it works - Each time user ask's question using the n8n chat interface, the workflow runs. - Then the message is processed by AI Agent using relevent tools - Execute SQL Query, Get DB Schema and Tables List and Get Table Definition, if required. Agent uses these tool to form and run sql query which are necessary to answer the questions. - Once AI Agent has the data, it uses it to form answer and returns it to the user. Set up instructions Complete the Set up credentials step when you first open the workflow. You'll need a Postgresql Credentials, and OpenAI api key. Template was created in n8n v1.77.0
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Auto-create Instagram carousel posts from Canva with OpenAI and Blotato
Website uptime monitoring with GPT-4 analysis and Gmail notifications
Chat with PDF docs using AI (quoting sources)
Extract and save new articles to Google Sheets using OpenAI and HTML conversion
Outlook inbox tamer: GPT-4.1 powered categorization, auto replies & team alerts
Scrape business leads from Google Maps using OpenAI and Google Sheets
Generate AI-curated Reddit digests for Telegram, Discord & Slack with Gemini
Analyze GitLab CI job failures with GPT-5.3 and send reports to Slack
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you