SmClick icon

SmClick

Consume SM Click API

Overview

This node integrates with the SM Click API to send various types of WhatsApp messages and manage contacts. Specifically, the "Send Audio" operation allows users to send an audio message (voice note) to a specified phone number via WhatsApp by providing a URL to an MP3 or MPEG audio file.

Common scenarios for this node include:

  • Sending voice notifications or alerts to customers.
  • Delivering audio content such as podcasts, announcements, or greetings.
  • Automating customer support responses using prerecorded audio clips.

Example: A business can automatically send a voice reminder about an appointment to a client by specifying their phone number and a URL to the audio reminder file.

Properties

Name Meaning
Phone Number The recipient's phone number in international format (e.g., +1234567890).
Audio URL The URL pointing to the audio file to be sent. Must be in MP3 or MPEG format.
Instance ID Identifier of the SM Click instance used to send the message.

Output

The node outputs a JSON array where each element corresponds to one input item processed. Each output object includes:

  • success: Boolean indicating if the operation was successful.
  • operation: The performed operation name ("sendAudio" in this case).
  • Additional data returned from the SM Click API response, which may include message IDs or status information.

No binary data is output by this node; it only returns JSON metadata about the sent message.

Dependencies

  • Requires an active SM Click API account with valid credentials (API key and API URL).
  • The node expects these credentials to be configured in n8n under a generic API authentication token.
  • Internet access is needed to reach the provided audio URL and the SM Click API endpoints.

Troubleshooting

  • Common issues:

    • Invalid or unreachable audio URL: Ensure the URL is publicly accessible and points to a valid MP3/MPEG file.
    • Incorrect phone number format: Use the international format including country code without spaces or special characters.
    • Missing or invalid API credentials: Verify that the API key and URL are correctly set up in n8n credentials.
    • Network connectivity problems: Confirm that n8n server can access both the SM Click API and the audio URL.
  • Error messages:

    • SM Click API error: <message>: Indicates an error response from the SM Click API. The message usually describes the issue, such as authentication failure or invalid parameters.
    • Operation sendAudio not supported: This should not occur if the operation is selected properly; otherwise, check the node configuration.

To resolve errors, verify all inputs, credentials, and network accessibility.

Links and References

Discussion