Actions53
- Account Actions
- Contact Actions
- Group Actions
- Message Actions
- Session Actions
Message → Send Image
AI-generatedOverview
This node operation sends an image message via the WasenderAPI. It allows users to specify the recipient, image URL, optional text caption, and additional message options such as replying to a specific message or mentioning group members. It supports the 'view once' feature for images, meaning the image can be set to be viewed only once by the recipient. This operation is useful for automating the sending of image content in WhatsApp messages, for example, sending promotional images, product photos, or event invitations.
Use Case Examples
- Sending a promotional image to a customer with a caption.
- Sending an event invitation image to a group with mentions of specific members.
- Sending a 'view once' image to ensure the recipient can only see the image one time.
Properties
| Name | Meaning |
|---|---|
| Session | Optional session selection to specify which WhatsApp session to use for sending the message. Can be selected from a list or by ID. |
| Auto Selected Session ID | Automatically uses the session ID from the incoming item if available. |
| Has Auto Selected Session | Indicates if there is an auto-selected session available from the incoming data. |
| Recipient | The phone number, group JID, or channel JID of the message recipient. |
| Text | Optional text caption to accompany the image. |
| Image URL | The URL of the image to be sent. |
| View Once | Boolean option to send the image as a 'view once' message, which can only be viewed once by the recipient. |
| Message Options | Additional options for the message, such as replying to a specific message ID. |
| Mentions | Used for group messages to mention specific members by their participant JIDs. |
| Options | Request options including retry behavior for failed API requests and maximum retry attempts. |
Output
JSON
to- The recipient identifier (phone number, group JID, or channel JID).text- Optional text caption sent with the image.imageUrl- The URL of the image sent.viewOnce- Indicates if the image was sent as a 'view once' message.replyTo- The message ID this message is replying to, if specified.mentions- List of participant JIDs mentioned in the message, if any.
Dependencies
- WasenderAPI service
- An API key credential for WasenderAPI
Troubleshooting
- Ensure the 'Image URL' is a valid and accessible URL; otherwise, the message sending will fail.
- The 'Recipient' must be a valid phone number or group/channel JID; invalid formats will cause errors.
- If 'Reply To Message ID' is specified, it must be a positive integer; otherwise, an error is thrown.
- If 'Mentions' are used, ensure the participant JIDs are correctly formatted.
- The node requires a valid session either selected manually or auto-selected from incoming data; missing session information will cause errors.