Actions148
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
Overview
This node interacts with the SparkBot WhatsApp API to manage WhatsApp groups. Specifically, the Get Pending Members operation under the Groups resource retrieves the list of members who have requested to join a specified WhatsApp group but are still pending approval. This is useful for administrators or moderators who want to review and manage membership requests before allowing users into the group.
Practical examples:
- A community manager wants to see all pending join requests to approve or reject them.
- An automated workflow that fetches pending members periodically to notify admins via another channel.
- Auditing group membership requests for compliance or moderation purposes.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) from which the group is managed. |
| Group ID | The unique identifier of the WhatsApp group whose pending members you want to retrieve. |
- WhatsApp Number options are dynamically loaded from available devices linked to the account.
- Group ID options depend on the selected WhatsApp Number and represent groups associated with that device.
Output
The output JSON contains the data returned by the SparkBot API for the pending members of the specified group. Typically, this includes an array of user objects representing each pending member, with details such as their WhatsApp ID, name, and possibly the timestamp of their join request.
If the node supports binary data output (not indicated here), it would typically relate to media files or attachments, but for this operation, the output is purely JSON-based member information.
Dependencies
- Requires an active connection to the SparkBot WhatsApp API.
- Needs an API key credential configured in n8n to authenticate requests.
- Dynamic loading of WhatsApp numbers and groups depends on the API endpoints provided by SparkBot.
- Proper permissions on the WhatsApp number to access group information.
Troubleshooting
Common issues:
- Invalid or expired API key leading to authentication errors.
- Selecting a WhatsApp number without any associated groups will result in no data or errors.
- Network connectivity problems causing timeouts or failed API calls.
- Insufficient permissions on the WhatsApp number to query group members.
Error messages:
"Authentication failed": Check that the API key credential is correctly set and valid."Group not found": Verify the Group ID is correct and belongs to the selected WhatsApp number."No pending members": The group currently has no pending join requests."Request timed out": Ensure network connectivity and API availability.
Resolving these usually involves verifying credentials, checking input parameters, and ensuring the SparkBot service is operational.
Links and References
- SparkBot WhatsApp API Documentation (generic link, replace with actual if available)
- n8n documentation on Creating Custom Nodes
- WhatsApp Business API official docs for understanding group management concepts: https://developers.facebook.com/docs/whatsapp/api/groups
Note: This summary is based solely on static analysis of the provided source code and property definitions. Runtime behavior may vary depending on API responses and environment configuration.