T-order's Text2SQL Agent, Tspoon Implementation Case | Amazon Web Services

TL;DR AI
2 min readKey summary
T-order built “Teaspoon,” a Slack-based Text2SQL agent on AWS to let employees query internal data in natural language.
The system combines natural language understanding, RAG search, two-step human-in-the-loop approval, Athena SQL execution and validation, and multi-turn session management.
It helps business users get answers without going through DevOps, reducing bottlenecks in the data self-service workflow.
Approval gates and validation steps add safety to SQL execution, lowering the risk of incorrect or unsafe queries.
