企业微信(WeCom)-连接微信 icon

企业微信(WeCom)-连接微信

企业微信连接微信功能 - 微信客服、客户联系、家校应用、政民沟通

Actions172

客户联系 → [敏感词管理] 新建敏感词规则

AI-generated

Summary

Creates a WeCom customer-contact sensitive-word interception rule with a name, words to match, interception behavior, and an applicable member or department scope. Optionally enables semantic matching for phone numbers, email addresses, and red packets.

Inputs

  • rule_name (required) — Rule name; 1–20 UTF-8 characters.
  • word_list (required) — Comma-separated sensitive words; each must be 1–32 UTF-8 characters, with at most 300 words.
  • intercept_type (required) — Choose 1 to warn and block sending, or 2 to warn only.
  • applicableRangeType (required) — Select whether the rule applies by member, department, or both. The UI defaults to members.
  • applicable_user_list — Comma-separated member UserIDs, shown for member or combined scope. Members must be within the app's visible range; up to 1,000 are supported.
  • applicable_department_list — Comma-separated department IDs, shown for department or combined scope. Departments must be within the app's visible range; up to 1,000 are supported.
  • enableSemantics — Enable additional semantic interception rules; defaults to off.
  • semantics_list — When semantic rules are enabled, select phone number, email address, and/or red packet matching.

Output shape

A single API response item.

The operation sends a create-rule request to WeCom. The available source view does not show the response fields.

Links

Discussion