SparkBot icon

SparkBot

Interact with SparkBot WhatsApp API

Actions148

Overview

This node allows you to update the profile image of a WhatsApp group associated with a specific WhatsApp number. It is useful in scenarios where you want to programmatically change the group's display picture, for example, to reflect a new event, branding update, or any other visual change relevant to the group members.

Practical examples include:

  • Automatically updating a group image when launching a new campaign.
  • Changing the group picture based on seasonal themes or announcements.
  • Setting a custom image for different groups managed by your WhatsApp business account.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) from which the group image will be updated.
Group ID The unique identifier of the WhatsApp group whose image you want to update.
Image Source The source type of the image to use: either a URL or Base64-encoded image data.
Image URL (If Image Source is URL) The direct URL pointing to the JPG or PNG image file (max 1MB).
Image Data (Base64) (If Image Source is Base64) The base64-encoded string representing the JPG or PNG image (max 1MB).

Output

The node outputs JSON data representing the result of the update operation. This typically includes confirmation details such as success status and possibly metadata about the updated group image.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the SparkBot WhatsApp API service.
  • The node depends on the external SparkBot WhatsApp API to perform group image updates.
  • Proper configuration of the WhatsApp number (device) and group IDs is necessary, which can be dynamically loaded via provided methods.

Troubleshooting

  • Common Issues:

    • Invalid or expired API key leading to authentication failures.
    • Incorrect WhatsApp number or group ID causing "group not found" errors.
    • Image exceeding the maximum allowed size (1MB) or unsupported format errors.
    • Network issues preventing access to the image URL if using URL as the image source.
  • Error Messages & Resolutions:

    • "Authentication failed": Verify that the API key credential is correctly set and valid.
    • "Group not found": Confirm the group ID corresponds to a group under the specified WhatsApp number.
    • "Image too large" or "Unsupported image format": Ensure the image is JPG or PNG and does not exceed 1MB.
    • "Failed to fetch image from URL": Check the URL accessibility and correctness.

Links and References

Discussion