SparkBot icon

SparkBot

Interact with SparkBot WhatsApp API

Actions148

Overview

This node interacts with the SparkBot WhatsApp API to retrieve detailed information about a specific WhatsApp number by its ID. It is useful in scenarios where you need to fetch configuration or status details of a WhatsApp number managed within the SparkBot system, such as for monitoring, auditing, or integrating WhatsApp number data into workflows.

For example, you might use this node to:

  • Retrieve a WhatsApp number's profile and session details.
  • Include additional related data like agents assigned to the number, catalog items, or quick replies configured.
  • Exclude certain information such as session or profile data to reduce payload size.

Properties

Name Meaning
WhatsApp Number ID The unique identifier of the WhatsApp number to retrieve.
Include Options Collection of options to customize the response:
  Include Select additional related information to include in the response. Options: Agents, Catalog, Quick Replies
  Exclude Select information to exclude from the response. Options: Session, Profile, Stats, Queue

Output

The node outputs a JSON object containing the details of the specified WhatsApp number. The structure includes core number information plus any optionally included or excluded sections based on the input properties:

  • Core number data (ID, status, etc.)
  • Optionally included arrays or objects for:
    • Agents assigned to the number
    • Business catalog linked to the number
    • Quick replies configured for the number
  • Optionally excluded sections such as session info, profile details, statistics, or queue data

No binary data output is indicated for this operation.

Dependencies

  • Requires an active connection to the SparkBot WhatsApp API via an API key credential.
  • The node depends on the SparkBot API service being accessible and properly authenticated.
  • No additional environment variables are explicitly required beyond the API key credential.

Troubleshooting

  • Common issues:

    • Invalid or missing WhatsApp Number ID will cause errors or empty responses.
    • Network or authentication failures with the SparkBot API can result in request errors.
    • Including or excluding incompatible options may lead to partial or unexpected data.
  • Error messages:

    • Errors returned from the API typically include descriptive messages indicating missing parameters or authorization failures.
    • If the node throws an error about loading devices, ensure the "WhatsApp Number ID" is valid and that the load options method is functioning correctly.
  • Resolutions:

    • Verify the WhatsApp Number ID exists and is correct.
    • Confirm API key credentials are valid and have sufficient permissions.
    • Adjust include/exclude options to compatible combinations.

Links and References

Discussion