SQL agent with memory
Run this part only once This section: downloads the example zip file from https://www.sqlitetutorial.net/sqlite-sample-database/ extracts the archive (it contains only a single file) saves the extracted chinook.db SQLite database locally Now you can use chat to "talk" to your data!
Integrations Used (7)
Prerequisites
Required Credentials (1)
OpenAI
Used by: OpenAI Chat Model
Complexity
Some experience helpful. Multiple integrations or logic.
When to Use This Workflow
Real-time Response
React instantly when events happen - new orders, form submissions, or API calls.
Zero delay between trigger and action for time-sensitive workflows.
Time Savings
Replace repetitive manual tasks with reliable automation.
Reclaim hours every week for higher-value work.
Error Reduction
Eliminate human error from routine processes with consistent automation.
Improve accuracy and reliability across your workflows.
{
"id": "AQJ6QnF2yVdCWMnx",
"meta": {
"instanceId": "fb924c73af8f703905bc09c9ee8076f48c17b596ed05b18c0ff86915ef8a7c4a",
"templateCredsSetupCompleted": true
},
"name": "SQL agent with memory",
"tags": [],
"nodes": [
{
"id": "3544950e-4d8e-46ca-8f56-61c152a5cae3",
"name": "Window Buffer Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
1220,
500
],
"parameters": {
"contextWindowLength": 10
},
...Related Workflows
Generate SQL queries from schema only - AI-powered
Run this part only once This section: loads a list of all tables from the database hosted on [db4free](https://db4free....
Build a Tax Code Assistant with Qdrant, Mistral.ai and OpenAI
Step 1. Download the Tax Code PDF [Read more about handling Zip Files](https://docs.n8n.io/integrations/builtin/core-nod...
🔥📈🤖 AI Agent for n8n Creators Leaderboard - Find Popular Workflows
AI Agent for n8n Creator Leaderboard Stats https://github.com/teds-tech-talks/n8n-community-leaderboard
Chat with Postgresql Database
👨🎤 Setup 1. Add your postgresql and OpenAI credentials. 2. Click Chat button and start asking questions to your datab...
MongoDB Agent
AI Agent powered by OpenAI and MongoDB This flow is designed to work as an AI autonomous agent that can get chat message...
Chat with GitHub OpenAPI Specification using RAG (Pinecone and OpenAI)
Indexing content in the vector database This part of the workflow is responsible for extracting content, generating embe...