Actions6
- Message Actions
- Group Actions
Overview
The Plug Chat node for n8n enables sending WhatsApp messages through the PlugChat API. It supports sending text messages, replying to specific messages, and introducing a delay before sending. This node is useful for automating WhatsApp communications, such as sending notifications, reminders, or customer support replies directly from your workflows.
Practical examples:
- Sending appointment reminders to clients via WhatsApp.
- Automatically replying to incoming WhatsApp messages with templated responses.
- Scheduling delayed WhatsApp notifications for marketing campaigns.
Properties
| Name | Type | Meaning |
|---|---|---|
| Phone | String | Phone number with country code. Required. |
| Message ID | String | Message ID to reply to (for threading/replies). |
| Delay | Number | Delay in seconds before sending the message. |
Output
The node outputs a json object containing the response from the PlugChat API. The structure of this output depends on the API's response, but typically includes information about the sent message, such as status, message ID, and any error messages if applicable.
If an error occurs and "Continue On Fail" is enabled, the output will include an error field with the error message.
Example output:
{
"status": "success",
"messageId": "1234567890",
"to": "+12345678901"
}
or, in case of error:
{
"error": "Invalid phone number format"
}
Dependencies
- External Service: Requires access to the PlugChat API.
- API Key: You must configure the
plugChatApicredential in n8n. - Environment: No special environment variables are required beyond the API credentials.
Troubleshooting
Common issues:
- Invalid phone number format: Ensure the phone number includes the country code and contains only digits.
- Missing required fields: The "Phone" property is mandatory; omitting it will cause errors.
- API authentication errors: Make sure the
plugChatApicredential is correctly set up in n8n. - Delay not working: The "Delay" property should be a valid number (in seconds).
Error messages:
"Invalid phone number format": Check that the phone number is correct and formatted properly."Missing required parameter": Ensure all required properties are filled."Authentication failed": Verify your API key/credentials.
