SparkBot icon

SparkBot

Interact with SparkBot WhatsApp API

Actions148

Overview

This node interacts with the SparkBot WhatsApp API to update an existing label associated with a specific WhatsApp number. Labels are used to categorize or tag chats, contacts, or messages within the WhatsApp environment, helping users organize and filter their conversations effectively.

Typical use cases include:

  • Changing the name or color of a label to better reflect its purpose.
  • Adding or updating a description for clarity.
  • Managing labels dynamically as part of automated workflows that organize WhatsApp communications.

For example, a user might update a label named "Support" to change its color from blue to red to indicate urgency or modify its description to specify it is for high-priority customer issues.

Properties

Name Meaning
WhatsApp number The ID of the WhatsApp number (device) on which the label exists and will be updated.
Label Name The new or existing name of the label to update.
Label Color The color assigned to 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 details about the label.

Output

The node outputs JSON data representing the updated label object returned by the SparkBot API. This typically includes fields such as the label's ID, name, color, description, and possibly metadata confirming the update status.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the SparkBot WhatsApp API.
  • Needs an API key credential configured in n8n for authentication.
  • The WhatsApp number (device ID) must be valid and linked to the authenticated account.

Troubleshooting

  • Common Issues:

    • Invalid or missing WhatsApp number/device ID can cause failures.
    • Using a label name that does not exist may result in errors.
    • Insufficient permissions or invalid API key will prevent successful updates.
  • Error Messages:

    • "Label not found": The specified label name does not exist on the given WhatsApp number. Verify the label name and device ID.
    • "Unauthorized" or "Authentication failed": Check that the API key credential is correctly set up and has necessary permissions.
    • "Invalid color value": Ensure the color property matches one of the allowed options.

Resolving these usually involves verifying input parameters, ensuring correct credentials, and confirming the label exists before attempting an update.

Links and References

Discussion