Actions148
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
- 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
Overview
This node operation allows a user to leave a WhatsApp group associated with a specified WhatsApp number (device). It is useful in scenarios where automated workflows need to manage group memberships dynamically, such as removing a bot or user from groups when certain conditions are met, or cleaning up group memberships after campaigns or events.
For example, you might use this node to automatically leave a promotional group once a campaign ends, or to remove a support bot from a group chat after the issue is resolved.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) from which to leave the group. |
| Group ID to Leave | The ID of the WhatsApp group that the node should leave. |
| Remove from Chat List | Boolean option indicating whether to remove the group from the chat list after leaving it. |
Output
The output JSON contains the response from the API call that performs the "leave group" action. This typically includes confirmation details about the group left or status messages. The exact structure depends on the underlying API response but generally confirms success or failure of the leave operation.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the Wassenger WhatsApp API via an API key credential.
- The node depends on dynamic loading of available WhatsApp numbers ("devices") and groups for selection.
- Proper configuration of the API key credential in n8n is necessary for authentication.
Troubleshooting
Common issues:
- Invalid or expired API key leading to authentication errors.
- Specifying a group ID that does not exist or is not associated with the selected WhatsApp number.
- Network connectivity problems preventing API calls.
Error messages:
- Authentication failures: Check that the API key credential is correctly configured and valid.
- Group not found or access denied: Verify the group ID and ensure the WhatsApp number has membership in the group.
- General API errors: Review API limits and network status.
Resolving these usually involves verifying credentials, ensuring correct input parameters, and checking network connectivity.
Links and References
- Wassenger API Documentation (for detailed API behavior and responses)
- n8n documentation on creating custom nodes