WhatsApp Connect

Connect to WhatsApp using QR code

Overview

This node connects to WhatsApp using QR code data, enabling integration with WhatsApp sessions. It supports operations such as connecting with QR code data, connecting with a QR code image, checking the status of a WhatsApp session, and deleting a session. This node is useful for automating WhatsApp session management, for example, to initiate a connection via QR code scanning or to monitor and manage session states programmatically.

Use Case Examples

  1. Automatically retrieve QR code data to connect a WhatsApp session for messaging automation.
  2. Check the status of an active WhatsApp session before sending messages.
  3. Delete an old or inactive WhatsApp session to maintain clean session management.

Properties

Name Meaning
Use Legacy Mode Whether to use legacy WhatsApp mode (boolean flag) to determine the connection method.

Output

JSON

  • json - The JSON response from the WhatsApp server API for the selected operation, which may include QR code data, session status, or confirmation of session deletion.

Dependencies

  • Requires credentials for 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 typically indicate request failures or authorization issues; ensure the WhatsApp Server API credentials are correct and the server is reachable.
  • If the node fails with an unknown error, verify the API endpoint and parameters, and check if the legacy mode flag is set appropriately.

Discussion