Actions15
Send Audio
AI-generatedOverview
This node sends WhatsApp audio messages via the 4Jawaly API. It is useful for automating the delivery of audio files (mp3, ogg, m4a) to WhatsApp users, such as sending voice messages, announcements, or audio alerts. For example, a business can use it to send promotional audio clips or customer service voice messages directly to clients' WhatsApp numbers.
Use Case Examples
- Sending an audio greeting to a customer after a purchase.
- Broadcasting an audio announcement to a list of WhatsApp contacts.
Properties
| Name | Meaning |
|---|---|
| Phone Number | The recipient's phone number without '+' or spaces, used to specify the WhatsApp message destination. |
| WhatsApp Project ID | The identifier of the WhatsApp project used for sending the message, required for API routing. |
| Audio URL | The URL of the audio file to send (supported formats: mp3, ogg, m4a) with a maximum size of 16MB. |
| Additional Options | Optional settings including batch size for sending to multiple numbers and request timeout in milliseconds. |
Output
JSON
success- Indicates if the audio message was sent successfully.operation- The operation performed, here it is 'sendAudio'.message- A descriptive message about the result of the send operation.phone_number- The recipient phone number to which the audio was sent.audio_url- The URL of the audio file that was sent.message_id- The unique identifier of the sent message returned by the API.api_message- The message returned by the API regarding the send operation.description- Additional description or details from the API response.raw_response- The full raw response from the 4Jawaly API for debugging or logging.
Dependencies
- 4Jawaly API key credential for authentication
Troubleshooting
- Ensure the phone number is correctly formatted without '+' or spaces and contains only digits.
- Verify the WhatsApp Project ID is correct and active in the 4Jawaly system.
- Check that the audio file URL is accessible and the file size does not exceed 16MB.
- If the API returns an error, review the error message for details such as invalid credentials or unsupported file format.
- Timeout errors may occur if the API response takes longer than the specified timeout; consider increasing the timeout value if needed.
Links
- 4Jawaly API Documentation - Official documentation for the 4Jawaly WhatsApp API used by this node.