bot framework2——与用户交互

下面是与用户交互相关的实现:



代码:

var builder = require("botbuilder");
//create the connector
var connector = new builder.ConsoleConnector().listen();
//create the bot
var bot = new builder.UniversalBot(connector);
//add in the dialog
bot.dialog('/',[
    function(session){
        builder.Prompts.text(session,'Please enter your name');
    },
    function(session,result){
        session.send('Hello,'+result.response);
    }
]);


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Programming the Microsoft Bot Framework: A Multiplatform Approach to Building Chatbots (Developer Reference) By 作者: Joe Mayo ISBN-10 书号: 1509304983 ISBN-13 书号: 9781509304981 Edition 版本: 1 出版日期: 2017-11-20 pages 页数: 870 This is the only comprehensive, authoritative guide to building Conversational User Interfaces (CUI, a.k.a. bots, chatbots, or chatterbots) with the Microsoft Bot Framework. Reflecting the next radical revolution in human-computer interaction, it will help you leverage advanced artificial intelligence (AI) and natural language processing to empower new and existing applications with stunningly intuitive conversational interfaces. Long-time Microsoft MVP Joe Mayo begins with high-level explanations of what Microsoft Bot Framework is, what you can do with it, and why it matters so much. Next, he presents the foundational knowledge you need to start creating real bots and CUIs. Step by step, you’ll learn how to build message dialogs, manage conversations, interact with framework APIs, and incorporate powerful natural language processing with Microsoft’s advanced Language Understanding Intelligent Service (LUIS). Mayo also offers detailed guidance on deploying your customized bots to key platforms such as Slack, Skype, and Facebook Messenger. Throughout, Mayo’s practical examples combine code with clear explanations of when and why you would perform each task. From start to finish, Programming the Microsoft Bot Framework is relentlessly practical, helping you translate the advanced “magic” of intelligent bots into real solutions right now.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值