【发布时间】:2019-09-06 01:47:26
【问题描述】:
如何向 Microsoft Bot 框架添加持久菜单?我在documentation 中进行了搜索,但没有找到太多关于 UI 组件的信息。 我想实现类似 Messenger bot 的持久菜单
<script>
var speechOptions = {
speechRecognizer: new CognitiveServices.SpeechRecognizer( { subscriptionKey: '***********' } ),
speechSynthesizer: new CognitiveServices.SpeechSynthesizer(
{
subscriptionKey: '*************',
gender: CognitiveServices.SynthesisGender.Female,
voiceName: 'Microsoft Server Speech Text to Speech Voice (en-US, JessaRUS)'
})
}
BotChat.App({
//production evironment
directLine: { secret: '**********************' },
user: { id: Date.now().toString(), name: 'You'},
bot: { id: '1234' },
resize: 'detect',
speechOptions: speechOptions
}, document.getElementById("bot"));
</script>
【问题讨论】:
-
Bot Framework 确实支持 Facebook Messenger 频道。您是说要在网络聊天中重新创建 Facebook Messenger 功能吗?如果你想使用网络聊天,那么你绝对应该使用网络聊天 v4 而不是机器人聊天。
标签: azure botframework chatbot