Actions15
Overview
This node allows managing WhatsApp groups through the DinastiAPI API. It supports a variety of group-related operations such as creating groups, retrieving group information, managing participants, changing group settings, and leaving groups.
The "Leave" operation specifically enables a user or bot to leave a specified WhatsApp group by providing the group's JID (Jabber ID). This is useful in scenarios where automated workflows need to exit groups after completing certain tasks or when cleaning up group memberships programmatically.
Practical example:
- Automatically leave a WhatsApp group after sending a notification or completing a campaign.
- Manage group memberships dynamically by joining and leaving groups based on workflow conditions.
Properties
| Name | Meaning |
|---|---|
| Group JID | The unique identifier (JID) of the WhatsApp group to leave, e.g., 120363312246943103@g.us. Required for the Leave operation. |
Output
The output is a JSON object representing the response from the DinastiAPI API after attempting to leave the group. It typically contains status information about the leave action, such as success confirmation or error details.
No binary data is output by this operation.
Dependencies
- Requires an active connection to the DinastiAPI API with valid API authentication credentials configured in n8n.
- The node depends on the external DinastiAPI service to perform WhatsApp group management actions.
- Proper network access to the DinastiAPI endpoints is necessary.
Troubleshooting
Common issues:
- Invalid or missing Group JID: Ensure the Group JID is correctly provided and corresponds to an existing WhatsApp group.
- Authentication errors: Verify that the API key or authentication token for DinastiAPI is correctly set up in n8n credentials.
- Network connectivity problems: Confirm that n8n can reach the DinastiAPI servers without firewall or proxy issues.
Error messages:
"Binary property ... not found"— Not applicable for the Leave operation but may appear in other operations involving images.- API error responses indicating invalid group JID or insufficient permissions usually come directly from DinastiAPI; check the message for guidance.
To resolve errors, double-check input parameters, ensure credentials are valid, and consult DinastiAPI documentation for specific error codes.
Links and References
- DinastiAPI Official Documentation (for detailed API usage and error codes)
- WhatsApp Group Management Concepts: https://faq.whatsapp.com/general/chats/how-to-create-a-group/