Wassenger icon

Wassenger

Interact with Wassenger WhatsApp API

Actions148

Overview

This node interacts with the Wassenger WhatsApp API to update the profile image of a specific WhatsApp channel. It allows users to change the channel's profile picture by providing either a direct URL to an image or base64-encoded image data. This is useful for businesses or developers who want to programmatically manage and customize their WhatsApp channels' appearance, ensuring brand consistency or updating images dynamically.

Practical examples:

  • Automatically updating a WhatsApp channel's profile picture based on marketing campaigns.
  • Changing the channel image when switching between different product lines or services.
  • Setting a default image for new WhatsApp numbers added to the system.

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 image to use as the channel profile picture. Options: URL, Base64.
Image URL The URL of the image to use as the channel profile picture. Must be JPG or PNG, max 1MB.
Image Data (Base64) Base64-encoded image data representing the image to set as the channel profile picture. Must be JPG or PNG, max 1MB.

Output

The node outputs JSON data representing the response from the Wassenger API after attempting to update the channel image. This typically includes confirmation of success or details about the updated channel.

If the operation fails and "Continue On Fail" is enabled, the output will contain an error message describing the failure.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the Wassenger WhatsApp API.
  • Needs an API key credential configured in n8n for authentication with the Wassenger service.
  • The image must be accessible via URL or provided as base64-encoded data, and must not exceed 1MB in size.
  • Supported image formats are JPG and PNG.

Troubleshooting

  • Common issues:

    • Providing an invalid or inaccessible image URL may cause the update to fail.
    • Exceeding the 1MB size limit for the image will likely result in an error.
    • Using unsupported image formats other than JPG or PNG can cause rejection by the API.
    • Incorrect or missing WhatsApp number or channel ID will prevent the update.
  • Error messages:

    • "Invalid image format": Ensure the image is JPG or PNG.
    • "Image size exceeds limit": Compress or resize the image to be under 1MB.
    • "Channel not found": Verify the channel ID is correct and exists.
    • "Authentication failed": Check that the API key credential is valid and properly configured.

Resolving these errors usually involves verifying input parameters, ensuring image compliance, and confirming API credentials.

Links and References

Discussion