Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Group → Remove Participant

AI-generated

Overview

This node enables interaction with WhatsApp groups via the Wappfy API, specifically allowing you to remove a participant from a group. It is useful in scenarios where you need to manage group membership programmatically, such as moderating group participants or automating group maintenance tasks.

For example, if a user leaves an organization or should no longer be part of a WhatsApp group, this node can be used to remove their phone number or ID from the group automatically.

Properties

Name Meaning
Group ID The unique identifier of the WhatsApp group from which a participant will be removed.
Participant ID The phone number or WhatsApp ID of the participant to remove from the group.

Output

The output is a JSON object representing the response from the Wappfy API after attempting to remove the participant. This typically includes confirmation of the removal or details about any error encountered.

No binary data is output by this operation.

Example output structure:

{
  "success": true,
  "message": "Participant removed successfully",
  "groupId": "123456789@g.us",
  "participantId": "987654321@c.us"
}

(Note: Actual response fields depend on the API's response.)

Dependencies

  • Requires an active Wappfy API credential with a valid API key and instance name configured in n8n.
  • The node makes HTTP requests to the Wappfy API base URL using these credentials.
  • Proper permissions on the WhatsApp group are necessary to remove participants.

Troubleshooting

  • Common issues:

    • Invalid or missing Group ID or Participant ID will cause the API call to fail.
    • Insufficient permissions for the API user to remove participants from the group.
    • Network or authentication errors due to incorrect API key or instance configuration.
  • Error messages:

    • "Participant not found": The specified participant ID does not exist in the group.
    • "Unauthorized" or "Invalid API key": Check that your API credentials are correct and have the required permissions.
    • "Group not found": Verify the Group ID is correct and the group exists.
  • Resolution tips:

    • Double-check input parameters for correctness.
    • Ensure the API key and instance name are properly set up in n8n credentials.
    • Confirm that the API user has admin rights or appropriate permissions in the WhatsApp group.

Links and References

Discussion