Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Message → Send Image

AI-generated

Overview

This node enables sending an image message through WhatsApp using the Wappfy API. It supports sending images either by providing a direct URL or by supplying Base64-encoded image data. Users can specify the target chat and optionally add a caption to the image.

Common scenarios where this node is beneficial include:

  • Automating marketing campaigns by sending promotional images to customers.
  • Sharing product photos or visual updates in customer support chats.
  • Broadcasting event invitations or announcements with images to groups.

Example use case: Automatically send a welcome image to new users joining a WhatsApp group, enhancing engagement with a personalized visual message.

Properties

Name Meaning
Chat ID The identifier of the chat to send the image to (e.g., 123456789@c.us for direct, or 123456789@g.us for group).
Media Source The source type of the image file: either URL (a web link to the image) or Base64 (the image encoded as a Base64 string).
File URL The URL of the image file to send (required if Media Source is URL).
Base64 Data The Base64 encoded image data (required if Media Source is Base64).
File Name The name of the image file (used when Media Source is Base64; default is "file").
MIME Type The MIME type of the image file (e.g., image/jpeg, image/png).
Caption Optional text caption to accompany the image message.

Output

The node outputs JSON data representing the response from the Wappfy API after attempting to send the image. This typically includes details about the sent message such as message ID, status, timestamps, or error information if the operation failed.

No binary data output is produced by this operation.

Dependencies

  • Requires access to the Wappfy API service.
  • Requires configuration of an API key credential for authentication with the Wappfy API.
  • Needs the base URL and instance name of the Wappfy API configured in credentials.

Troubleshooting

  • Invalid Chat ID: If the chat ID format is incorrect or the chat does not exist, the API may return an error. Verify the chat ID format and ensure the bot has access to the chat.
  • Incorrect MIME Type: Providing an incorrect MIME type may cause the media to be rejected. Use standard MIME types like image/jpeg or image/png.
  • Missing Required Fields: Ensure that when using URL as media source, the File URL is provided; when using Base64, both Base64 Data and MIME Type are set.
  • API Authentication Errors: If the API key is missing or invalid, requests will fail. Confirm the API key is correctly set in the node credentials.
  • Large Image Size: Very large images might be rejected or cause timeouts. Consider resizing or compressing images before sending.

Links and References

Discussion