Wechat Health Check
AI-generatedSummary
Check the validity of the Wechat session using credentials obtained from the Wechat Login node by optionally specifying a test user ID to verify the session health.
Inputs
- Test User ID — User ID used to test the session (can be any user previously interacted with). Defaults to the userId in sessionData if not specified.
Output shape
a list of JSON objects, one per input item, each containing session health check results
Each output item JSON includes keys: healthy (boolean), accountId (string), testUserId (string), timestamp (ISO 8601 string), and message (string). On failure, may include errorCode (number), errorMessage (string), and actionRequired (string) guidance. Output item is paired with input item by index.
Examples
Example 1: Valid session check
Provide optional Test User ID or leave blank to use the default user from session data. The node uses WechatOfficialApi credentials containing sessionData to perform the check. It calls internal WechatCore getConfig for the specified user and returns success or failure details accordingly.