Actions14
Overview
This node integrates with the Wuzapi API to manage WhatsApp groups. It supports various 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), 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. This is useful when you want to share a group invite link securely or invalidate previously shared links.
Practical examples:
- Automatically fetch the current invite link of a WhatsApp group to share it via other communication channels.
- Reset the invite link periodically for security reasons and distribute the new link to trusted users.
- Use in workflows that automate group management tasks, such as onboarding new members by sending them an invite link.
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 Wuzapi API related to the invite link request. Typically, this includes the invite link URL and possibly metadata about its status.
Example output structure:
{
"inviteLink": "https://chat.whatsapp.com/ExampleInviteCode",
"code": "ExampleInviteCode",
"groupJid": "120363312246943103@g.us",
"reset": false
}
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the Wuzapi API service.
- Needs an API key credential configured in n8n for authenticating requests to Wuzapi.
- The node uses internal helper functions to validate phone numbers and prepare media data (not relevant for this operation).
Troubleshooting
Error: Missing or invalid Group JID
Ensure the Group JID is correctly provided and formatted as a valid WhatsApp group identifier.Error: API authentication failed
Verify that the API key credential is correctly set up and has the necessary permissions.Error: Binary property not found (not applicable for this operation but common in photo upload)
If using other operations involving images, ensure the specified binary property exists in the input data.Network or API errors
Check network connectivity and Wuzapi service status. Retry or handle failures gracefully using the node's "Continue On Fail" option.
Links and References
- Wuzapi Official Documentation (for detailed API endpoints and parameters)
- WhatsApp Group Invite Links: https://faq.whatsapp.com/general/chats/about-group-invite-links/