Actions28
- Messages Actions
- Media Actions
- Templates Actions
- Contacts Actions
- Analytics Actions
- Webhooks Actions
Overview
This node provides integration with the WhatsApp Business API via the N8N Tools platform, enabling various WhatsApp-related operations within an n8n workflow. Specifically, for the Templates resource and the Delete Template operation, it allows users to delete a message template from their WhatsApp Business account.
Use cases include managing message templates by removing outdated or unused templates programmatically as part of automated workflows. For example, a business might automate cleanup of deprecated marketing templates or remove test templates after validation.
Properties
| Name | Meaning |
|---|---|
| Template Name | The name of the message template (string). Used in some template operations but not required for deletion. |
| Template ID | The unique identifier of the template to delete (string). This is required to specify which template to remove. |
Output
The node outputs JSON data representing the response from the WhatsApp API regarding the deletion request. Typically, this will include confirmation of successful deletion or error details if the operation failed.
The output structure is:
{
"json": {
// API response confirming deletion or error information
},
"itemData": {
"item": <index_of_input_item>
}
}
No binary data is produced by this operation.
Dependencies
- Requires an active subscription and valid API key credential for the N8N Tools API.
- Requires OAuth2 or API credentials configured for WhatsApp Business API access through the N8N Tools platform.
- The node internally validates the API key before performing operations.
- Network connectivity to the N8N Tools API endpoint is necessary.
Troubleshooting
- Invalid subscription or API key: If the node throws an error about invalid subscription or API key, verify that your API credentials are correct and have the necessary permissions.
- Template ID missing or incorrect: Ensure the
Template IDproperty is provided and corresponds to an existing template; otherwise, the deletion will fail. - API rate limits or network issues: Temporary failures may occur due to rate limiting or connectivity problems; retrying the operation later can help.
- JSON parsing errors: Although not directly relevant to deletion, other template operations use JSON input; ensure JSON fields are correctly formatted to avoid errors.
Links and References
- WhatsApp Business API - Message Templates
- N8N Documentation - Creating Custom Nodes
- N8N Tools Platform (for API key and subscription management)