Overview
This node connects to a WhatsApp server API to manage WhatsApp sessions. Specifically, the 'Check Session Status' operation allows users to query the current status of a WhatsApp session. This is useful for monitoring whether a session is active, disconnected, or requires re-authentication. Practical applications include automating session health checks in WhatsApp automation workflows or integrating session status monitoring into broader communication systems.
Use Case Examples
- A user wants to verify if their WhatsApp session is still active before sending messages.
- An automation workflow checks the session status periodically to trigger alerts if the session is disconnected.
Properties
| Name | Meaning |
|---|---|
| Use Legacy Mode | Determines whether to use the legacy WhatsApp mode for the session check. |
Output
JSON
jsonstatus- The current status of the WhatsApp session returned by the server API.sessionId- The identifier of the WhatsApp session being checked.error- Error message if the session status check fails.
Dependencies
- Requires credentials for the WhatsApp server API, including server URL, session ID, and optionally an API key for authorization.
Troubleshooting
- Common issues include invalid or expired session IDs, resulting in errors from the server API.
- Authorization errors may occur if the API key is missing or incorrect.
- Network connectivity issues can prevent the node from reaching the WhatsApp server API.