WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Labels → Update Label

AI-generated

Overview

This node interacts with the WaliChat WhatsApp API to update an existing label associated with a WhatsApp number. Labels are typically used to categorize or tag chats, contacts, or messages for better organization and filtering within WhatsApp business workflows.

Common scenarios where this node is beneficial include:

  • Changing the color or description of a label to reflect updated categorization needs.
  • Renaming a label to better represent its purpose.
  • Maintaining consistent labeling schemes across multiple WhatsApp numbers managed by a business.

For example, a customer support team might use this node to update the "Priority" label color from blue to red to visually emphasize urgent conversations.

Properties

Name Meaning
WhatsApp number The ID of the WhatsApp number on which the label exists and will be updated.
Label Name The name of the label to update.
Label Color The new color for the label. Options include: Ruby, Tomato, Orange, Sunflower, Bubble, Rose, Poppy, Rouge, Raspberry, Purple, Lavender, Violet, Pool, Emerald, Kelly, Apple, Turquoise, Aqua, Gold, Latte, Cocoa, Iron.
Description An optional short description providing additional context about the label.

Output

The node outputs JSON data representing the result of the label update operation. This typically includes confirmation details such as the updated label's properties (name, color, description) and possibly status information returned by the WaliChat API.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the WaliChat WhatsApp API via an API key credential configured in n8n.
  • The node depends on the WaliChat API being accessible and the provided WhatsApp number ID being valid.
  • The getDevices method is used internally to load available WhatsApp numbers for selection.

Troubleshooting

  • Invalid WhatsApp number ID: If the provided WhatsApp number does not exist or is incorrect, the API call will fail. Verify the device ID using the available options or API.
  • Label not found: Attempting to update a label that does not exist may cause errors. Ensure the label name matches exactly.
  • API authentication errors: Missing or invalid API keys will prevent successful communication with the WaliChat API. Confirm credentials are correctly set up.
  • Color option mismatch: Providing a color value outside the predefined list will likely cause validation errors. Use one of the supported colors.
  • Network issues: Connectivity problems can cause timeouts or failures. Check network access to the WaliChat API endpoint.

Error messages generally reflect these issues and should guide users to verify input parameters and credentials.

Links and References

Discussion