Actions7
Overview
This node integrates with the Monitchat platform to send various types of messages, including photos, to specified phone numbers associated with Monitchat accounts. The Send Photo operation specifically allows users to send media files such as images, videos, audio, or documents along with an optional message.
Typical use cases include:
- Sending promotional images or product photos directly to customers.
- Sharing important documents or multimedia content via chat.
- Automating customer support interactions by sending relevant media files.
For example, a marketing team could automate sending a new product brochure (as a PDF document) or a promotional video to a list of customers using this node.
Properties
| Name | Meaning |
|---|---|
| File Type | The type of file to send. Options: Image, Video, Audio, Document |
| Message | Optional text message to accompany the file |
| Phone Number | The recipient's phone number |
| Account Number | The Monitchat account number associated with the message |
| File name | The name of the file being sent |
| File URL | The URL from which the file will be fetched and sent |
Output
The node outputs a JSON object containing the response from the Monitchat API after attempting to send the photo. This typically includes confirmation details about the sent media or error information if the request failed.
No binary data output is produced by this operation; all responses are in JSON format.
Example output structure (simplified):
{
"success": true,
"messageId": "1234567890",
"details": {
"fileName": "example.jpg",
"fileType": "image",
"phoneNumber": "+123456789"
}
}
If an error occurs, the output JSON will contain an error field with the error message.
Dependencies
- Requires an API key credential for Monitchat to authenticate requests.
- Makes HTTP POST requests to Monitchat's API endpoint at
https://api-v2.monitchat.com/api/v1/media/send. - The node expects valid URLs for the files to be sent; these must be accessible by Monitchat's servers.
Troubleshooting
- Invalid or missing API key: Ensure that the Monitchat API key credential is correctly configured in n8n.
- File URL inaccessible: If the file URL is not publicly accessible or requires authentication, the send operation will fail. Make sure the URL is reachable by Monitchat.
- Incorrect phone or account number: Verify that the phone number and account number correspond to valid entries in Monitchat.
- Unsupported file type: Confirm that the file type matches one of the supported options (image, video, audio, document).
- Error messages from API: The node surfaces error messages returned by Monitchat. Review these messages for clues, such as quota limits or malformed requests.
To resolve errors, check the input parameters, ensure network accessibility of the file URL, and verify credentials.
Links and References
- Monitchat API Documentation (for detailed API usage)
- n8n Documentation (for general node usage and credential setup)
