SparkBot icon

SparkBot

Interact with SparkBot WhatsApp API

Actions148

Overview

This node interacts with the SparkBot WhatsApp API to manage message queue processing status for a specified WhatsApp number. Specifically, the "Set Queue Status" operation allows users to control how messages are handled in the queue β€” whether messages should be delivered, paused, rejected, or frozen.

Common scenarios where this node is beneficial include:

  • Temporarily pausing message delivery during maintenance or downtime without losing incoming messages.
  • Rejecting new messages while still delivering existing queued messages, useful when limiting load.
  • Freezing the queue to stop all message processing and reject new messages, for emergency stops.
  • Forcing immediate delivery of all queued messages for a limited time to catch up on backlog.

Practical example: A customer support team wants to pause message delivery during shift changes but still accept new messages to avoid losing any. They can set the queue status to "Pause" using this node.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number whose message queue status you want to control.
Status The desired queue processing status:
- Active: Deliver messages and accept new ones.
- Pause: Do not deliver messages but accept new ones.
- Reject: Deliver existing messages but reject new ones.
- Freeze: Do not deliver messages and reject new ones.
Force Delivery Boolean flag to force delivery of all queued messages immediately for 30 minutes. Only works if status is "Active" or "Reject".

Output

The node outputs JSON data representing the result of the queue status update operation. This typically includes confirmation details such as the updated status and any relevant metadata returned by the SparkBot API.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the SparkBot WhatsApp API.
  • The node depends on the SparkBot service being accessible and properly configured.
  • The "WhatsApp Number" must be valid and associated with the authenticated account.

Troubleshooting

  • Invalid WhatsApp Number: If the provided WhatsApp number ID is incorrect or not linked to your account, the API will likely return an error. Verify the number ID via the device list.
  • Unauthorized / Authentication Errors: Ensure that the API key credential is correctly set up and has sufficient permissions.
  • Unsupported Status with Force Delivery: The "Force Delivery" option only works when the status is set to "Active" or "Reject". Using it with "Pause" or "Freeze" may cause errors or be ignored.
  • Network Issues: Connectivity problems with the SparkBot API endpoint can cause failures. Check network access and retry.
  • API Rate Limits: Excessive requests might be throttled; handle errors gracefully and implement retries if needed.

Links and References

Discussion