This code works for me botframework v4, but can there are options to customize azure chat bot?
i want to add microphone button , also integrate map option as well.
webchat channel has been used with LUIS
const styleSet = window.WebChat.createStyleSet({
bubbleFromUserBackground: '#d1e6f7',
bubbleBackground: '#eeeeee',
bubbleBorderColor: '#E6E6E6',
bubbleBorderRadius: 2,
bubbleBorderStyle: 'solid',
bubbleBorderWidth: 1,
sendBoxButtonColor: '#faa638',
microphoneButtonColorOnDictate: '#F33',
hideUploadButton: true,
showSpokenText: true,
hideSendBox: false
});
// After generated, you can modify the CSS rules
styleSet.textContent = {
...styleSet.textContent,
fontFamily: "'GothamMedium',Calibri,sans-serif",
fontWeight: 'normal',
fontSize: '10pt',
color: '#848484',
enableUploadThumbnail: true,
uploadThumbnailContentType: 'image/jpeg',
uploadThumbnailHeight: 360,
uploadThumbnailQuality: 0.6,
uploadThumbnailWidth: 720
};
styleSet.MicrophoneButton = { ...styleSet.MicrophoneButton
};
window.WebChat.renderWebChat(
{
directLine: window.WebChat.createDirectLine({
secret: '###########################################'
}),
// Passing 'styleSet' when rendering Web Chat
styleSet
},
document.getElementById('webchat')
);
</script>