Actions23
- Message Actions
- Image Actions
- Audio Actions
- Video Actions
- User Profile Actions
- Sender Action Actions
- Comment Actions
- Page Actions
Audio → Send Audio
AI-generatedSummary
Send an audio file as a message to a specified Facebook Messenger user.
Inputs
- recipientId (required) — The Facebook Messenger ID of the user to receive the audio message.
- sendMethod (required) — The method for sending the audio file. Options are 'url' to specify a public audio URL, 'binary' to use audio binary data from a previous node, or 'attachmentId' to use a pre-uploaded attachment ID.
- audioUrl (required) — When using 'url' send method, the public URL of the audio file to send.
- binaryPropertyName (required) — When using 'binary' send method, the name of the binary property containing the audio file to send from a previous node.
- attachmentId (required) — When using 'attachmentId' send method, the ID of the pre-uploaded audio attachment.
Output shape
a single JSON object containing the Facebook API response for each audio sent message.
Send method input controls which additional parameters are required. The operation returns the Facebook Graph API response for the message sent. Errors from the Facebook API are thrown or returned if 'continueOnFail' is enabled.
Examples
Example 1: Send audio by public URL
Set 'recipientId' to the target user, select 'Send Method' as 'url', and provide 'audioUrl' as the public audio file URL.
Example 2: Send audio from previous binary data
Set 'recipientId' to the target user, select 'Send Method' as 'binary', and specify 'binaryPropertyName' for the audio data property.
Example 3: Send audio by attachment ID
Set 'recipientId' to the target user, select 'Send Method' as 'attachmentId', and input the 'attachmentId' for the pre-uploaded audio.
