Home/Workflows/SQL Query Agent with Conversational Memory
LibraryOther★ 7.0
SQL Query Agent with Conversational Memory
An n8n workflow that enables conversational AI to query a local SQLite database using OpenAI's GPT-4-turbo model via LangChain. It fetches, extracts, and stores the Chinook sample SQLite DB, then allows interactive SQL queries with memory of previous interactions for better context.
▮▮▯Intermediate15 min11 nodes
Free
Instant access
✦ Built with
n8nOpenAIOpenAI GPT-4LangChain
✦ 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.