Actions50
- Message Actions
- Contact Actions
- Account Actions
- Call Actions
- Chat Actions
- Group Actions
- Instance Actions
- Media Actions
- Session Actions
- User Actions
Overview
This node interacts with the WSAPI WhatsApp API to manage WhatsApp groups. Specifically, the "Get Invite Requests" operation retrieves the list of users who have requested to join a specified WhatsApp group. This is useful for group administrators who want to review and manage pending join requests before approving or rejecting them.
Practical examples:
- Automatically fetching all pending invite requests to display in a dashboard.
- Triggering notifications when new users request to join a group.
- Integrating with other systems to automate approval workflows based on invite requests.
Properties
| Name | Meaning |
|---|---|
| Group ID | The unique identifier of the WhatsApp group, formatted as groupID@g.us (e.g., 120363123456789@g.us). This specifies which group's invite requests to retrieve. |
Output
The output is a JSON array containing the invite requests for the specified group. Each item in the array represents an individual invite request, typically including details such as the requester’s user ID, name, and possibly the timestamp of the request.
If the node supports binary data output (not indicated here), it would represent any media or files related to the invite requests, but this operation primarily returns JSON data about invite requests.
Dependencies
- Requires an active connection to the WSAPI WhatsApp API.
- Needs an API key credential configured in n8n to authenticate requests.
- The base URL for the WSAPI must be set in the credentials configuration.
Troubleshooting
Common issues:
- Invalid or missing Group ID format: Ensure the Group ID includes the suffix
@g.us. - Authentication errors: Verify that the API key credential is correctly configured and has necessary permissions.
- Network or connectivity problems: Check that the WSAPI endpoint is reachable from your n8n instance.
- Invalid or missing Group ID format: Ensure the Group ID includes the suffix
Error messages:
"The resource "groups" is not known!": Indicates the resource parameter was incorrect or unsupported."The operation "getInviteRequests" is not implemented yet!": Suggests the operation name might be misspelled or not available in the current version.- API errors returned from WSAPI will be passed through; check the error message for details like invalid group ID or permission denied.
Links and References
- WSAPI WhatsApp API Documentation (replace with actual URL)
- WhatsApp Group Management Concepts: https://faq.whatsapp.com/general/chats/about-groups
- n8n Documentation on Creating Custom Nodes: https://docs.n8n.io/integrations/creating-nodes/