Turn natural language questions into SQL and view results in one place. Teams can ask for metrics in plain English, and get a clear answer plus the query used. It is ideal for operations, product, or data leads who need fast insights without waiting on analysts.
The system runs in two parts. First, a one time setup scans your MySQL database, builds a full schema map of all tables and columns, and saves it to a local JSON file. After that, every chat message uses the Chat Trigger. The flow loads the schema from the local file, sends it with the user question into an AI Agent powered by an OpenAI chat model with short memory. The agent only sees structure, not data. If the agent proposes a valid SQL statement, a regex step extracts the query. An If node checks for a query. When a query exists, it runs on MySQL, formats the rows, and merges both the AI explanation and the results for the final reply. If no SQL is needed, it responds right away.
You need a MySQL database and an OpenAI API key. Run the schema step once, then use the chat endpoint for everyday questions. Expect faster answers, fewer ad hoc report requests, and better clarity on how numbers are pulled. Great for internal analytics chat, quick sales ops checks, and safe database exploration without exposing raw data.