WAHA icon

WAHA

Connect with Whatsapp HTTP API

Overview

This node operation clears messages in a specified chat session. It is useful for managing chat histories by removing all messages from a particular chat, which can help in maintaining privacy, freeing up storage, or resetting chat contexts. For example, it can be used in customer support workflows to clear chat logs after a session ends.

Use Case Examples

  1. Clearing all messages in a customer support chat session after the conversation is completed.
  2. Resetting a chat history in a team collaboration tool to start fresh discussions.

Properties

Name Meaning
Session The name of the chat session where messages will be cleared.
Chat Id The unique identifier of the chat from which messages will be cleared.
Request Options Additional settings for the request such as batching, SSL certificate validation, proxy configuration, and timeout settings.

Output

JSON

  • success - Indicates whether the clear messages operation was successful.
  • clearedMessagesCount - Number of messages that were cleared from the chat.

Dependencies

  • Requires an API key credential or authentication token to access the chat service API.

Troubleshooting

  • Ensure the session name and chat ID are correct and exist in the system to avoid errors.
  • If SSL certificate validation fails, enable 'Ignore SSL Issues' option cautiously to bypass the error.
  • Check proxy settings if network requests fail due to connectivity issues.
  • Adjust timeout settings if the server response is slow to prevent premature request abortion.

Discussion