What it does
An n8n workflow where an AI agent writes SQL queries by reading only the database schema, never the data itself. The queries run outside the agent node and the results are not sent back to it, which keeps the contents of your tables private.
Use cases
- 01Draft SQL for a report from a plain-language question
- 02Explore an unfamiliar database through its table structure
- 03Query sensitive tables without sharing rows with the model
Connects
MySQL · AI Agent · OpenAI Chat Model · Simple Memory