hey
@fresh-fireman-491 , i am getting issue with event MESSAGE.RECEIVED , it is not working
window.botpressWebChat.onEvent(event => {
console.log(event,"event");
if(event.type == 'message.receive'){
console.log("message.receive");
}
else if (event.type === 'TRIGGER' && event.value.ttsLang) {
ttsLang = event.value.ttsLang;
console.log("Language: " + event.value.ttsLang);
} else if (event.type === 'TRIGGER' && event.value.botResponse) {
let currentContent = transcriptionResult.innerHTML;
transcriptionResult.innerHTML = currentContent + '
Bot: ' + event.value.botResponse + '
';
synthesizeSpeech(event.value.botResponse);
} else {console.log("Something wrong :(")}
}, ['TRIGGER']);