Wechat Work Node icon

Wechat Work Node

Wechat Work Node

Overview

This node is designed to interact with Wechat Work (an enterprise communication and office collaboration platform). Specifically, the "用户管理" (User Management) resource with the operation "获取加入企业二维码" (Get Join Enterprise QR Code) allows users to retrieve a QR code that new users can scan to join the enterprise.

Common scenarios for this node include:

  • Automating the generation of join QR codes for onboarding new employees.
  • Embedding or sending the QR code in emails or internal portals to facilitate easy enterprise joining.
  • Dynamically generating QR codes of different sizes based on display requirements.

Example: A company wants to send a welcome email to new hires containing a QR code they can scan to join the corporate Wechat Work account. This node can generate that QR code image in the desired size.

Properties

Name Meaning
二维码尺寸类型 QR code size type. Options are:
- 171 x 171
- 399 x 399
- 741 x 741
- 2052 x 2052

The property controls the pixel dimensions of the generated QR code image.

Output

The node outputs JSON data representing the result of the requested operation. For the "获取加入企业二维码" operation, the output JSON will typically contain information about the QR code, such as a URL or base64-encoded image data representing the QR code.

If the node supports binary data output (not explicitly shown in the provided code), it would likely provide the QR code image as binary data for direct use or download.

Dependencies

  • Requires an API key credential for authenticating with the Wechat Work API.
  • The node internally calls Wechat Work endpoints using the provided credentials.
  • No additional external dependencies beyond the Wechat Work API and n8n's HTTP request helper.

Troubleshooting

  • Common issues:

    • Invalid or expired API credentials will cause authentication failures.
    • Incorrect size_type values may lead to unexpected QR code sizes or errors.
    • Network connectivity issues can prevent successful API calls.
  • Error messages:

    • "未实现方法: 用户管理.获取加入企业二维码" means the method is not implemented; ensure the node version supports this operation.
    • Authentication errors from the API will be surfaced; verify API keys and permissions.
    • If the node throws errors related to missing parameters, check that all required properties are set correctly.
  • Resolutions:

    • Verify and update API credentials.
    • Use valid options for the QR code size property.
    • Check network access to the Wechat Work API endpoints.

Links and References

Discussion