Turn plain English questions into live database answers. Teams can ask for stats, trends, and lists without writing SQL. It fits internal reporting, ad hoc checks, and quick data lookups.
A chat message starts the flow. An AI agent uses an OpenAI chat model and three Postgres tools. It can list schemas and tables, get a table’s columns and keys, and run the final SQL. A short chat history keeps the last few messages so the agent remembers context. Results return to the same chat, so users see both the query and the answer.
Setup needs an OpenAI API key and a PostgreSQL connection. Use a read only database user to keep data safe. Expect faster reporting and fewer requests to analysts. Good for operations teams, sales leaders, and support managers who need quick numbers. Follow the steps to set credentials, pick the model, set the context window, test sample questions, and then make the chat public for your team.