Actions33
- Mini Program Actions
- Official Account Actions
- WeChat Pay Actions
- WeChat Work Actions
Overview
The node provides enhanced integration with WeChat services, including Mini Programs, Official Accounts, WeChat Pay, and WeChat Work. Specifically for the WeChat Work resource and the Create User operation, this node allows you to create a new user in a WeChat Work organization by sending user data in JSON format.
This is useful in scenarios where you want to automate user management within your organization's WeChat Work environment, such as onboarding new employees or synchronizing user information from other systems.
Practical example:
You can use this node to automatically create a new WeChat Work user when a new employee record is added to your HR system, by passing the employee details as JSON to the node.
Properties
| Name | Meaning |
|---|---|
| User Data | User data in JSON format. This should contain all necessary fields required by WeChat Work API to create a user, such as userid, name, department, mobile, email, etc. |
Output
The output of the node is a JSON object representing the response from the WeChat Work API after attempting to create the user. This typically includes success confirmation or error details returned by the API.
No binary data output is produced by this operation.
Dependencies
- Requires an active subscription and valid API key for the external "N8N Tools API" service, which acts as a proxy/validation layer for WeChat API calls.
- Requires credentials for accessing the WeChat API via the N8N Tools API.
- The node internally uses a helper class (
WeChatApi) to interact with the WeChat Work API endpoints. - Proper configuration of the workflow's credentials for authentication with WeChat Work is necessary.
Troubleshooting
Invalid subscription or API key error:
If you receive errors indicating invalid subscription or API key, verify that your API key credential is correct and that your subscription to the external API service is active.Malformed User Data JSON:
Ensure that the JSON provided in the "User Data" property is correctly formatted and contains all required fields according to WeChat Work API specifications.API Errors from WeChat Work:
Errors returned from the WeChat Work API (e.g., user already exists, invalid parameters) will be included in the node output if "Continue On Fail" is enabled; otherwise, they will cause the workflow to fail. Review the error message for corrective action.