云蝠智能 AI知识中心
所有文章
完整版
完整版
客户端
API文档
升级日志
合作伙伴
基础知识
产品介绍
帮助中心
模型呼叫
升级日志
对接文档
开发指引
回调
iFrame嵌套
常见问题
行业案例
其他文档
任务统计
最后更新于 2024/10/11   阅读数 689   

任务统计 (兼容2.0 任务)


  • 请求接口 /agent-api/user/{user_id}/task/{task_id}/stat

  • 请求方式 GET

  • 路由参数

    参数

    类型

    示例

    解释

    必填

    user_id

    string

    40863af8-db4a-41c6-a269-eb5bc386d97f

    用户id

    task_id

    string

    61551b2c-e3f3-4707-b4ed-f362f0925e03

    任务id

    date

    array

    [“2021-06-30 13:20:28”,“2021-06-30 15:20:28”]

    统计时间

  • 请求参数

    参数

    类型

    示例

    解释

    必填

    sub_user_id

    string

    ac756822-f385-4f7d-b221-26c7604b2ceb

    子账户ID (传递此参数则是对子账户操作)

  • 返回参数

    {
        "code": 200,
        "status": "success",
        "message": "获取外呼任务数据统计成功",
        "data": {
            "answer_rate": {
                "answered": 61,
                "noAnswer": 6,
                "callCompletetRate": 91.03999999999999, //接通率
                "taskProgress": 45 //外呼进度
            },
            "intention": [
                {
                    "intention_results": 1,
                    "name": "A级(有明确意向)",
                    "total": 50,
                    "percent": 83.33
                },
                {
                    "intention_results": 2,
                    "name": "B级(可能有意向)",
                    "total": 1,
                    "percent": 1.67
                },
                {
                    "intention_results": 3,
                    "name": "C级(明确拒绝)",
                    "total": 7,
                    "percent": 11.67
                },
                {
                    "intention_results": 4,
                    "name": "D级(用户在忙)",
                    "total": 2,
                    "percent": 3.3300000000000005
                },
                {
                    "intention_results": 5,
                    "name": "E级(其他)",
                    "total": 0,
                    "percent": 0
                }
            ],
            "number_status": [
                {
                    "status": 0,
                    "status_str": "等待呼叫",
                    "count": 12
                },
                {
                    "status": 1,
                    "status_str": "呼叫成功",
                    "count": 4
                },
                {
                    "status": 2,
                    "status_str": "运营商拦截",
                    "count": 6
                },
                {
                    "status": 3,
                    "status_str": "拒接",
                    "count": 0
                },
                {
                    "status": 4,
                    "status_str": "无应答、无人接听",
                    "count": 0
                },
                {
                    "status": 5,
                    "status_str": "空号",
                    "count": 0
                },
                {
                    "status": 6,
                    "status_str": "关机",
                    "count": 0
                },
                {
                    "status": 7,
                    "status_str": "停机",
                    "count": 0
                },
                {
                    "status": 8,
                    "status_str": "占线、用户正忙",
                    "count": 0
                },
                {
                    "status": 9,
                    "status_str": "呼入限制",
                    "count": 0
                },
                {
                    "status": 10,
                    "status_str": "欠费",
                    "count": 0
                },
                {
                    "status": 11,
                    "status_str": "黑名单",
                    "count": 0
                },
                {
                    "status": 12,
                    "status_str": "用户屏蔽",
                    "count": 0
                }
            ],
            "rounds": {
                "1": 24,
                "2~5": 2,
                "6~10": 0,
                "11~20": 0,
                ">20": 0
            },
            "tags": [],
            "llm_tags": [ //大模型标签
                {
                    "count": 1,
                    "llm_intention_tag_id": 1,
                    "llm_intention_tag": {
                        "id": 1,
                        "name": "代理商大会",
                        "md5": "733dc3b7f6da0152a4b84fc336524568",
                        "created_at": "2024-08-01 20:46:22",
                        "updated_at": "2024-08-01 20:46:22"
                    }
                },
                {
                    "count": 1,
                    "llm_intention_tag_id": 2,
                    "llm_intention_tag": {
                        "id": 2,
                        "name": "感兴趣",
                        "md5": "7cbcfe7417fb5ecc29e2b892af878934",
                        "created_at": "2024-08-01 20:46:22",
                        "updated_at": "2024-08-01 20:46:22"
                    }
                },
                {
                    "count": 1,
                    "llm_intention_tag_id": 14,
                    "llm_intention_tag": {
                        "id": 14,
                        "name": "无意向",
                        "md5": "794c9d416c936549ce8af3942d699bb1",
                        "created_at": "2024-08-02 09:26:15",
                        "updated_at": "2024-08-02 09:26:15"
                    }
                },
                {
                    "count": 1,
                    "llm_intention_tag_id": 1854,
                    "llm_intention_tag": {
                        "id": 1854,
                        "name": "礼貌",
                        "md5": "6fd16be44deca0e0160625dfcc21fe58",
                        "created_at": "2024-09-04 11:30:14",
                        "updated_at": "2024-09-04 11:30:14"
                    }
                },
                {
                    "count": 2,
                    "llm_intention_tag_id": 3927,
                    "llm_intention_tag": {
                        "id": 3927,
                        "name": "敷衍",
                        "md5": "d26dca01f9d739cd490b2ff5cd33bbd8",
                        "created_at": "2024-11-12 10:30:37",
                        "updated_at": "2024-11-12 10:30:37"
                    }
                },
                {
                    "count": 1,
                    "llm_intention_tag_id": 10433,
                    "llm_intention_tag": {
                        "id": 10433,
                        "name": "有时间",
                        "md5": "138a6225e6683b633c5537aaf864e49e",
                        "created_at": "2025-02-07 10:40:08",
                        "updated_at": "2025-02-07 10:40:08"
                    }
                },
                {
                    "count": 1,
                    "llm_intention_tag_id": 23126,
                    "llm_intention_tag": {
                        "id": 23126,
                        "name": "拒加微",
                        "md5": "1346b65fc30db675a47b8248d4004232",
                        "created_at": "2025-04-24 21:24:10",
                        "updated_at": "2025-04-24 21:24:10"
                    }
                }
            ]
        }
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    plaintext
未能解决您的问题?请联系
本篇目录

任务统计 (兼容2.0 任务)