SQL agent with memory
Triggered manually or by an app event. Connects Compression, HTTP request, Read Write File. Run this part only once This section: downloads the example zip file from {{ $env.WEBHOOKURL }} 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! On every chat message: the local SQLite database is loaded
Front matter
name: SQL agent with memory
description: Triggered manually or by an app event. Connects Compression, HTTP request, Read Write File. ## Run this part only once This section: * downloads the example zip file from {{ $env.WEBHOOK_URL }} * 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! ## On every chat message: * the local SQLite database is loaded * JSON from Chat Trigger is combined with SQLite binary data ### LangChain SQL Agent can make several queries before producing the final answer. Try these examples: 1. "Plea
category: Automation
kind: Workflow
software: Compression|HTTP request|Read Write FileSQL agent with memory
Triggered manually or by an app event. Connects Compression, HTTP request, Read Write File. ## Run this part only once This section:
- downloads the example zip file from {{ $env.WEBHOOK_URL }}
- extracts the archive (it contains only a single file)
- saves the extracted
chinook.dbSQLite database locally
Now you can use chat to "talk" to your data! ## On every chat message:
- the local SQLite database is loaded
- JSON from Chat Trigger is combined with SQLite binary data ### LangChain SQL Agent can make several queries before producing the final answer.
Try these examples:
- "Plea
Steps
- Window Buffer Memory (noOp)
- OpenAI Chat Model (noOp)
- When clicking "Test workflow" (manualTrigger)
- Get chinook.zip example (httpRequest)
- Extract zip file (compression)
- Save chinook.db locally (readWriteFile)
- Load local chinook.db (readWriteFile)
- Sticky Note (stickyNote)
- Sticky Note1 (stickyNote)
- Combine chat input with the binary (set)
- Sticky Note2 (stickyNote)
- AI Agent (noOp)
- Chat Trigger (noOp)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.