WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Channels → Update Channel Image

AI-generated

Overview

This node integrates with the WaliChat WhatsApp API to update the profile image of a specific WhatsApp channel. It allows users to change the channel's display picture by providing either a direct URL to an image or base64-encoded image data. This is useful for businesses or teams managing multiple WhatsApp channels who want to keep their channel images up-to-date, consistent with branding, or customized for different campaigns or customer segments.

Practical examples:

  • Updating the profile picture of a WhatsApp newsletter channel to reflect a seasonal promotion.
  • Changing the channel image after rebranding or updating the company logo.
  • Setting a custom image for a support channel to differentiate it from sales or marketing channels.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) associated with the channel.
Channel ID The unique identifier of the channel to update (e.g., 123000098765421000 or 123000098765421000@newsletter).
Image Source The source type of the new image. Options: URL (provide an image URL), Base64 (provide base64-encoded image data).
Image URL The URL of the image to use as the channel profile picture. Must be JPG or PNG format, max size 1MB. Required if Image Source is URL.
Image Data (Base64) Base64-encoded image data in JPG or PNG format, max size 1MB. Required if Image Source is Base64.

Output

The node outputs JSON data representing the result of the update operation. Typically, this will include confirmation details such as success status and possibly updated channel information. The exact structure depends on the WaliChat API response but generally confirms that the channel image was updated successfully.

No binary output is produced by this operation.

Dependencies

  • Requires an active connection to the WaliChat WhatsApp API.
  • Needs an API key credential configured in n8n for authentication with WaliChat.
  • The image must be accessible via URL or provided as base64-encoded data, and must not exceed 1MB in size.
  • Network access to the image URL (if using URL source) must be available from the n8n environment.

Troubleshooting

  • Image size too large: If the image exceeds 1MB, the API may reject the update. Ensure images are compressed or resized appropriately.
  • Invalid image format: Only JPG and PNG formats are supported. Using other formats may cause errors.
  • Invalid Channel ID or WhatsApp Number: Providing incorrect IDs will result in failure to locate the channel or device.
  • Network issues accessing image URL: If using a URL source, ensure the URL is publicly accessible or accessible from the n8n server.
  • Authentication errors: Verify that the API key credential is correctly set up and has sufficient permissions.
  • Error messages: The node may throw errors indicating invalid parameters or failed API calls. Review error messages for hints and verify all required properties are correctly set.

Links and References


If you need further details about other operations or resources, feel free to ask!

Discussion