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 "Remove Participants" operation under the "Groups" resource allows users to remove one or more participants from a specified WhatsApp group. This is useful for managing group membership dynamically, such as moderating group members, removing inactive users, or cleaning up groups.
Practical examples include:
- Removing users who have left an organization from internal WhatsApp groups.
- Moderating community groups by removing participants who violate rules.
- Automating group membership management in customer support or sales teams.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) used to perform the operation. |
| Group ID | The unique identifier of the WhatsApp group from which participants will be removed. |
| Phone Numbers | One or more phone numbers (in international format, e.g., +1234567890) representing participants to remove from the group. |
Output
The node outputs JSON data representing the result of the removal operation. Typically, this includes confirmation of the participants removed or any relevant status information returned by the SparkBot API.
If the operation involves binary data (not indicated here), it would represent files or media related to the group or participants, but this operation focuses on participant removal and thus outputs JSON only.
Dependencies
- Requires an active connection to the SparkBot WhatsApp API.
- Needs an API key credential configured in n8n for authentication with the SparkBot service.
- The node depends on dynamic loading of options for WhatsApp numbers ("devices") and groups, which requires proper API access and permissions.
Troubleshooting
Common Issues:
- Invalid or missing WhatsApp number (device) ID can cause failures.
- Incorrect or non-existent Group ID will prevent participant removal.
- Phone numbers not formatted correctly (e.g., missing country code) may lead to errors.
- Insufficient permissions or expired API keys can block the operation.
Error Messages:
- Errors indicating "Group not found" suggest the Group ID is incorrect or the device does not have access to that group.
- "Participant not in group" means one or more phone numbers are not members of the specified group.
- Authentication errors indicate issues with the API key credential setup.
Resolutions:
- Verify the WhatsApp number and group IDs using the node's option loaders before running the operation.
- Ensure phone numbers are in the correct international format.
- Check API key validity and permissions.
- Use the node's "continue on fail" option to handle partial failures gracefully.
Links and References
- SparkBot WhatsApp API Documentation (example placeholder link)
- WhatsApp Group Management Best Practices
- n8n Documentation on Creating Custom Nodes