SparkBot icon

SparkBot

Interact with SparkBot WhatsApp API

Actions148

Overview

This node interacts with the SparkBot WhatsApp API to retrieve details about chat files associated with a specific WhatsApp number. The "Get File Details" operation under the "Chat Files" resource allows users to fetch metadata or information about a particular file that has been sent or received via WhatsApp on the specified device.

Common scenarios where this node is beneficial include:

  • Retrieving detailed information about media files (images, videos, documents) shared in WhatsApp chats for auditing or processing.
  • Integrating WhatsApp file metadata into other systems such as CRMs or document management platforms.
  • Automating workflows that require validation or logging of WhatsApp file exchanges.

Practical example:

  • A user wants to automatically log all images received on a WhatsApp business number into a database. Using this node, they can get the file details by specifying the WhatsApp number and the file ID, then extract relevant metadata for storage.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number/device from which to retrieve the file details.
File ID The unique identifier of the file whose details are to be fetched.

Output

The node outputs a JSON object containing the details of the requested file. This typically includes metadata such as file name, size, type, timestamp, and possibly URLs or references to download the file content.

If the node supports binary data output (not explicitly shown here), it would represent the actual file content or a downloadable stream related to the file.

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 correspond to a valid registered device within the SparkBot system.
  • Proper permissions and API access rights to query file details are necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing WhatsApp Number or File ID parameters will cause errors.
    • Network connectivity problems or incorrect API credentials may result in authentication failures.
    • Requesting details for a non-existent or deleted file will likely return an error or empty response.
  • Error messages and resolutions:

    • "Invalid WhatsApp Number": Verify the device ID is correct and registered.
    • "File not found": Confirm the File ID exists and belongs to the specified WhatsApp number.
    • "Authentication failed": Check that the API key credential is correctly set up and has required permissions.
    • "Network error": Ensure stable internet connection and that the SparkBot API endpoint is reachable.

Links and References

Discussion