Plug Chat icon

Plug Chat

Create and edit data in PlugChat

Overview

The Plug Chat node for n8n enables sending WhatsApp messages through the PlugChat API. Specifically, with the Message resource and Send Text operation, this node allows you to send plain text messages to specified phone numbers via WhatsApp. This is useful for automating notifications, alerts, reminders, or any communication that needs to be sent directly to users' WhatsApp accounts.

Practical examples:

  • Sending appointment reminders to clients.
  • Notifying customers about order status updates.
  • Broadcasting promotional messages to a list of subscribers.

Properties

Name Type Meaning
Phone String Phone number with country code. The recipient of the WhatsApp message.
Message String Message to send. The content of the WhatsApp text message.
Message ID String Message ID to reply to. If provided, the message will be sent as a reply.
Delay Number Delay in seconds before sending the message.

Output

The node returns a JSON object containing the response from the PlugChat API after attempting to send the WhatsApp message. The structure typically includes:

  • Status of the message (e.g., success/failure)
  • Any error messages if the request failed
  • Additional metadata returned by the API

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": "abc123",
  "to": "5511999999999",
  "message": "Hello, world!"
}

Or, on error:

{
  "error": "Invalid phone number format"
}

Dependencies

  • External Service: Requires access to the PlugChat API.
  • API Key/Credentials: You must configure the plugChatApi credential in n8n.
  • Environment: No special environment variables are required beyond the credential setup.

Troubleshooting

Common issues:

  • Invalid phone number format: Ensure the phone number includes the country code and contains only digits.
  • Missing credentials: Make sure the plugChatApi credential is set up correctly in n8n.
  • API errors: If the PlugChat API returns an error, it will appear in the output under the error field.

Error messages and resolutions:

  • "Invalid phone number format": Check that the phone number is correct and formatted properly.
  • "Authentication failed": Verify your API credentials.
  • "Message to send is empty": Ensure the Message property is filled in.

Links and References

Discussion