
Advanced
用大白话问一个问题,拿到一张图和它背后的查询。愿意把查询亮出来,正是让人信它的地方。
把 schema 给智能体,把它限制在只读视图上,让它写查询、在服务器端跑,再把结果渲染成一张图表,SQL 就显示在下面。
零件
- 只读视图
- 带 schema 上下文的查询生成
- 服务器端执行
- 图表渲染和保存的问题
怎么赚钱
垂直分析好卖:挑一个细分,把它的指标建模建好,收得比通用仪表盘工具更贵。
搭建耗时
两个晚上
Build a data analyst agent over a read-only schema. Safety: expose only read-only views, reject anything that is not a select, cap rows returned, and run every query server side with a timeout. Behaviour: the agent writes the query, explains in one sentence what it measures, then picks the chart type that fits the shape of the result. UI: a question box with example questions, a chart, a collapsible SQL block, and a saved questions list that can be rerun with one click. Handle empty results and query errors explicitly with a plain language message and a suggested fix.
#analytics#sql#charts