SparkBot icon

SparkBot

Interact with SparkBot WhatsApp API

Actions148

Overview

This node interacts with the SparkBot WhatsApp API to retrieve quick replies associated with a specified WhatsApp number. Quick replies are predefined message templates that can be used to respond rapidly in WhatsApp conversations, improving efficiency and consistency in communication.

Typical use cases include:

  • Customer support teams fetching available quick replies to automate or assist in responding to common queries.
  • Marketing or sales teams retrieving quick reply templates filtered by scope or permissions to ensure appropriate messaging.
  • Managing and displaying quick replies dynamically within workflows based on agent or permission filters.

For example, a user might configure this node to get all public quick replies synced with their WhatsApp Business account or fetch private quick replies created by specific agents for targeted responses.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number from which to retrieve quick replies. This identifies the device/account context for the query.
Filters A collection of optional filters to narrow down the quick replies returned:
- Scope Filter quick replies by definition scope. Options:
β€’ WhatsApp Business Synced
β€’ Chat Created
- Permissions Filter quick replies by permission level. Multiple selections allowed. Options:
β€’ Public
β€’ Read-only
β€’ Private
- Agents Filter quick replies created by specific agent IDs. Accepts multiple values.
- Results Page Size Maximum number of results per page (pagination). Default is 20.
- Page Number Page number to retrieve, starting from 0 (pagination). Default is 0.

Output

The node outputs an array of JSON objects representing the quick replies matching the specified filters. Each object contains details about a quick reply such as its content, scope, permissions, creator (agent), and other metadata as provided by the SparkBot API.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the SparkBot WhatsApp API via an API key credential configured in n8n.
  • The node depends on the SparkBot service being accessible and the WhatsApp number/device ID being valid and authorized.
  • Pagination parameters allow handling large result sets efficiently.

Troubleshooting

  • Common issues:

    • Invalid or missing WhatsApp number/device ID will cause the API call to fail.
    • Incorrect or insufficient API credentials may lead to authentication errors.
    • Using filters with invalid values (e.g., unknown agent IDs) might return empty results or errors.
    • Pagination parameters out of range could result in no data returned.
  • Error messages:

    • Authentication failures: Check that the API key credential is correctly set up and has necessary permissions.
    • Resource not found or invalid device ID: Verify the WhatsApp number ID is correct and linked to your SparkBot account.
    • API rate limits or connectivity issues: Ensure network access and consider retrying after some time.

Links and References

Discussion