Actions29
- Chat Actions
- Group Actions
- Instance Actions
- Message Actions
- Webhook Actions
Overview
This node allows you to configure webhook settings for a WhatsApp instance managed via the MegaAPI service. Specifically, the "Config Webhook" operation lets you set the URL where webhook notifications will be sent and enable or disable these webhook notifications.
Use cases include:
- Setting up a webhook endpoint to receive real-time WhatsApp event notifications such as incoming messages or status updates.
- Enabling or disabling webhook notifications dynamically based on workflow logic.
- Integrating WhatsApp events into other systems by forwarding them through a custom webhook URL.
For example, you might configure your webhook URL to point to an HTTP endpoint in your backend that processes incoming WhatsApp messages automatically.
Properties
| Name | Meaning |
|---|---|
| Webhook URL | The URL where webhook notifications will be sent. Example: https://your-webhook-url.com/webhook |
| Webhook Enabled | Whether to enable or disable webhook notifications. Options: Enabled, Disabled |
Output
The node outputs JSON data representing the result of the webhook configuration request. This typically includes confirmation of the webhook URL set and the enabled/disabled status.
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the MegaAPI WhatsApp service.
- Needs an API authentication token (provided via credentials) to authorize requests.
- The node uses the base URL and authorization token from the configured credentials to communicate with the MegaAPI service.
Troubleshooting
- Invalid Webhook URL: If the webhook URL is malformed or unreachable, the MegaAPI service may reject the configuration request. Ensure the URL is valid and publicly accessible.
- Authorization Errors: Missing or invalid API tokens will cause authentication failures. Verify that the API key credential is correctly configured.
- Webhook Disabled but Still Receiving Notifications: Confirm that the "Webhook Enabled" property is set to
Disabledand that the configuration was successfully applied. - Unknown Operation or Resource Errors: These indicate misconfiguration of the node parameters. Make sure the resource is set to "Webhook" and operation to "Config Webhook".
Links and References
- MegaAPI WhatsApp Service Documentation (example placeholder link)
- Webhook Concepts
- n8n Webhook Node Documentation (for general webhook usage)