
DB Bot — Ask Your Database in Plain Language
Telegram bot in n8n that turns a plain-language question into SQL, runs it against PostgreSQL and answers in plain language. Two models: gpt-4o writes the query from a schema in its prompt, gpt-4o-mini phrases the reply. Between them a validation gate — SELECT only, blocked keywords, no semicolons, forced LIMIT.















