# 获取统计规则的触发记录

# 请求方式

GET

# 请求地址

https://nbd-api.myscrm.cn/bff-nbd-qw-openapi/v1/rule-trigger-record/get

# 请求参数

# 示例

https://nbd-api.myscrm.cn/bff-nbd-qw-openapi/v1/rule-trigger-record/get?app_id=xxx&record_id=xxx

# 说明

参数 类型 必须 说明
app_id string 企微中台应用 id
record_id string 触发记录 id

# 返回参数

# 示例

[
  {
    "app_id": "xxxx",
    "chat_id": "xxxx",
    "chat_record_id": "xxxx",
    "classification_id": "xxxx",
    "classification_name": "xxxx",
    "content": "xxxx",
    "e_id": "xxxx",
    "from_user_id": "xxxx",
    "from_user_name": "xxxx",
    "hit_key_word": "xxxx",
    "msg_id": "xxxx",
    "msg_time": "1653985275589",
    "projects": [
      {
        "organ_proj_id": "xxxx",
        "organ_proj_name": "xxxx"
      }
    ],
    "record_id": "xxxx",
    "rule_id": "xxxx",
    "rule_name": "1",
    "to_user_id": "xxxx",
    "to_user_name": "xxxx",
    "to_user_type": 1
  }
]
参数 类型 说明
app_id string 企微中台应用 id
chat_id string 企微中台聊天 id
chat_record_id string 企微中台聊天消息 id
classification_id string 触发的统计规则分类 id
classification_name string 触发的统计规则分类名称
content string 触发记录对应的企微文本消息内容
e_id string 企微中台企业 id
from_user_id string 发送者 id,企微员工 id 或外部联系人 id
from_user_name string 发送者名称
hit_key_word string 命中的关键词
msg_id string 触发记录对应的企微消息 id
msg_time string 触发记录对应的企微消息发送的毫秒时间戳
projects.organ_proj_id string 触发记录归属的项目 id
projects.organ_proj_name string 触发记录归属的项目名称
record_id string 触发记录 id
rule_id string 触发的统计规则 id
rule_name string 触发的统计规则名称
to_user_id string 接受者 id,to_user_type=1 时为企微员工 id 或外部联系人 id,to_user_type=2 时为企微群聊 id
to_user_name string 接受者名称
to_user_type int 聊天类型:1-单聊,2-群聊