WhatsApp Connect

Connect to WhatsApp using QR code

Overview

This node connects to WhatsApp using a QR code via a WhatsApp server API. It supports operations to connect by retrieving the QR code as image or data, check the session status, and delete a session. It is useful for automating WhatsApp session management, such as initiating a connection by scanning a QR code or monitoring session health.

Use Case Examples

  1. Automate WhatsApp connection by generating a QR code image for scanning.
  2. Check if a WhatsApp session is active before sending messages.
  3. Delete an old or invalid WhatsApp session to reset connection.

Properties

Name Meaning
Use Legacy Mode Whether to use legacy WhatsApp mode for connection, affecting how the session is established.

Output

JSON

  • json - The JSON response from the WhatsApp server API for the selected operation, such as QR code data, QR code image in base64, session status, or deletion confirmation.

Dependencies

  • Requires credentials for a WhatsApp server API including server URL, session ID, and an optional API key for authorization.

Troubleshooting

  • Common issues include network errors connecting to the WhatsApp server API or invalid session IDs causing failures.
  • Error messages from the API are returned in the node output; enabling 'Continue On Fail' allows workflow continuation despite errors.
  • Ensure the API key and session ID credentials are correctly configured to avoid authorization errors.

Discussion