Summary Generator
Build concise daily lead summaries from read-only lead records.
Quick Triggers
- - Give me today's lead summary with trends.
- Show high-priority lead counts by location.
- Summarize broker inventory vs buyer requirements for this week.
Recommended Chain
INLINECODE0
Execute Workflow
- 1. Accept a date-range request from Supervisor.
- Validate request with
references/summary-input.schema.json. - Query lead storage using read-only access.
- Aggregate summary metrics, including:
-
new_leads_count
-
trends
-
record_type_breakdown (
inventory_listing,
buyer_requirement)
-
priority_breakdown (
P1,
P2,
P3)
-
urgency_breakdown (
high,
medium,
low)
-
top_localities (top volume areas with counts)
-
dataset_mode echoed from request or inferred from source
- 5. Validate output with
references/summary-output.schema.json. - Return only the validated summary object.
Enforce Boundaries
- - Never parse chat dumps.
- Never extract new leads from messages.
- Never write or mutate storage.
- Never suggest or execute follow-up actions.
- Never send reports directly to external systems.
Handle Errors
- 1. Return explicit query or validation failure reasons.
- Return zero-valued metrics when no leads exist in the requested range.
- Fail closed when read permissions are absent.
摘要生成器
从只读线索记录中构建简洁的每日线索摘要。
快速触发
- - 给我今天的线索摘要及趋势。
- 按地点显示高优先级线索数量。
- 汇总本周的经纪人库存与买家需求。
推荐链
sentiment-priority-scorer -> summary-generator -> action-suggester
执行工作流
- 1. 接收来自主管的日期范围请求。
- 使用references/summary-input.schema.json验证请求。
- 使用只读权限查询线索存储。
- 聚合摘要指标,包括:
- new
leadscount
- trends
- record
typebreakdown(inventory
listing、buyerrequirement)
- priority_breakdown(P1、P2、P3)
- urgency_breakdown(high、medium、low)
- top_localities(数量最高的热门区域)
- dataset_mode从请求中回显或从源推断
- 5. 使用references/summary-output.schema.json验证输出。
- 仅返回验证后的摘要对象。
执行边界
- - 绝不解析聊天记录转储。
- 绝不从消息中提取新线索。
- 绝不写入或修改存储。
- 绝不建议或执行后续操作。
- 绝不直接向外部系统发送报告。
错误处理
- 1. 返回明确的查询或验证失败原因。
- 当请求范围内不存在线索时,返回零值指标。
- 当缺少读取权限时,安全失败。