WeChat Enhanced icon

WeChat Enhanced

WeChat Enhanced Node - Suporte completo para Mini Programs, Official Accounts, WeChat Pay e WeChat Work

Overview

The "WeChat Enhanced" node integrates with various WeChat services, including Mini Programs, Official Accounts, WeChat Pay, and WeChat Work. Specifically, the WeChat Work - Send Message operation allows users to send messages to individuals or groups within a WeChat Work environment.

This operation is useful for automating communication workflows inside organizations that use WeChat Work as their collaboration platform. For example, it can be used to notify team members about project updates, send alerts, or broadcast announcements programmatically.

Practical examples:

  • Sending a text or rich message to a department or user group when a new task is assigned.
  • Automating reminders or notifications triggered by external systems.
  • Broadcasting company-wide announcements or event invitations.

Properties

Name Meaning
Message Data The content of the message to send, provided in JSON format. This JSON should conform to the WeChat Work API message structure, specifying message type, recipients, and content details.

Output

The node outputs an array of JSON objects, each representing the response from the WeChat Work API after attempting to send the message. The exact structure depends on the API response but typically includes status information such as success confirmation or error details.

No binary data output is produced by this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external service referred to as "N8N Tools API," which acts as a proxy or validation layer for WeChat API calls.
  • Requires credentials for authenticating with WeChat Work APIs (e.g., OAuth2 tokens or API keys), configured in n8n.
  • The node internally uses a helper class (WeChatApi) to interact with WeChat Work endpoints.

Troubleshooting

  • Invalid subscription or API key error: If you receive errors indicating invalid subscription or API key, verify that your API key credential is correctly set up and has the necessary permissions.
  • Malformed JSON in Message Data: Since the message content must be valid JSON, ensure the input JSON is well-formed and matches the expected schema for WeChat Work messages.
  • Unsupported operation error: This node supports only predefined operations; if you attempt an unsupported operation, it will throw an error.
  • API rate limits or permission issues: Ensure your WeChat Work account has sufficient permissions and that you are not exceeding API rate limits.

Links and References


If you need further details on other operations or resources, feel free to ask!

Discussion