SparkBot icon

SparkBot

Interact with SparkBot WhatsApp API

Actions148

Overview

This node interacts with the SparkBot WhatsApp API to retrieve the status of a specific WhatsApp user by their status ID. It is useful in scenarios where you need to check or monitor the current status information of a WhatsApp user associated with a particular WhatsApp number managed via SparkBot.

Practical examples include:

  • Fetching a user's current WhatsApp status message or presence for customer support automation.
  • Monitoring user statuses to trigger workflows based on status changes.
  • Integrating WhatsApp user status data into CRM or analytics platforms.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) from which to fetch the user status. This is selected from available WhatsApp numbers linked to the account.
Status ID The unique identifier of the user status to retrieve. It must be a hexadecimal string of length 20-22 or 24 characters.

Output

The node outputs JSON data representing the details of the requested user status. This typically includes fields such as the status content, timestamp, and any metadata provided by the SparkBot API about that status entry.

If the node supports binary data output (not indicated here), it would represent media or files related to the user status, but this node primarily returns structured JSON data.

Dependencies

  • Requires an active connection to the SparkBot WhatsApp API.
  • Needs an API key credential configured in n8n for authenticating requests to the SparkBot service.
  • The node depends on internal methods grouped under user status operations within the bundled codebase.

Troubleshooting

  • Common issues:

    • Invalid or missing Status ID format: Ensure the Status ID is a valid hexadecimal string of the correct length.
    • Incorrect WhatsApp Number selection: Verify that the WhatsApp number (device) exists and is correctly linked.
    • Authentication errors: Confirm that the API key credential is properly set up and has sufficient permissions.
    • Network or API downtime: Check connectivity and SparkBot service status.
  • Error messages:

    • Errors related to "status not found" indicate the Status ID does not exist or is inaccessible.
    • Authentication failures will prompt errors about invalid credentials.
    • Input validation errors if required parameters are missing or malformed.

Resolving these usually involves verifying input parameters, checking credential configuration, and ensuring the SparkBot API is operational.

Links and References

Discussion