Actions10
- Message Actions
- Webhook Actions
- Control Actions
Overview
The Quepasa (Whatsapp) node's "Control" resource with the "Get Invite Link" operation is designed to retrieve an invite link for a WhatsApp group or chat. This can be useful in scenarios where you need to programmatically obtain and share group invitation links, automate onboarding processes, or integrate WhatsApp group management into your workflows.
Practical examples:
- Automatically sending out group invite links to new users.
- Integrating WhatsApp group invitations into customer support or community management systems.
- Generating invite links as part of onboarding flows in CRM or marketing automation.
Properties
| Name | Type | Meaning |
|---|---|---|
| Authentication | options | Selects the authentication method: either manual parameters or predefined credentials. |
| BaseUrl | string | The base URL of the Quepasa API. Required if using parameter-based authentication. |
| Token | string | The token for the WhatsApp bot. Used to authenticate requests when not using credentials. |
| Chat ID | string | The identifier of the destination conversation, group, or E164 phone number. |
Output
The output will be a JSON object containing the invite link information for the specified WhatsApp group or chat. The exact structure may vary depending on the API response, but typically includes fields such as:
{
"inviteLink": "https://chat.whatsapp.com/XXXXXXXXXXXXXXX",
"chatId": "1234567890@g.us",
// ...other metadata as provided by the API
}
- If the node encounters an error and "Continue On Fail" is enabled, the output may include an
errorfield with the error message.
Dependencies
- External Service: Requires access to the Quepasa (WhatsApp) API.
- Authentication: Either via direct parameters (BaseUrl and Token) or predefined n8n credentials (
quepasaTokenAuthApi). - n8n Configuration: Ensure that the necessary credentials are set up in n8n if using predefined credentials.
Troubleshooting
Common Issues:
- Invalid Token or BaseUrl: If the token or base URL is incorrect, authentication will fail.
- Missing Chat ID: The operation requires a valid Chat ID; missing or invalid values will result in errors.
- API Connectivity: Network issues or incorrect API endpoints can cause failures.
Error Messages:
"Authentication failed": Check your token and base URL or credential configuration."Chat ID not found": Verify that the Chat ID is correct and that the bot has access to the group or chat."Request failed with status code XXX": Indicates an HTTP error from the API; check API documentation for details.
How to resolve:
- Double-check all input properties, especially authentication details and Chat ID.
- Ensure the bot has the necessary permissions in the target group or chat.
- Review API documentation for any additional requirements.