Wasapbot icon

Wasapbot

Custom operations

Overview

This node enables sending images via WhatsApp using the CustomJe.com API service. It is designed to send an image along with an optional message to a specified WhatsApp number through a configured WhatsApp instance.

Common scenarios where this node is beneficial include:

  • Automated customer support where images (e.g., product photos, screenshots) need to be sent.
  • Marketing campaigns that involve sending promotional images.
  • Notifications or alerts that require visual content delivery over WhatsApp.

For example, you can use this node to send a welcome image and message to new customers automatically after they sign up.

Properties

Name Meaning
CustomJe API Key API key for authentication from CustomJe.com (required).
Instance ID WhatsApp instance identifier used to route the message (required).
Access Token Access token for authenticating the WhatsApp instance (required).
Phone Number Destination WhatsApp number including country code but without the "+" prefix (required).
Message Optional text message content to accompany the image.
Media URL URL of the image to send (must be accessible publicly; required).

Output

The node outputs a JSON object containing the response from the CustomJe.com API after attempting to send the image message. This typically includes status information about the request such as success confirmation or error details.

No binary data output is produced by this node.

Example output structure (simplified):

{
  "status": "success",
  "messageId": "abc123xyz",
  "details": "Message sent successfully"
}

Dependencies

  • Requires an active account and valid API key on CustomJe.com.
  • Needs a configured WhatsApp instance with its Instance ID and Access Token.
  • The node makes HTTP POST requests to CustomJe.com endpoints.
  • Network access to the provided media URL must be available (the image must be reachable by the API).

Troubleshooting

  • Invalid API Key or Access Token: Ensure your API key and access token are correct and have not expired.
  • Incorrect Instance ID: Verify the WhatsApp instance ID matches the one assigned in your CustomJe.com dashboard.
  • Unreachable Media URL: The image URL must be publicly accessible. Private or protected URLs will cause failures.
  • Phone Number Format: The phone number must include the country code but exclude the "+" sign.
  • API Errors: If the API returns errors, check the message content and parameters for compliance with CustomJe.com requirements.
  • Network Issues: Confirm that n8n has internet access and can reach both CustomJe.com and the media URL.

If the node throws an error like The operation "send-image" is not implemented yet!, it indicates a misconfiguration or unsupported operation selection.

Links and References

  • CustomJe.com API Documentation (for detailed API usage and authentication)
  • WhatsApp Business API guidelines (for understanding message formats and limitations)

Discussion