Overview
This node connects to a WhatsApp server API to manage WhatsApp sessions. It supports operations such as connecting to WhatsApp using QR code data or image, checking the status of a WhatsApp session, and deleting a WhatsApp session. This node is useful for automating WhatsApp session management in workflows, for example, to programmatically connect or disconnect WhatsApp sessions or monitor their status.
Use Case Examples
- Automate connecting to WhatsApp by retrieving QR code data or image for scanning.
- Check the current status of a WhatsApp session to ensure connectivity.
- Delete a WhatsApp session when it is no longer needed or to reset the connection.
Properties
| Name | Meaning |
|---|---|
| Use Legacy Mode | Whether to use legacy WhatsApp mode (boolean) to determine the connection method. |
Output
JSON
json- The JSON response from the WhatsApp server API for the requested operation, such as session connection data, status, or deletion confirmation.
Dependencies
- Requires credentials for the WhatsApp server API including server URL, session ID, and optionally an API key for authorization.
Troubleshooting
- Common issues include network errors or invalid credentials causing request failures.
- Error messages from the node will include the error message from the API or a generic 'Unknown error' if the error is not an instance of Error.
- Ensure the WhatsApp server API credentials are correctly configured and the server URL is reachable.
- If using legacy mode, verify that the WhatsApp server supports legacy connections.