Turn chat questions into clear answers from a local database. Team members ask in plain English and get results without writing SQL. Ideal for operations and analyst roles that need quick numbers and simple reports.
A one time setup downloads a sample SQLite file, unzips it, and saves it on the server. For every new chat message, the flow loads the local database, combines it with the chat JSON, and sends both to an AI SQL agent. The agent uses OpenAI gpt 4 turbo with a steady temperature and can run several SQL queries before it answers. A memory buffer keeps the last 10 messages so follow up questions make sense. This creates fast self service insights without building dashboards.
You only need an OpenAI API key and access to the n8n chat endpoint. Keep the sample file or point the load step to your own SQLite database path. Expect faster replies to ad hoc data questions, fewer requests to data specialists, and more time saved across the team. Use it for sales revenue checks, catalog lookups, or quick ops metrics when speed matters.