Actions148
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
Overview
The node integrates with the SparkBot WhatsApp API to perform various operations related to WhatsApp messaging and management. Specifically, for the Queue resource with the Get Queue Status operation, it retrieves the current status of the message queue associated with a specified WhatsApp number. This is useful for monitoring message flow, understanding backlog, or managing message dispatching in automated WhatsApp communication workflows.
Practical examples include:
- Checking if there are pending messages waiting to be sent on a particular WhatsApp number.
- Monitoring queue length to optimize message sending rates.
- Integrating queue status checks into larger automation flows to trigger alerts or adjust behavior based on queue load.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number whose message queue status you want to retrieve. Options are dynamically loaded from available WhatsApp numbers configured in the system. |
Output
The output is a JSON object representing the status of the message queue for the selected WhatsApp number. It typically includes details such as the number of messages currently queued, their states, and possibly timestamps or identifiers relevant to the queue.
If the node supports binary data output (not indicated here), it would represent any files or media related to the queue status, but this operation primarily returns JSON data.
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.
- Dynamic loading of WhatsApp numbers requires that the system has WhatsApp numbers registered and accessible via the API.
Troubleshooting
Common issues:
- Invalid or missing WhatsApp number ID: Ensure the selected WhatsApp number exists and is correctly loaded.
- Authentication errors: Verify that the API key credential is valid and has necessary permissions.
- Network or API downtime: Check connectivity to the SparkBot API endpoint.
Error messages:
- Errors returned by the API will be surfaced in the node output if "Continue On Fail" is enabled.
- Typical error messages might include "Unauthorized", "Not Found", or "Invalid parameter".
Resolutions:
- Confirm credentials and permissions.
- Validate input parameters.
- Retry after network issues resolve.
Links and References
- SparkBot WhatsApp API Documentation (example placeholder link)
- n8n documentation on Creating Custom Nodes