WAHA

Connect with Whatsapp HTTP API

Actions116

Overview

This node operation archives a chat in a specified session by providing the session name and chat ID. It is useful for managing chat histories by marking chats as archived, which can help in organizing and cleaning up active chat lists. For example, in a customer support system, this operation can be used to archive resolved chat conversations automatically.

Use Case Examples

  1. Archiving a customer support chat after the issue is resolved to keep the active chat list clean.
  2. Automatically archiving chats older than a certain date to maintain chat history efficiently.

Properties

Name Meaning
Session The name of the session where the chat exists, used to identify the context for the chat to be archived.
Chat Id The unique identifier of the chat to be archived within the specified session.
Request Options Additional options to control the request behavior such as batching, SSL certificate validation, proxy settings, and timeout duration.

Output

JSON

  • success - Indicates whether the chat was successfully archived.
  • archivedChatId - The ID of the chat that was archived.
  • session - The session name where the chat was archived.

Dependencies

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

Troubleshooting

  • Common issues include invalid session names or chat IDs, resulting in errors indicating the chat could not be found or archived.
  • Timeout errors may occur if the server does not respond within the specified timeout period; increasing the timeout or checking network connectivity can help.
  • SSL certificate validation errors can be bypassed by enabling the 'Ignore SSL Issues' option, but this should be used with caution due to security risks.

Links

Discussion