ποΈ Ask your database questions in plain English
Stack β Trigger: Slack / chat Β· Models: your choice Β· Tools: read-only query API over Postgres Β· Mode: single agent + constraints Β· Output: answer + the query it ran
Who itβs for β teams where every βhow many X last week?β turns into a ticket for the data team. What it does β takes a plain-English question, writes and runs a read-only query against your database, and answers in the channel β showing the SQL it ran so anyone can check it.
Build it
- Expose a read-only query tool. Put a read-replica behind a small query endpoint (or a stored-proc API) and Connect API to it β never point it at a writable primary.
- Give the agent the schema. Attach a schema-description tool or include table/column docs in its instructions so it writes correct queries.
- Create the agent with: translate the question to SQL, run it read-only, and answer with the number and the query used.
- Constrain it hard β SELECT only; never UPDATE/DELETE/DROP; cap rows and time range β the guardrail that makes this safe to open up.
- Show the work β instruct it to always return the query alongside the answer, so results are auditable.
- Publish on Slack so anyone can ask in
#data.
Make it yours
- Add a chart tool so it returns a plot for time-series questions.
- Restrict tables per team with separate tools and RBAC.
- Log every query to the audit trail for review.
Uses β Data Β· Slack Β· Constraints