WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Groups → Update Group Image

AI-generated

Overview

This node integrates with the WaliChat WhatsApp API to update the profile image of a WhatsApp group. It allows users to specify which WhatsApp number (device) and group to target, then set a new group image either by providing a direct URL or base64-encoded image data.

Common scenarios where this node is beneficial include:

  • Automating branding updates for WhatsApp groups used in customer support or marketing.
  • Dynamically changing group images based on campaigns or events.
  • Managing multiple WhatsApp groups' profile pictures programmatically without manual intervention.

Practical example:

  • A company runs multiple WhatsApp groups for different product lines. Using this node, they can update each group's image to reflect current promotions by supplying URLs or base64 images automatically.

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 is to be updated (e.g., 447362053576-1500000000@g.us).
Image Source The source type of the new group image: 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 to use as the group profile picture (max 1MB).
Image Data (Base64) (If Image Source is Base64) The base64-encoded string representing the JPG or PNG image to use (max 1MB).

Output

The node outputs JSON data representing the result of the update operation. This typically includes confirmation details such as success status or any metadata returned by the WaliChat API about the updated group image.

No binary data output is produced by 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's ability to access the specified WhatsApp number and group.
  • For image URLs, the URL must be accessible and point to a valid JPG or PNG image not exceeding 1MB.
  • For base64 images, the encoded data must represent a valid JPG or PNG image within the size limit.

Troubleshooting

  • Invalid Group ID or WhatsApp Number: If the provided group ID or device ID is incorrect or inaccessible, the API call will fail. Verify that the IDs are correct and that the WhatsApp number is connected.
  • Image Size Limit Exceeded: Images larger than 1MB may cause errors. Ensure images meet the size requirements.
  • Unsupported Image Format: Only JPG and PNG formats are supported. Using other formats will result in failure.
  • Network or API Errors: Connectivity issues or invalid API credentials will prevent successful execution. Check API key validity and network connectivity.
  • Incorrect Image Source Selection: Make sure to provide the image data corresponding to the selected source type (URL or Base64).

Common error messages might include:

  • "Group not found" — check the group ID.
  • "Unauthorized" or "Invalid API key" — verify API credentials.
  • "Image format not supported" — ensure image is JPG or PNG.
  • "Payload too large" — reduce image size below 1MB.

Links and References

Discussion