SparkBot icon

SparkBot

Interact with SparkBot WhatsApp API

Actions148

Overview

This node enables managing WhatsApp chat contacts specifically by blocking selected contacts associated with a given WhatsApp number. It is useful in scenarios where you want to prevent certain phone numbers from interacting with your WhatsApp business account, for example, to block spam or unwanted users.

A practical example would be a customer support system that automatically blocks contacts who repeatedly send abusive messages or violate terms of service.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) from which you want to block contacts.
Contact Phone Numbers One or more phone numbers (1 to 50) in international E164 format to be blocked from contacting.

Output

The node outputs JSON data representing the result of the block contacts operation. This typically includes confirmation of which contacts were successfully blocked or any error information if the operation failed.

No binary data output is involved.

Dependencies

  • Requires an API key credential for authenticating with the SparkBot WhatsApp API.
  • The node depends on the external SparkBot WhatsApp API service to perform contact blocking.
  • Proper configuration of the WhatsApp number (device) and valid phone numbers in E164 format are necessary.

Troubleshooting

  • Invalid Phone Number Format: Ensure all contact phone numbers are in correct E164 format (e.g., +1234567890). Incorrect formatting will cause errors.
  • API Authentication Errors: Verify that the API key credential is correctly set up and has sufficient permissions.
  • Device Not Found: The specified WhatsApp number (device) must exist and be active; otherwise, the operation will fail.
  • Exceeding Contact Limits: The node supports blocking up to 50 contacts at once. Sending more than this limit may cause errors.
  • Network Issues: Connectivity problems with the SparkBot API can cause timeouts or failures.

Links and References

Discussion