Ask your data a question and get answers from your database in plain English. The system turns simple chat messages into safe SQL for PostgreSQL, runs the query, and returns both the results and a clear explanation. It suits teams that need fast checks without writing SQL.
There are two parts. A manual path scans your database, lists all tables and columns, then saves a compact schema file for later use. The chat path loads that schema, combines it with the user message and session id, and sends it to a local language model through an AI Agent. A parser pulls the SELECT query from the model output, adds a missing semicolon if needed, and only runs the query when it passes the check. The system executes the SQL on PostgreSQL, formats a readable table, and merges it with the AI explanation. It accepts messages from a chat webhook, a manual test, or as a sub workflow input. If no valid query is found, it returns a friendly empty result instead of failing.
Set up a PostgreSQL connection and a running Ollama server with a small model. Use a read only database user to keep data safe. Expect a big time drop for common questions, like moving from a 30 minute request to a 2 minute chat. Good for quick KPI checks, ad hoc counts, operations dashboards, and record lookups across teams.