Overview
This node manages WhatsApp sessions using the Wuzapi service. It provides operations to connect and disconnect from WhatsApp servers, retrieve QR codes for pairing, get session status, pair a phone number, configure proxy settings, and manage storage and messaging configurations via S3 and RabbitMQ.
The Pair Phone operation specifically generates a pairing code for a given phone number, enabling the user to link that phone with the WhatsApp session managed by Wuzapi.
Common scenarios:
- Automating WhatsApp session management in workflows.
- Pairing new phones programmatically without manual QR scanning.
- Integrating WhatsApp messaging capabilities into business applications.
- Configuring backend services like S3 or RabbitMQ for media storage and event handling.
Practical example:
You want to pair a new phone number with your WhatsApp session automatically as part of an onboarding workflow. Using this node’s "Pair Phone" operation, you provide the phone number, and it returns a pairing code to complete the process.
Properties
| Name | Meaning |
|---|---|
| Phone Number | The phone number to pair with, entered as a string without "+" or spaces (e.g., 5491155553934). This is required for the "Pair Phone" operation. |
Output
The node outputs JSON data containing the response from the Wuzapi API for the selected operation.
For the Pair Phone operation, the output JSON will include details about the pairing request, such as success status or any pairing codes returned by the API.
If the operation involves QR codes (not applicable here but relevant for other operations), the node can also output binary data representing the QR code image, including its MIME type and file extension.
Dependencies
- Requires an API key credential for authenticating with the Wuzapi service.
- The node makes HTTP requests to Wuzapi endpoints to perform session management tasks.
- For some operations (not "Pair Phone"), additional configuration may be needed for proxy, S3 storage, or RabbitMQ messaging.
Troubleshooting
- Invalid phone number format: Ensure the phone number is provided without "+" or spaces and is valid according to the expected format.
- API authentication errors: Verify that the API key credential is correctly configured and has necessary permissions.
- Network issues: Check connectivity to the Wuzapi service endpoint.
- Operation-specific errors: The node returns error messages from the API; review these messages for clues (e.g., pairing failures due to already paired devices).
- If the node is set to continue on failure, errors will be included in the output JSON under an
errorfield.
Links and References
- Wuzapi Official Documentation (for API details and session management)
- WhatsApp Business API (general background on WhatsApp integration)
If you need details on other operations or resources, please let me know!