WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Groups → Update Participants

AI-generated

Overview

This node integrates with the WaliChat WhatsApp API to manage WhatsApp groups, specifically allowing you to update participants within a group. It is useful in scenarios where you need to programmatically modify group membership or participant roles, such as adding new members, removing existing ones, or changing participant permissions (e.g., making someone an admin).

Practical examples include:

  • Adding multiple users to a WhatsApp group for team communication.
  • Updating participant roles to assign or revoke admin privileges.
  • Automating group membership management based on external triggers or workflows.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) from which the group operation will be performed.
Group ID The unique identifier of the WhatsApp group to update participants in (e.g., 447362053576-1500000000@g.us).
Participants A collection of participants to add or update in the group. Each participant includes:
- Phone Number: The participant's phone number in international format (e.g., +1234567890).
- Make Admin: Boolean flag indicating whether the participant should be assigned admin privileges.

Output

The node outputs JSON data representing the result of the update participants operation. This typically includes confirmation of the updated participants and their roles within the specified WhatsApp group.

If the operation involves binary data (not indicated here), it would represent media or files related to the group participants, but this node focuses on JSON output only.

Dependencies

  • Requires an active connection to the WaliChat WhatsApp API.
  • Needs an API key credential configured in n8n for authentication with the WaliChat service.
  • The node depends on dynamic loading of options for WhatsApp numbers and groups, which requires proper API access and permissions.

Troubleshooting

  • Common Issues:

    • Invalid or missing WhatsApp number/device ID can cause failures in identifying the source device.
    • Incorrect or non-existent Group ID will result in errors when attempting to update participants.
    • Phone numbers not formatted in international format may be rejected by the API.
    • Insufficient permissions to modify group participants (e.g., not an admin in the group) can cause authorization errors.
  • Error Messages:

    • "Invalid group ID": Verify that the Group ID is correct and exists.
    • "Unauthorized" or "Permission denied": Ensure the API key has sufficient rights and the WhatsApp number is authorized to perform group modifications.
    • "Participant phone number invalid": Check that all phone numbers are in the correct international format.
  • Resolution Tips:

    • Double-check input parameters for correctness.
    • Confirm API credentials and permissions.
    • Use the "Load Options" feature to select valid WhatsApp numbers and groups to avoid manual entry errors.

Links and References

Discussion