Actions36
- Account Actions
- Canned Response Actions
- Contact Actions
- Conversation Actions
- Inbox Actions
- Label Actions
- Message Actions
- Team Actions
- Webhook Actions
Overview
This node interacts with the Chatwoot API to manage webhooks among other resources. Specifically, for the Webhook - Delete operation, it deletes a webhook identified by its numeric ID from a Chatwoot account.
Use cases include:
- Removing obsolete or unwanted webhooks that are no longer needed.
- Cleaning up webhook configurations during automation workflows.
- Managing webhook lifecycle programmatically within n8n workflows.
Example scenario: You have a webhook set up to listen to certain events in Chatwoot but want to delete it automatically when a project ends or when switching integrations.
Properties
| Name | Meaning |
|---|---|
| Webhook ID | The numeric ID of the webhook to delete. |
| Continue on Fail | Whether the workflow should continue executing subsequent nodes if this delete operation fails. |
| Debug Logging | Whether to output detailed request and response information to the console for debugging purposes. |
Output
The node outputs a JSON object indicating the success of the deletion operation:
{
"success": true
}
If the deletion is successful, the output confirms it with "success": true. If an error occurs and Continue on Fail is enabled, the output will contain an error message instead.
No binary data is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Chatwoot API.
- Needs the Chatwoot account ID and base URL configured in the credentials.
- The node makes HTTP DELETE requests to the Chatwoot API endpoint
/api/v1/accounts/{accountId}/webhooks/{webhookId}.
Troubleshooting
Common issues:
- Invalid or missing webhook ID: Ensure the webhook ID provided exists and is correct.
- Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
- Network or connectivity problems: Check network access to the Chatwoot instance.
Error messages:
- HTTP 404 Not Found: The webhook ID does not exist or is incorrect.
- HTTP 401 Unauthorized: API key is invalid or expired.
- JSON parsing errors (unlikely here since no JSON input is required for delete).
Resolutions:
- Double-check the webhook ID parameter.
- Reconfigure or update the API authentication token.
- Enable Debug Logging to see detailed request/response info for diagnosis.
Links and References
- Chatwoot API Documentation - Webhooks
- n8n Documentation - Creating Custom Nodes
- HTTP Request Node in n8n (for understanding underlying HTTP calls)