Customer intent extraction

From aifinlab/FinClaw · View interactive version

Customer intent extraction is an AI agent skill from the GitHub repository aifinlab/FinClaw. 用于工单/对话诉求抽取的客户诉求抽取原子 skill,适用于通用行业信息抽取场景。

How to use this skill

Skill file

客户诉求抽取 Skill

数据来源

本 Skill 支持多种客户交互数据输入格式,核心数据来源包括:

1. 对话数据

2. 文本数据格式

3. 元数据信息

4. 数据格式要求

说明:本 Skill 不包含数据采集功能,需要用户提供清洗后的对话和工单数据。建议数据包含完整的对话上下文,以便进行准确的诉求抽取。


功能

本 Skill 提供全面的客户诉求抽取能力,涵盖多种抽取功能:

1. 诉求类型识别

2. 诉求内容抽取

3. 情感分析

4. 诉求优先级判断

5. 实体信息抽取

6. 高级处理功能


使用示例

输出示例

{
  "source_info": {
    "source_type": "customer_service",
    "source_id": "CS20240315001",
    "customer_id": "CUST001",
    "channel": "online_chat",
    "timestamp": "2024-03-15T10:30:00"
  },
  "intent_extraction": {
    "primary_intent": "complaint",
    "intent_category": "service_quality",
    "intent_description": "客户投诉服务响应速度慢,要求改进",
    "intent_keywords": ["响应慢", "服务", "改进"],
    "intent_confidence": 0.92
  },
  "content": {
    "original_text": "你们的服务响应太慢了,我已经等了很久,希望能改进一下。",
    "extracted_text": "服务响应速度慢,要求改进",
    "entities": {
      "customer_name": null,
      "product_name": null,
      "time_reference": "很久"
    }
  },
  "sentiment": {
    "sentiment": "negative",
    "sentiment_score": -0.75,
    "emotion": "frustrated",
    "intensity": "high"
  },
  "priority": {
    "urgency": "medium",
    "importance": "high",
    "priority_level": 2,
    "suggested_response_time": "24小时内"
  },
  "related_intents": [
    {
      "intent_id": "INT001",
      "similarity": 0.85,
      "description": "服务响应速度相关诉求"
    }
  ]
}

注意事项与限制

1. 数据质量要求

2. 诉求识别准确性

3. 语言和表达

4. 上下文依赖

5. 使用限制


参考资料

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.