WasenderAPI icon

WasenderAPI

Manage WasenderAPI sessions, messages, contacts, and groups

Message → Send Audio

AI-generated

Overview

This node operation sends an audio message via the WasenderAPI. It allows users to specify the recipient, audio URL, optional text, and message options such as replying to a specific message or marking the message as view once. It is useful for automating the sending of audio content in WhatsApp messages, for example, sending voice notes, audio announcements, or music clips to individual contacts or groups.

Use Case Examples

  1. Sending an audio message to a phone number or group JID with a specified audio URL.
  2. Including optional text along with the audio message.
  3. Using message options to reply to a specific message ID or mention participants in a group.

Properties

Name Meaning
Session Select or specify the WhatsApp session to use for sending the message. This can be selected from a list or by ID, or automatically from the incoming item.
Recipient The phone number, group JID, or channel JID to which the audio message will be sent. Required.
Text Optional text message to accompany the audio message.
Audio URL The URL of the audio file to send. Must be a valid URL pointing to an audio file. Required.
View Once If enabled, the audio message will be sent as a view-once message, meaning it can only be viewed once by the recipient.
Message Options Additional options for the message, such as replying to a specific message ID.
Mentions List of participants to mention in group messages.
Options Request options for retrying failed API requests and maximum retry attempts.

Output

Binary

The node can output binary data representing the audio message or related media files.

JSON

  • to - The recipient identifier (phone number, group JID, or channel JID).
  • text - Optional text content sent with the audio message.
  • audioUrl - The URL of the audio file sent.
  • viewOnce - Boolean indicating if the message is sent as view once.
  • replyTo - Message ID this audio message is replying to, if any.
  • mentions - List of participant JIDs mentioned in the message.
  • messageId - The ID of the sent message returned by the API.
  • status - Status of the message sending operation.

Dependencies

  • WasenderAPI service
  • An API key credential for WasenderAPI authentication

Troubleshooting

  • Ensure the session ID is correctly specified or available in the incoming data; otherwise, the node will throw a 'Session is required' error.
  • The 'Audio URL' must be a valid URL pointing to an accessible audio file; invalid URLs will cause request failures.
  • If 'Reply To Message ID' is provided, it must be a positive integer; otherwise, an error will be thrown.
  • Network or API errors may occur; the node supports retry options to handle transient failures.

Links

Discussion