Overview
This node, named NimChat, is designed to send WhatsApp messages through the NimChat API. It takes a mobile number and message content as inputs, formats the phone number to an international standard (specifically for numbers starting with "9" or "0" by prefixing with country code "98"), and sends the message via an HTTP POST request to NimChat's messaging endpoint.
Common scenarios where this node is useful include:
- Automating customer notifications or alerts via WhatsApp.
- Integrating WhatsApp messaging into workflows for marketing campaigns.
- Sending transactional messages such as order confirmations or appointment reminders.
Example: Sending a greeting message "hello" to a mobile number "989123456789".
Properties
| Name | Meaning |
|---|---|
| To | Mobile number to send the message to. The node automatically formats the number to include the country code "98" if missing. |
| Content | Message content to be sent via WhatsApp. |
Output
The node outputs a JSON array containing the response from the NimChat API after sending the message. This response typically includes details about the message status or any errors returned by the API.
No binary data output is produced by this node.
Dependencies
- Requires an active NimChat API account and an associated API key credential configured in n8n.
- The node makes authenticated HTTP requests to the NimChat API endpoint
https://app.nim.chat/api/v1/accounts/99/inboxes/290/messages. - Proper configuration of the API authentication token within n8n credentials is necessary.
Troubleshooting
- Invalid Phone Number Format: If the phone number is not correctly formatted or missing the country code, the message may fail to send. Ensure the number starts with "9" or "98" as expected.
- Authentication Errors: Failure to authenticate with the NimChat API will result in errors. Verify that the API key credential is correctly set up and has sufficient permissions.
- API Endpoint Issues: If the NimChat API endpoint changes or is temporarily unavailable, the node will throw HTTP errors. Check NimChat service status and update the endpoint if needed.
- Message Content Restrictions: Some content might be rejected by the API due to length or unsupported characters. Validate message content before sending.
Links and References
- NimChat Official Website
- NimChat API Documentation (for detailed API usage and message formatting rules)