WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

WhatsApp Numbers → Delete Chats

AI-generated

Overview

This node integrates with the WaliChat WhatsApp API to manage WhatsApp numbers and their associated chats. Specifically, the Delete Chats operation under the WhatsApp Numbers resource allows users to delete chat conversations linked to a particular WhatsApp number by specifying one or more phone numbers.

Common scenarios for this node include:

  • Cleaning up chat histories for specific contacts on a managed WhatsApp number.
  • Automating chat management workflows where old or irrelevant conversations need to be removed.
  • Maintaining privacy or compliance by programmatically deleting chats from certain phone numbers.

For example, a user might want to delete all chats from a list of customers who have opted out of communications, or clear chats before handing over a WhatsApp number to another team member.

Properties

Name Meaning
WhatsApp Number ID The unique identifier of the WhatsApp number (device) whose chats you want to delete.
Chat Phone Numbers One to ten phone numbers (with international country codes) whose chats will be deleted.

Output

The node outputs a JSON object representing the result of the delete chats operation. This typically includes confirmation details such as success status or any relevant metadata returned by the WaliChat API about the deletion process.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the WaliChat WhatsApp API.
  • Needs an API key credential configured in n8n for authenticating requests to WaliChat.
  • The node depends on internal methods that handle the actual API calls to delete chats based on the provided WhatsApp number ID and phone numbers.

Troubleshooting

  • Common Issues:

    • Providing invalid or non-existent WhatsApp Number IDs may cause failures.
    • Supplying phone numbers without proper international country codes can lead to errors or no action.
    • Exceeding the maximum allowed phone numbers (more than 10) will likely cause validation errors.
    • Network or authentication issues with the WaliChat API can prevent successful execution.
  • Error Messages:

    • Errors related to missing required parameters indicate that either the WhatsApp Number ID or phone numbers were not provided.
    • Authentication errors suggest problems with the API key credential setup.
    • API response errors may include messages about invalid phone numbers or permissions; resolving these usually involves verifying input correctness and API access rights.

Links and References


Note: The above summary is based solely on static analysis of the provided source code and property definitions.

Discussion