Actions15
Overview
This node integrates with the DinastiAPI API to manage WhatsApp groups. It supports a variety of group-related operations such as creating groups, retrieving group information, managing invite links, joining or leaving groups, updating group settings (name, description, photo, announcement mode, ephemeral messages, locked status), and managing participants.
The "Get Invite Link" operation specifically retrieves the invite link for a given WhatsApp group. It can also optionally reset the invite link, revoking the old one and generating a new link.
Practical examples:
- Automatically fetch the current invite link of a WhatsApp group to share it via other communication channels.
- Reset the invite link when you want to invalidate the previous link for security reasons and generate a fresh one.
- Use this node in workflows that automate group management tasks for community or customer support groups on WhatsApp.
Properties
| Name | Meaning |
|---|---|
| Group JID | The unique identifier (JID) of the WhatsApp group, e.g., 120363312246943103@g.us. |
| Reset Link | Boolean option to revoke the old invite link and generate a new one (true or false). |
Output
The node outputs JSON data containing the response from the DinastiAPI API related to the requested operation. For the "Get Invite Link" operation, the output JSON typically includes the current invite link URL and possibly metadata about the link.
Example output structure (simplified):
{
"inviteLink": "https://chat.whatsapp.com/ExampleInviteCode",
"groupJid": "120363312246943103@g.us",
"reset": false
}
No binary data is output by this operation.
Dependencies
- Requires an active connection to the DinastiAPI API with valid API credentials configured in n8n.
- The node uses HTTP requests to communicate with the DinastiAPI endpoints.
- Proper network access to the DinastiAPI service is necessary.
Troubleshooting
- Invalid Group JID: If the provided group JID is incorrect or the bot/user does not have access to the group, the API may return an error. Verify the group JID format and permissions.
- Permission Errors: The API key used must have sufficient rights to retrieve or reset invite links. Check API key scopes and validity.
- Reset Link Failures: When resetting the invite link, ensure no conflicting operations are running simultaneously on the same group.
- Network Issues: Connectivity problems to the DinastiAPI endpoint will cause request failures. Confirm network stability and API availability.
- Missing Required Parameters: The "Group JID" property is mandatory; omitting it will cause errors.
Common error message example:
"error": "Group JID is required"— Ensure the Group JID field is filled correctly."error": "Unauthorized"— Check API credentials and permissions.
Links and References
- DinastiAPI Official Documentation (for detailed API usage)
- WhatsApp Group Invite Links: https://faq.whatsapp.com/general/chats/about-group-invite-links/
- n8n Documentation: https://docs.n8n.io/integrations/creating-nodes/