Actions148
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Files Actions
- Team Actions
- Labels Actions
- Departments 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
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
Overview
This node enables users to join WhatsApp groups via the SparkBot WhatsApp API integration. It supports joining a group either by providing an invite code or an invite URL. This functionality is useful for automating group membership management, such as adding a WhatsApp number to specific groups for broadcasting messages, customer support, or community engagement.
Practical examples:
- Automatically joining a customer support group when onboarding a new WhatsApp number.
- Adding marketing numbers to promotional groups using invite URLs.
- Managing multiple WhatsApp devices and their group memberships programmatically.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) that will join the group. |
| Join Method | Method to join the group; options are: - Invite Code - Invite URL |
| Invite Code | The group invitation code used to join the group (required if Join Method is "Invite Code") |
| Invite URL | The full group invitation URL (e.g., https://chat.whatsapp.com/XXXXXXX) (required if Join Method is "Invite URL") |
Output
The node outputs JSON data representing the result of the join group operation. This typically includes confirmation details from the API about the success or failure of joining the group. The exact structure depends on the API response but generally confirms the group joined or provides error information.
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the SparkBot WhatsApp API.
- Needs an API key credential configured in n8n for authentication with the SparkBot service.
- The node relies on dynamically loaded WhatsApp device IDs ("WhatsApp Number") which must be available via the node's load options method.
Troubleshooting
Common issues:
- Providing an invalid or expired invite code or URL will cause the join operation to fail.
- Using a WhatsApp number/device ID that is not registered or authorized may result in authentication errors.
- Network connectivity problems can prevent successful API calls.
Error messages:
- Errors returned from the API usually include descriptive messages indicating why joining failed (e.g., "Invalid invite code", "Device not found").
- If the node throws an error related to missing parameters, ensure that the correct join method is selected and the corresponding invite code or URL is provided.
Resolutions:
- Verify the invite code or URL is current and valid.
- Confirm the WhatsApp number/device is correctly set up and authenticated.
- Check API key credentials and network access.
- Enable "Continue On Fail" in the node settings to handle errors gracefully during batch operations.
Links and References
- WhatsApp Group Invitation Links
- SparkBot WhatsApp API documentation (refer to your API providerโs official docs for detailed usage)