WeCom Approval Assistant: Integrating WeCom Approval into Agents to Enable Seamless Collaboration

Introduction

The approval capabilities of WeCom (Enterprise WeChat) are already established in the admin console and the client. However, when writing automation scripts, internal tools, or conversational assistants, developers still have to consult the Open Platform documentation, piece together template IDs and control structures, and then call the submission APIs. In conversational scenarios, users often just say “help me submit a leave request” or “check the reimbursement template” rather than organizing their input according to API fields.

Here we introduce the “WeCom Approval Assistant” on SkillHub. It encapsulates capabilities such as listing templates, parsing controls, submitting applications, and initiating approvals via natural language into an Agent Skill, which is automatically mounted based on intent during conversations.

What is this

The “WeCom Approval Assistant” is an Agent Skill for WeCom approval integration. Its coordinate is @user_e7bc6b23/wecom-approval, version 1.0.0. It is maintained by the community publisher user_e7bc6b23, categorized under business-ops in SkillHub, and sourced from the community.

The Agent can automatically select this Skill when users mention keywords such as “approval,” “leave,” “reimbursement,” “procurement,” or “business trip,” or when they need to submit approval requests, view approval templates, or handle approval workflows. It is designed for teams that have already enabled approvals in WeCom and wish to complete template queries and application submissions via LLM conversations, rather than replacing WeCom’s native approval UI.

Core Functions

Based on the SkillHub page and skill description, the currently verifiable capabilities include:

  1. List Approval Templates: Fetches the list of available approval templates on the WeCom side to facilitate selection or confirmation within the conversation.
  2. Parse Template Controls: Understands the control structure within templates, providing a basis for filling out forms by field or validating user input.
  3. Submit Approval Applications: Executes the formal submission process when information is complete.
  4. One-Sentence Natural Language Submission: Initiates requests using colloquial descriptions; the Skill handles the mapping to templates and fields (specific mapping rules depend on the instructions within the skill package).

The skill tags indicate requires_api_key=true, meaning an API key related to WeCom or the Skill must be configured before use. The key name and acquisition method should refer to the SKILL.md in the skill directory after installation and the WeCom Open Platform documentation. This article does not expand on configuration items not listed on public pages.

Installation and Activation

Method 1: SkillHub CLI

First, check if SkillHub CLI is installed on your local machine:

command -v skillhub && skillhub --version

If not installed, you can perform a full installation (including CLI and default Skills) following the SkillHub installation documentation:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

When installing the skill, you must use --dir to point to the current Agent’s skills directory. Otherwise, it will default to ./skills/, which the Agent may not be able to recognize:

skillhub install user_e7bc6b23/wecom-approval --dir <your Agent skills directory>

Common client skills path examples (from SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installing to the correct directory, restart or refresh the Agent according to your client’s requirements to enable the new Skill.

Method 2: Ask AI to install using official prompts

The installation prompt provided on the SkillHub skill page is: Ask the Agent to install @user_e7bc6b23/wecom-approval according to the SkillHub Installation Instructions. This is suitable for environments where you are accustomed to pulling skills via conversation.

API Key

Before activation, complete the key configuration required by requires_api_key. If specific environment variable names are not listed on the public SkillHub page, refer to the documentation inside the skill package and the credential requirements for the relevant “Approval” interfaces on the WeCom Open Platform.

Typical Usage

Public materials do not include copy-pasteable HTTP examples. The usage can be summarized from the skill’s design intent as follows; actual fields depend on the feedback when the Agent calls the Skill tool during conversation:

  1. Query Templates: Say “List WeCom approval templates” or “What leave templates are available” in the conversation, and the Skill will fetch the template list.
  2. View List Structure: After selecting a template, you can request “Parse the controls of this template” to confirm required fields and types.
  3. Structured Submission: After filling in the fields required by the template under the Agent’s guidance, initiate the “Submit Approval Application”.
  4. One-Sentence Submission: For example, “Help me submit annual leave for tomorrow and the day after, reason is family affairs.” The Skill completes the form filling by combining natural language submission capabilities with template parsing (requires correct WeCom side permissions and key configuration).

Trigger words and scenarios are consistent with the description: approval, leave, reimbursement, procurement, business trip, as well as phrases regarding viewing templates and handling workflows.

Applicable Scenarios and Notes

Who is it for

  • Developers and operations staff who already use approval workflows in WeCom and wish to consolidate “query templates, fill forms, submit” into Agent conversations like Cursor, Claude Code, or Codex.
  • Teams that need to reduce manual Open Platform coding but retain WeCom as the system for approval storage and workflow.

Limitations and Notes

  • Depends on WeCom Open Platform capabilities and internal enterprise approval app configurations; keys and visible template scopes are constrained by enterprise administrator policies.
  • The SkillHub page shows installation counts and other statistics that change over time; at the time of writing, visible information includes version v1.0.0, tag requires_api_key=true, and community source.
  • Approval compliance, audit trails, and permission boundaries remain the responsibility of WeCom and enterprise regulations. The Skill is merely an integration layer and does not replace the approval system itself.

Conclusion

The “WeCom Approval Assistant” encapsulates WeCom approval template queries, control parsing, application submission, and natural language initiation into an automatically triggerable Skill. It is suitable for handling common approval phrasing like leave, reimbursement, procurement, and business trips within conversations. When installing, remember to use the --dir flag with skillhub install to point to the current Agent’s skills directory and complete the API key configuration.

  • SkillHub Skill Page: https://www.skillhub.cn/skills/user_e7bc6b23/wecom-approval
  • Skill Coordinate Page: https://api.skillhub.cn/user_e7bc6b23/wecom-approval
  • General Installation Instructions: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye