| | |
| | | if (containsAny(text, "指标", "统计", "看板", "总览", "经营分析")) { |
| | | return salesAgentTools.getSalesDashboard(memoryId, startDate, endDate, text); |
| | | } |
| | | if (containsAny(text, "客户档案", "私海", "公海", "客户池")) { |
| | | if (containsAny(text, "客户档案", "销售档案", "公海", "客户池")) { |
| | | return salesAgentTools.listCustomerProfiles(memoryId, extractSeaType(text), keyword, limit); |
| | | } |
| | | if (containsAny(text, "销售报价", "报价单", "报价", "询价")) { |
| | |
| | | |
| | | private String tryExecuteQuickPrompt(String memoryId, String text) { |
| | | String normalized = normalizeForMatch(text); |
| | | if ("查询私海客户档案前10条".equals(normalized)) { |
| | | return salesAgentTools.listCustomerProfiles(memoryId, "private", null, 10); |
| | | if ("查询销售档案前10条".equals(normalized)) { |
| | | return salesAgentTools.listCustomerProfiles(memoryId, "public", null, 10); |
| | | } |
| | | if ("查询公海客户档案".equals(normalized)) { |
| | | if ("查询客户档案".equals(normalized)) { |
| | | return salesAgentTools.listCustomerProfiles(memoryId, "public", null, 10); |
| | | } |
| | | if ("查询本月销售报价".equals(normalized)) { |
| | |
| | | } |
| | | |
| | | private String extractSeaType(String text) { |
| | | if (text.contains("公海")) { |
| | | if (text.contains("公海") || text.contains("销售档案")) { |
| | | return "public"; |
| | | } |
| | | if (text.contains("私海")) { |
| | | return "private"; |
| | | } |
| | | return null; |
| | | } |