This site is no longer updated.Go to new Conversational Cloud docs

$reactions.audio


This method allows you to use an audio recording as a bot’s response.

It takes an object with the following fields as an argument:

  • value – link to the audio file.
  • name – audio file name, an optional parameter.

Please note that each channel sets its own restrictions on uploaded audio files: playback duration, file size, supported formats, etc. Make sure your file complies with all the channel criteria.

Learn more about channel loading restrictions: Google Assistant, Telegram.

How to use

script:
    $reactions.audio('https://hostname/demo_bot/demo.wav');
script:
    $reactions.audio({name: 'Audio file name', value: 'https://hostname/demo_bot/demo.wav'});