Files
tw/customer_db/schema.json
ZuoWei a6c42d505a feat: 完整功能部署 v1.0
新增功能:
- 天网协作系统 (HTTP API 端口 6060)
- 三种工作流 (查找图片/处理图片/转人工派单)
- 图片任务数据库 (支持客户后续增加需求)
- 图绘派单系统集成 (API: 8005)
- 文字检测与加价 (60-80 元高价值订单)
- 风险评估与接单判断
- 作图失败自动转人工

新增文档:
- 项目功能汇总.md
- 三种工作流功能说明.md
- 文字加价功能说明.md
- 风险评估功能说明.md
- 图片任务数据库功能说明.md
- 图绘派单系统集成说明.md
- 作图失败转接人工说明.md
- DEPLOYMENT.md
- TIANWANG_INTEGRATION.md

核心修改:
- core/pydantic_ai_agent.py
- core/workflow.py
- core/websocket_client.py
- image/image_analyzer.py
- services/service_tuhui_dispatch.py
- db/image_tasks_db.py

版本:v1.0
日期:2026-02-28
2026-02-28 11:20:40 +08:00

92 lines
4.1 KiB
JSON
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"_注释": "本文件是 customers.json 的字段说明,不参与程序运行,仅供人工查阅。",
"字段说明": {
"customer_id": "客户ID平台用户名/ID",
"name": "真实姓名",
"nickname": "昵称",
"email": "邮箱",
"phone": "手机号",
"wechat": "微信号",
"address": "收货地址",
"platform": "来源平台(淘宝/拼多多/微信等)",
"platform_id": "平台内部ID",
"budget": "预算描述(客户自述)",
"budget_range_min": "预算下限(元)",
"budget_range_max": "预算上限(元)",
"requirements": "历史需求列表",
"preference_services": "偏好服务类型列表",
"total_orders": "累计下单次数",
"total_spent": "累计消费金额(元)",
"avg_order_value": "平均客单价(元)",
"purchase_frequency": "购买频次描述",
"last_order_date": "最后下单日期",
"first_order_date": "首次下单日期",
"order_ids": "订单号列表",
"pending_orders": "待处理订单数",
"completed_orders": "已完成订单数",
"refund_count": "退款次数",
"personality": "性格标签列表(如:急躁/爽快/纠结)",
"communication_prefer": "沟通偏好",
"response_speed": "回复速度描述",
"patience_level": "耐心程度",
"customer_level": "客户等级A/B/C/D",
"vip": "是否VIP",
"vip_level": "VIP等级0=无)",
"vip_custom_price": "VIP专属报价0=无专属价)",
"last_price": "上次报价金额(元)",
"last_price_time": "上次报价时间",
"last_quote_no_convert": "上次报价后未成交,下次可适当降低",
"lowest_price_accepted":"历史接受过的最低价(元)",
"discount_given_count": "累计让价次数",
"price_sensitivity": "价格敏感度(高/中/低,自动计算)",
"decision_speed": "决策速度(快/慢,自动标记)",
"good_reviews": "好评次数",
"bad_reviews": "差评次数",
"dispute_count": "纠纷次数",
"follow_up_by": "跟进负责人",
"follow_up_date": "跟进日期",
"next_follow_date": "下次跟进日期",
"source": "客户来源渠道",
"coupon_used": "使用过的优惠券",
"notes": "备注列表(含自动报价记录)",
"tags": "自定义标签列表",
"created_at": "建档时间",
"last_contact": "最后联系时间",
"last_update": "最后更新时间",
"last_image_url": "最后发来的图片URL",
"last_image_time": "最后发图时间",
"processing_status": "当前作图状态pending/processing/done等",
"processing_image_url": "当前处理中的图片URL",
"expected_done_at": "预计完成时间",
"preferred_format": "偏好文件格式jpg/png/psd等",
"preferred_size": "偏好尺寸/分辨率描述",
"total_images_sent": "历史发图总数",
"complexity_history": "历史图片复杂度列表normal/complex/hard",
"image_type_history": "历史图片类型列表(印花/logo/人物等)",
"bulk_potential": "批量潜力(有/无/未知)",
"churn_risk": "流失风险(高/中/低,自动计算)",
"upsell_opportunity": "加购机会标签分层PSD/批量打包)",
"revision_count": "累计改稿次数",
"revision_orders": "有改稿的订单数",
"total_completed_orders":"已完成出图的订单数",
"blacklist": "是否黑名单",
"blacklist_reason": "拉黑原因",
"last_email_status": "最后邮件发送状态sent/failed",
"last_conversation_summary": "上次对话AI摘要15字以内",
"last_conversation_time": "上次对话时间"
}
}