Overview
The "Generate QR Code" operation in the Uzapi Business node interacts with the Uzapi Business API for WhatsApp to generate a QR code. This QR code is typically used for authentication or linking purposes within WhatsApp Business integrations. The node is beneficial when automating workflows that require generating and retrieving QR codes from the WhatsApp API, such as setting up new WhatsApp sessions or enabling user authentication via QR scanning.
Practical examples include:
- Automatically generating a QR code for a new WhatsApp Business session during onboarding.
- Integrating WhatsApp login flows where users scan a QR code to authenticate.
- Refreshing or regenerating QR codes programmatically without manual intervention.
Properties
| Name | Meaning |
|---|---|
| QR Token (Base64) | A Base64-encoded token returned by the WhatsApp API, required to generate the QR code. |
Output
The node outputs JSON data containing the generated QR code information. This typically includes the QR code image or data encoded in a format suitable for display or further processing. If binary data is involved (e.g., an image), it would represent the QR code image itself.
Dependencies
- Requires an API key credential for authenticating with the Uzapi Business WhatsApp API.
- The node depends on the external Uzapi Business API service to generate QR codes.
- Proper configuration of credentials and API access is necessary within n8n.
Troubleshooting
Common issues:
- Missing or invalid API credentials can cause authentication failures.
- Providing an incorrect or malformed Base64 QR token will prevent QR code generation.
- Network connectivity problems may lead to timeouts or failed API calls.
Error messages:
"Operation "generateQrCode" não implementada"indicates the requested operation is not implemented; ensure the operation name is correct.- Authentication errors suggest checking the API key or credential setup.
- Invalid token errors mean the provided Base64 token is incorrect or expired.
To resolve these issues, verify credentials, confirm the correctness of the QR token, and ensure stable network connectivity.
Links and References
- WhatsApp Business API Documentation
- Uzapi Business API documentation (refer to your provider's official docs for detailed API usage)