Actions29
- Chat Actions
- Group Actions
- Instance Actions
- Message Actions
- Webhook Actions
Overview
This node integrates with the MegaAPI WhatsApp service to perform various WhatsApp-related operations. Specifically, for the Instance resource and the Generate QR Code operation, it generates a QR code that can be used to connect or pair a WhatsApp instance. This is useful in scenarios where you want to programmatically establish or refresh a WhatsApp session by scanning the generated QR code with the WhatsApp mobile app.
Practical examples include:
- Automating WhatsApp connection setup in customer support systems.
- Refreshing WhatsApp session authentication without manual intervention.
- Integrating WhatsApp messaging capabilities into workflows that require dynamic instance management.
Properties
| Name | Meaning |
|---|---|
| Informações | An informational notice displayed in the node UI for this specific resource-operation. |
Note: The provided properties JSON only includes an informational notice property for this operation, which does not affect execution but may provide guidance or information to the user.
Output
The node outputs JSON data representing the result of generating the QR code for the WhatsApp instance. Typically, this output will include the QR code data (likely as a string or URL) that can be rendered or used downstream in the workflow to display or process the QR code.
If the node supports binary data output for the QR code image itself, it would be included in the binary output field; however, based on the static analysis, the output is primarily JSON containing the QR code information.
Dependencies
- Requires an API key credential for authenticating with the MegaAPI WhatsApp service.
- The node uses the base URL and token from the configured credentials to make authenticated requests.
- No additional external dependencies are indicated beyond the MegaAPI service.
Troubleshooting
Common Issues:
- Invalid or expired API token: Ensure the API key credential is valid and has not expired.
- Network connectivity problems: Verify that the host URL is reachable from the n8n environment.
- Incorrect resource or operation selection: Confirm that "Instance" resource and "Generate QR Code" operation are selected.
Error Messages:
Unknown operation: generateQrCode: This should not occur if the operation is correctly selected; otherwise, verify the node version and configuration.- API errors returned from MegaAPI (e.g., authentication failure): Check credentials and permissions.
Resolution Tips:
- Re-authenticate or update the API key credential if authentication errors occur.
- Review network settings and firewall rules if connectivity issues arise.
- Use the node's "Informações" notice for any additional guidance provided.
Links and References
- MegaAPI WhatsApp Service Documentation (hypothetical link, replace with actual if available)
- WhatsApp QR Code Authentication Overview
- n8n Documentation on Custom Nodes