Wechat OfficialAccount Trigger icon

Wechat OfficialAccount Trigger

Triggers the workflow when Server-Sent Events occur

Wechat OfficialAccount Trigger

AI-generated

Summary

Receives WeChat Official Account webhook requests and emits each message as workflow data. Configure the required token and choose the encryption mode to match the account; provide the EncodingAESKey for compatible or safe mode, though runtime decryption is performed only in safe mode.

Inputs

  • Token (required) — Token used to validate the webhook signature.
  • Message encryption mode — Choose plaintext (default), compatible, or safe mode to match the Official Account configuration.
  • EncodingAESKey — Shown for compatible and safe modes. Required at runtime for safe mode, where it decrypts the message.

Output shape

A list of workflow items containing message fields as JSON.

In plaintext or compatible mode, the node returns the parsed XML fields and removes the top-level encrypt field when present. In safe mode, it verifies the encrypted signature, decrypts the message, and returns its fields with lowercased keys. A valid GET verification request is answered with echostr and produces no workflow data. Invalid or mismatched signatures, encryption settings, or missing decryption keys raise errors.

Links

Discussion