WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Chats → Set Chat Status

AI-generated

Overview

This node interacts with the WaliChat WhatsApp API to manage chat statuses within WhatsApp numbers (devices). Specifically, the "Set Chat Status" operation allows users to update the internal status of a particular chat. This is useful for organizing and tracking conversations, such as marking chats as active, pending, resolved, archived, or removed.

Practical scenarios include:

  • Customer support teams updating chat statuses to reflect progress (e.g., marking a chat as resolved after issue resolution).
  • Sales teams archiving inactive chats to keep their workspace clean.
  • Automated workflows that change chat statuses based on external triggers or events.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) from which the chat belongs.
Chat ID The unique identifier of the chat to update (e.g., user chat like 447362053576@c.us or group chat like 44736205357600000000@g.us).
Status The new internal status to assign to the chat. Options: Active, Pending, Resolved, Archived, Removed.

Output

The node outputs a JSON object representing the result of the status update operation. This typically includes confirmation details about the updated chat status. The exact structure depends on the API response but generally confirms success or provides error information if the update failed.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the WaliChat WhatsApp API.
  • The node depends on the WaliChat API service being accessible and properly configured.
  • The "WhatsApp Number" must be registered and available in the WaliChat system.
  • The chat ID must correspond to an existing chat under the specified WhatsApp number.

Troubleshooting

  • Invalid Chat ID: If the chat ID does not exist or is malformed, the API may return an error. Verify the chat ID format and existence.
  • Unauthorized Access: Missing or invalid API key credentials will cause authentication failures. Ensure the API key is correctly set up in n8n credentials.
  • Status Value Errors: Providing a status value outside the allowed options will cause validation errors. Use one of the predefined statuses: Active, Pending, Resolved, Archived, or Removed.
  • Device Not Found: If the WhatsApp number (device) ID is incorrect or not linked to your account, the operation will fail. Confirm the device ID via the node's device list.

Links and References


This summary is based solely on static analysis of the provided source code and property definitions without runtime execution.

Discussion