企业微信(WeCom)-基础 icon

企业微信(WeCom)-基础

企业微信基础功能 - 通讯录、应用消息、群聊、消息推送、企业互联、素材、系统、电子发票、第三方应用授权、接口调用许可、收银台、对外收款、小程序对外收款、企业红包/向员工付款、数据与智能专区、会话内容存档、推广二维码、账号ID、安全管理

Actions248

应用管理 → [应用管理] 创建菜单

AI-generated

Summary

Create or replace the WeCom application menu for the specified application ID. Define the menu with the form or provide a JSON button array; the operation validates the menu and sends it to WeCom.

Inputs

  • 应用 ID (agentid) (required) — Positive integer ID of the WeCom application whose menu to configure.
  • 菜单配置方式 (menuConfigMode) — Choose form (default) or JSON.
  • 一级菜单 (menuButtonCollection) (required) — In form mode, configure 1–3 top-level menu items. Each needs a name and type. Depending on type, provide an event key (up to 128 bytes), an HTTP(S) URL (up to 1024 bytes), or a mini-program AppID and page path. For a submenu item, configure 1–5 child items with the same type-specific fields; child names must be nonempty and up to 40 bytes. Top-level names must be nonempty and up to 16 bytes.
  • 一级菜单 JSON (button) (required) — In JSON mode, provide the WeCom button array. It receives the same full validation as the form configuration; the default is a single click item named 今日歌曲 with key V1001_TODAY_MUSIC.

Output shape

A list of n8n items, each containing the WeCom API response in JSON.

The operation makes a menu-creation request for each input item. Menu validation or API errors fail the operation.

Links

Discussion