Actions148
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Files 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
Groups → Leave Group
AI-generatedOverview
This node allows users to interact with WhatsApp groups via the SparkBot WhatsApp API. Specifically, the "Leave Group" operation under the "Groups" resource enables a WhatsApp number (device) to leave a specified group. This is useful for automating group management tasks such as removing a bot or user from a group when certain conditions are met.
Practical examples:
- Automatically leaving a group after completing a campaign or event.
- Removing a WhatsApp number from inactive or irrelevant groups to keep the chat list clean.
- Managing group memberships programmatically in workflows that involve multiple WhatsApp numbers.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) that will leave the group. |
| Group ID to Leave | The ID of the group that the WhatsApp number should leave. |
| Remove from Chat List | Boolean option indicating whether to remove the group from the chat list after leaving it. |
Output
The node outputs JSON data representing the result of the leave group operation. This typically includes confirmation details about the action performed, such as success status or any returned metadata from the API.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for authenticating with the SparkBot WhatsApp API.
- The node depends on the SparkBot API endpoints related to group management.
- Proper configuration of WhatsApp numbers (devices) and groups within the SparkBot system is necessary.
- The node uses dynamic loading methods to fetch available devices and groups for selection.
Troubleshooting
Common issues:
- Invalid or missing WhatsApp number ID or group ID can cause failures.
- Attempting to leave a group that the device is not a member of may result in errors.
- Network or authentication errors if the API key is invalid or expired.
Error messages:
- Errors returned by the API will be included in the output JSON if "Continue On Fail" is enabled.
- Typical error messages might include "Group not found," "Device not authorized," or "Failed to leave group."
Resolutions:
- Verify that the WhatsApp number and group IDs are correct and that the device is currently a member of the group.
- Ensure the API key credential is valid and has the necessary permissions.
- Check network connectivity and API endpoint availability.
Links and References
- SparkBot WhatsApp API Documentation (example placeholder link)
- n8n Documentation on Creating Custom Nodes
- WhatsApp Group Management Best Practices
If you need further details on other operations or resources, feel free to ask!