Actions3
- Message Actions
- Phone Number Actions
Overview
This node sends a message to a WhatsApp group using the 2Chat service. It is useful for automating communication within WhatsApp groups, such as sending announcements, updates, or media files to group members. For example, a business can use this node to broadcast promotional messages or important notifications to a customer support group on WhatsApp.
Use Case Examples
- Sending a text message to a WhatsApp group to notify members about a meeting.
- Sending a media file URL to a WhatsApp group for sharing promotional content.
- Sending a location pin to a WhatsApp group to share a meeting point.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number Name or ID | The WhatsApp number connected to 2Chat from which the message will be sent. This can be selected from a list or specified using an expression. |
| WhatsApp Group Name or ID | The target WhatsApp group name or ID to which the message will be sent. This can be selected from a list or specified using an expression. |
| Message Text | The content of the message to send. Either this or a pin location must be provided. |
| URL | Optional URL of a media file to attach to the message. |
| Pin Location | Optional location pin details to attach to the message, including address, latitude, longitude, name, and URL. |
Output
JSON
messageId- The unique identifier of the sent message.status- The status of the message sending operation (e.g., sent, failed).timestamp- The timestamp when the message was sent.
Dependencies
- Requires connection to the 2Chat API service with appropriate authentication credentials.
Troubleshooting
- Ensure the WhatsApp number is correctly connected and authorized in 2Chat.
- Verify the WhatsApp group ID or name is valid and accessible by the connected WhatsApp number.
- If sending media, ensure the URL is accessible and points to a supported media file.
- If sending a location pin, ensure latitude and longitude are correctly formatted and valid.
Links
- n8n Expressions Documentation - Documentation on how to use expressions to specify dynamic values for properties.