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.net/signup.php) extracts the database schema for each table and adds the table name converts the schema into a binary JSON format saves the schema ./chinookmysql.json file locally Now you can use chat to "talk" to your data! 🎉
Integrations Used (6)
Prerequisites
Required Credentials (2)
Complexity
Advanced features used. Requires n8n experience.
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": "P307QnrxpA1ddsM5",
"meta": {
"instanceId": "fb924c73af8f703905bc09c9ee8076f48c17b596ed05b18c0ff86915ef8a7c4a",
"templateCredsSetupCompleted": true
},
"name": "Generate SQL queries from schema only - AI-powered",
"tags": [],
"nodes": [
{
"id": "b7c3ca47-11b3-4378-81fa-68b2f56b295e",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1460,
440
],
"parameters": {
"model": "gpt-4o",
"options": {
...Related Workflows
SQL agent with memory
Run this part only once This section: downloads the example zip file from https://www.sqlitetutorial.net/sqlite-sample-...
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...
🔥📈🤖 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 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...
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...