WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Chats → Update Chat Attributes

AI-generated

Overview

The node integrates with the WaliChat WhatsApp API to update chat attributes for a specified WhatsApp number and chat. It allows users to modify metadata such as pinning or muting a chat, which can help organize conversations or control notifications.

This node is useful in scenarios where automated management of WhatsApp chats is needed, for example:

  • Pinning important customer support chats to keep them easily accessible.
  • Muting less critical group chats during busy hours to reduce distractions.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) on which the chat exists.
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).
Attributes Collection of attributes to update on the chat:
- Pinned Boolean flag to pin (true) or unpin (false) the chat.
- Muted Boolean flag to mute (true) or unmute (false) the chat.

Output

The node outputs JSON data representing the result of the update operation on the chat attributes. This typically includes confirmation of the updated state or any relevant metadata returned by the WaliChat API.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with the WaliChat WhatsApp API.
  • The node depends on the WaliChat service being accessible and properly configured.
  • The "WhatsApp Number" must be valid and linked to the WaliChat account.
  • The chat ID must correspond to an existing chat on 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.
  • Permission Issues: Some attributes might require specific permissions; ensure the API key has rights to modify chat metadata.
  • Network Errors: Connectivity issues with the WaliChat API endpoint can cause timeouts or failures. Check network connectivity and API status.
  • Incorrect WhatsApp Number: Using a WhatsApp number not registered or linked to the WaliChat account will cause errors.

Links and References

  • WaliChat Official API Documentation (example placeholder, replace with actual URL if available)
  • WhatsApp chat ID formats:
    • User chat: <phone_number>@c.us
    • Group chat: <phone_number>00000000@g.us

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

Discussion