Actions148
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
Overview
This node integrates with the SparkBot WhatsApp API to manage chat contacts, specifically allowing deletion of a contact from a WhatsApp number's contact list. It is useful in scenarios where you need to programmatically remove outdated or unwanted contacts from your WhatsApp business account managed via SparkBot.
Practical examples include:
- Automatically cleaning up contacts who have unsubscribed or are no longer relevant.
- Managing contact lists dynamically based on CRM or marketing automation workflows.
- Ensuring compliance by removing contacts upon user request.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) from which the contact will be deleted. |
| Contact ID | The unique identifier of the contact to delete (e.g., 447362053576@c.us). |
Output
The node outputs a JSON object representing the result of the delete operation. Typically, this will confirm whether the contact was successfully deleted or provide an error message if the operation failed.
No binary data output is expected from this operation.
Dependencies
- Requires an API key credential for authenticating with the SparkBot WhatsApp API.
- The node depends on the SparkBot service being accessible and properly configured.
- The "WhatsApp Number" must be valid and associated with the authenticated account.
- The "Contact ID" must correspond to an existing contact in the specified WhatsApp number.
Troubleshooting
Common issues:
- Invalid or missing WhatsApp Number or Contact ID parameters.
- Authentication failures due to incorrect or expired API keys.
- Attempting to delete a contact that does not exist or is already deleted.
- Network connectivity issues preventing access to the SparkBot API.
Error messages and resolutions:
"Contact not found": Verify the Contact ID is correct and exists under the specified WhatsApp Number."Unauthorized"or"Authentication failed": Check that the API key credential is correctly set and has necessary permissions."Invalid WhatsApp Number": Confirm the device ID corresponds to a valid WhatsApp number linked to your account.- Timeout or network errors: Ensure stable internet connection and that the SparkBot API endpoint is reachable.
Links and References
- SparkBot WhatsApp API Documentation (general reference for API capabilities)
- n8n Documentation on Creating Custom Nodes
- WhatsApp Business API guidelines for contact management (consult official WhatsApp resources)