SparkBot icon

SparkBot

Interact with SparkBot WhatsApp API

Actions148

Overview

The "Approve Members" operation under the "Groups" resource allows users to approve pending members in a WhatsApp group managed via the SparkBot WhatsApp API. This node is useful for automating group membership management, especially in scenarios where group admins want to programmatically approve multiple pending join requests without manual intervention.

Practical examples include:

  • Automatically approving all pending members when certain criteria are met.
  • Approving specific phone numbers that requested to join a group.
  • Integrating group member approval into broader workflows such as onboarding or customer engagement automation.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) from which the group is managed and approvals made.
Group ID The unique identifier of the WhatsApp group where members are to be approved.
Approve All Boolean flag indicating whether to approve all pending members in the group at once.
Phone Numbers List of specific phone numbers to approve as group members (used if not approving all).

Output

The node outputs JSON data representing the result of the approval operation. This typically includes confirmation details about the approved members or any relevant status messages returned by the SparkBot API.

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 authenticating requests.
  • The node depends on dynamic loading of WhatsApp devices and groups to populate options for "WhatsApp Number" and "Group ID" properties.

Troubleshooting

  • Common issues:

    • Invalid or missing WhatsApp number/device ID can cause failures in identifying the correct source for group operations.
    • Incorrect or expired API credentials will prevent successful communication with the SparkBot API.
    • Providing phone numbers in an incorrect format may lead to rejection or errors.
    • Attempting to approve members in a non-existent or inaccessible group will fail.
  • Error messages:

    • Errors related to authorization usually indicate problems with the API key; verify and update credentials.
    • "Group not found" or similar errors suggest invalid group IDs; ensure the group exists and the device has access.
    • Validation errors on phone numbers require checking the formatting and ensuring they include country codes.

Links and References

Discussion