Waapify icon

Waapify

Send WhatsApp messages via Waapify API

Overview

This node integrates with the Waapify API to manage WhatsApp contact groups, specifically allowing users to remove a contact from a specified contact group. It is useful in scenarios where you need to maintain or update WhatsApp contact groups dynamically, such as removing outdated or incorrect contacts from a group list.

For example, if you have an automated workflow that manages customer segments on WhatsApp, this node can be used to remove a phone number from a particular contact group when the customer unsubscribes or changes preferences.

Properties

Name Meaning
Contact Phone Phone number of the contact to remove from the group (with country code, no + sign).
Group ID Identifier of the contact group from which the contact will be removed.

Output

The node outputs JSON data representing the response from the Waapify API after attempting to remove the contact from the group. The structure typically includes status information about the operation's success or failure.

If the API call fails and "Continue On Fail" is enabled, the output JSON will contain an error object with fields:

  • error: Error message string.
  • statusCode: HTTP status code returned by the API.
  • timestamp: ISO timestamp of when the error occurred.

No binary data output is produced by this operation.

Dependencies

  • Requires an active Waapify API credential configured in n8n, including:

    • Base URL of the Waapify API.
    • Instance ID.
    • Access token for authentication.
  • The node makes HTTP POST requests to the Waapify API endpoint /api/contact_groups.php to perform the removal.

Troubleshooting

  • Common Issues:

    • Invalid or missing contact phone number or group ID parameters will cause the API request to fail.
    • Incorrect API credentials or expired access tokens will result in authentication errors.
    • Network connectivity issues may prevent successful communication with the Waapify API.
  • Error Messages:

    • Errors returned from the Waapify API are prefixed with Waapify API Error: followed by the specific message from the API.
    • HTTP status codes are included in error messages to help diagnose issues (e.g., 401 Unauthorized, 404 Not Found).
  • Resolution Tips:

    • Verify that the contact phone number is correctly formatted without the "+" sign and includes the country code.
    • Ensure the group ID corresponds to an existing contact group in your Waapify instance.
    • Check that the API credentials are valid and have not expired.
    • Enable "Continue On Fail" in the node settings to handle errors gracefully within workflows.

Links and References

Discussion