N8N Tools - WhatsApp Enhanced icon

N8N Tools - WhatsApp Enhanced

Comprehensive WhatsApp Business API integration for N8N workflows

Overview

This node integrates with the WhatsApp Business API via the N8N Tools platform, providing enhanced capabilities to manage WhatsApp media and messages within n8n workflows. Specifically, the Delete Media operation under the Media resource allows users to delete a media item from their WhatsApp account by specifying its Media ID.

Common scenarios where this node is beneficial include:

  • Automating cleanup of unused or outdated media files in WhatsApp.
  • Managing media lifecycle programmatically as part of larger workflow automations.
  • Integrating WhatsApp media management into CRM or content management systems.

For example, after sending an image or document message, you might want to delete the media file from WhatsApp storage to save space or comply with data retention policies. This node operation enables that by deleting the media using its unique Media ID.

Properties

Name Meaning
Media ID The unique identifier of the media item in WhatsApp to be deleted. This ID is required to specify which media should be removed.

Output

The output of the Delete Media operation is a JSON object representing the response from the WhatsApp API after attempting to delete the specified media. Typically, this will confirm whether the deletion was successful or provide error details if it failed.

The json output field contains this response data for each input item processed.

This node does not output binary data for this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the N8N Tools API service.
  • Requires OAuth2 or API credentials configured for WhatsApp Business API access through the N8N Tools platform.
  • The node internally validates the API key subscription before executing operations.
  • Network connectivity to the N8N Tools API endpoint is necessary.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that your API credentials are correct and have the necessary permissions.
  • Media ID Not Found: If the specified Media ID does not exist or has already been deleted, the API may return an error. Double-check the Media ID value.
  • Permission Issues: Ensure that the WhatsApp Business API user associated with the credentials has permission to delete media.
  • Network Errors: Connectivity issues to the N8N Tools API or WhatsApp API endpoints can cause failures. Check network settings and firewall rules.
  • Continue On Fail: If enabled, the node will continue processing other items even if one fails, returning error details in the output.

Links and References

Discussion