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
Groups → Leave Group
AI-generatedOverview
This node allows users to interact with WhatsApp groups via the WaliChat API, specifically enabling the action of leaving a group. It is useful in scenarios where an automated workflow needs to manage group memberships, such as removing a WhatsApp number from a group when certain conditions are met (e.g., user unsubscribes, campaign ends, or group cleanup). For example, a business could automatically remove a support agent's WhatsApp number from a customer group once the issue is resolved.
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 WhatsApp group to leave. |
| Remove from Chat List | Boolean option indicating whether to remove the group from the chat list after leaving. |
Output
The node outputs JSON data representing the result of the leave group operation. This typically includes confirmation details about the group left or any relevant status messages returned by the API. There is no binary data output for this operation.
Dependencies
- Requires an API key credential for authenticating with the WaliChat WhatsApp API.
- The node depends on dynamic loading of available WhatsApp numbers ("devices") and groups associated with those devices.
- Proper configuration of the WaliChat API credentials within n8n is necessary.
Troubleshooting
Common Issues:
- Invalid or expired API key may cause authentication failures.
- Selecting a WhatsApp number that is not linked or active can lead to errors.
- Attempting to leave a group that the WhatsApp number is not a member of may result in failure.
Error Messages:
- Errors related to "group not found" or "not a member of the group" indicate incorrect group ID or device selection.
- Authentication errors suggest checking the API key credential setup.
Resolutions:
- Verify the API key and re-authenticate if needed.
- Use the node’s dropdowns to select valid WhatsApp numbers and groups to avoid invalid IDs.
- Ensure the WhatsApp number is currently a member of the group before attempting to leave.
Links and References
- WaliChat API Documentation (general reference for API capabilities)
- n8n Documentation on Creating Custom Nodes