- Print
- DarkLight
- PDF
Send an audio file to users from your bot. Keep it simple by just adding the audio media, or include captions and use some of the editor tools we talked about earlier when using the block “Send a text message” to add bold, italics, emoticons or variables.
Supported file types are:
- mp4
- mp3
- aac
- amr
- opus
- Use as a way to convey an idea/message to your user to create a primarily auditory experience for your user.
Lets unpack the available features within this block and what you can do with it.
Select the type of media you’d like your bot to send. You can select from the following:
- Upload File.
- From URL (if the audio file is hosted elsewhere).
Each option will present you with an element you will need to interact with in order to proceed. Let’s see what each one does:
Upload File
This will require you to “Select Files To Upload”. Click on the button and use your file explorer application to browse to the file you’d like to upload.
Once successfully uploaded, the window will update like the example shown below.
Once you click on “Apply” you will see the new block appear in the block editor. See below:
And from start to finish, it would look like this:
Do this by:
- Adding a new block.
- Selecting “Send a Message” as the category (It is usually selected by default).
- Select the “Send an audio file” block.
- Select from the available options along the top of the block for the type of media you’d like to send. Available options are:
- Upload File (Such as a JPG, PNG, GIF, MP3, MP4 etc.)
- From URL (if hosted externally).
- Then:
- If Uploading a File – Browse to the file you’d like to upload.
- If using From URL – Insert the URL link you’d like to send.
- Lastly, add a caption if you wish and click on "Apply" to add the block as you've configured it.