Actions6
- Message Actions
- Group Actions
Overview
The Plug Chat node's "Message" resource with the "Send Image" operation allows you to send an image via WhatsApp to a specified phone number. This is useful for automating the delivery of images (such as receipts, product photos, or marketing materials) directly to users' WhatsApp accounts. Typical scenarios include customer support, order confirmations, or promotional campaigns where visual content needs to be shared.
Example use cases:
- Sending a product image to a customer after purchase.
- Delivering event tickets or QR codes as images.
- Sharing marketing banners or infographics with subscribers.
Properties
| Name | Type | Meaning |
|---|---|---|
| Phone | String | Phone number with country code to which the image will be sent. |
| Media URL | String | URL or Base64 string of the image to send. |
| Caption | String | Optional caption text to accompany the image. |
| Message ID | String | (Optional) Message ID to reply to; used for threading replies. |
| Delay | Number | (Optional) Delay in seconds before sending the message. |
Output
The node outputs a JSON object containing the response from the PlugChat API. The structure typically includes information about the message delivery status and any relevant metadata returned by the API.
If an error occurs and 'Continue On Fail' is enabled, the output will be:
{
"error": "Error message here"
}
Otherwise, expect fields such as:
{
"status": "...",
"messageId": "...",
// other API-specific fields
}
Note: The exact output fields depend on the PlugChat API's response.
Dependencies
- External Service: Requires access to the PlugChat API.
- API Key/Credentials: You must configure the
plugChatApicredential in n8n. - Environment: Ensure your n8n instance can reach the PlugChat API endpoint.
Troubleshooting
Common Issues:
- Invalid Phone Number: If the phone number is not in the correct format (with country code), the API may reject the request.
- Invalid Media URL: If the media URL is inaccessible or not a valid image/Base64, the message will not be sent.
- Missing Credentials: If the
plugChatApicredential is not set up, the node will fail to authenticate.
Error Messages:
"error": "Invalid credentials": Check your PlugChat API key configuration."error": "Media not found": Verify the Media URL is correct and accessible."error": "Phone number required": Ensure the Phone property is filled and correctly formatted.
