Actions22
- Channel Actions
- Chat Actions
- Message Actions
- Contact Actions
- OTP Code Actions
- OTP Link Actions
Overview
This node allows sending an image message to a specified contact via the CrunchzApp API. It is useful in scenarios where you want to automate sharing images with contacts, such as sending product photos, event flyers, or visual updates directly through messaging.
For example, you could use this node to send a promotional image with an optional caption to a customer’s WhatsApp contact ID automatically after they place an order.
Properties
| Name | Meaning |
|---|---|
| Contact Id | The unique identifier of the contact to whom the image will be sent (format: xxx@c.us). |
| Caption | Optional text caption that accompanies the image message. |
| File | JSON object describing the image file to send, including: |
- mimeType: MIME type of the image (e.g., "image/png"). |
|
- filename: Name of the image file (e.g., "image.png"). |
|
- url: Publicly accessible URL where the image can be fetched from. |
Output
The node outputs JSON data representing the response from the CrunchzApp API after attempting to send the image message. This typically includes status information about the message delivery.
No binary data output is indicated by the source code.
Dependencies
- Requires an active CrunchzApp API key credential configured in n8n.
- Relies on the CrunchzApp API endpoint at
https://api.crunchz.app/api. - The image file must be accessible via a public URL for the API to fetch and send it.
Troubleshooting
- Invalid Contact Id: If the contact ID format is incorrect or the contact does not exist, the API may return an error. Ensure the contact ID follows the expected pattern (e.g.,
xxx@c.us). - File URL Issues: If the image URL is inaccessible or invalid, the message will fail to send. Verify the URL is publicly reachable and points to a valid image.
- Authentication Errors: Missing or invalid API credentials will cause authentication failures. Confirm the CrunchzApp API key is correctly set up in n8n.
- Caption Length: Some APIs limit caption length; if errors occur, try shortening the caption.
Links and References
- CrunchzApp API Documentation (assumed based on baseURL)
- n8n documentation on Creating Custom Nodes