Actions50
- Account Actions
- Call Actions
- Chat Actions
- Contact Actions
- Group Actions
- Instance Actions
- Media Actions
- Message Actions
- Session Actions
- User Actions
Overview
This node enables interaction with the WSAPI WhatsApp API, specifically allowing users to create WhatsApp groups programmatically. It is useful for automating group management tasks such as setting up project team chats, customer support groups, or event coordination groups on WhatsApp.
Practical examples include:
- Automatically creating a new WhatsApp group when a new project starts and adding relevant participants.
- Setting up customer support groups based on incoming requests.
- Organizing event-specific groups by dynamically adding participant phone numbers.
Properties
| Name | Meaning |
|---|---|
| Group Name | The name of the WhatsApp group to be created. This name will be visible to all group members. |
| Participants | (Only shown for updateParticipants operation) A collection where you specify phone numbers of participants as a comma-separated string, including country codes (e.g., "1234567890,0987654321"). |
Note: For the Create Group operation, only the Group Name property is required and used.
Output
The node outputs JSON data representing the result of the group creation operation. This typically includes details about the newly created WhatsApp group such as its unique identifier, name, and possibly metadata about the group creation status.
If the operation involves binary data (not applicable here), it would represent media or files related to the group, but this operation focuses on JSON output only.
Dependencies
- Requires an API key credential for authenticating with the WSAPI WhatsApp API.
- The base URL for the WSAPI must be configured in the node credentials.
- Internet access to the WSAPI endpoint is necessary.
Troubleshooting
Common issues:
- Invalid or missing API credentials will cause authentication failures.
- Incorrectly formatted phone numbers in the participants list may lead to errors or failure to add participants.
- Network connectivity problems can prevent successful API calls.
Error messages:
"The resource "groups" is not known!"— indicates an invalid resource selection; ensure "Group" resource is selected."The operation "create" is not implemented yet!"— suggests a misconfiguration or outdated node version; verify node updates.- API errors returned from WSAPI (e.g., invalid group name, duplicate group) should be checked against WSAPI documentation.
Links and References
- WSAPI WhatsApp API Documentation (replace with actual URL)
- WhatsApp Group Management Best Practices
- n8n Documentation on Creating Custom Nodes