Building Bots with Node.js

Eduardo Freitas, Madan Bhintade



About This Book

  • Create interactive bots on platforms such as Facebook Messenger, Kik, Telegram, and Skype to automate workflows
  • Create a bot that works with SQL Server and Skype to deal with HR requests within a company
  • Work with some of the most cutting-edge and widely-used APIs and messaging platforms to create interactive customer-facing experiences and automate work

Who This Book Is For

This is a book for Node.js developers who want to build powerful bots for customer-facing and internal workflow automation.

What You Will Learn

  • Create a bot template that responds to e-mails based on certain ruling criteria
  • Interact with SMS and perform some basic Natural Language Processing using the Twilio API for Node.js
  • Work with the Skype Web SDK and Node.js to create a bot that works with SQL Server and Skype
  • Build an automated Flight Information Agent bot using the Twitter and Air France KLM APIs
  • Create a scheduling bot for teams using the Facebook Messenger API
  • Interact with BotKit along with and MongoDB Amazon S3 to create a document management bot in Node.js
  • Leverage ICR and Azure Table Storage from Node.js to create a bug tracking bot
  • Integrate API and Kik to create a Salesforce CRM bot

In Detail

The bots are taking over and we're all for it! Messenger-based bots will be the dominant software UI for the next generation of applications – even Slack, Telegram, and Facebook are driving a new approach where "threads are the new apps."

This book shows you how to create work automation bots that interact with users through Slack, e-mail, Skype, Twitter, and more using Node.js. You'll learn to create conversational UIs for your Node.js apps, and then use those UIs to provide workflow automation tools.

You will be shown how to handle customer service requests that come in through messenger systems – this includes interpreting the natural language to reveal the user's intent and respond accordingly. You will also learn how to automate processes that involve several people, such as processing holiday requests, arranging meetings, or sending updated reports on time.

By the end of this book you'll have the knowledge to create bots that can handle and manipulate documents, URLs, and other items of content. Harness the power of bots and your organization will reap the benefits.

Style and approach

This fast-paced book is packed with real-world use cases that will help you understand concepts, issues, and solutions while using Node.js to build useful, cross-platform business bots.



- 在Facebook Messenger、Kik、Telegram和Skype等平台上創建互動式機器人,以自動化工作流程
- 創建一個與SQL Server和Skype合作的機器人,以處理公司內部的人力資源請求
- 使用一些最先進且廣泛使用的API和消息平台,創建互動式的面向客戶體驗並自動化工作




- 創建一個根據特定規則回應電子郵件的機器人模板
- 使用Twilio API for Node.js與短信互動並執行基本的自然語言處理
- 使用Skype Web SDK和Node.js創建一個與SQL Server和Skype合作的機器人
- 使用Twitter和Air France KLM API構建一個自動化的航班信息代理機器人
- 使用Facebook Messenger API為團隊創建一個排程機器人
- 使用BotKit和MongoDB Amazon S3一起工作,創建一個Node.js的文檔管理機器人
- 利用Node.js中的ICR和Azure Table Storage創建一個錯誤跟踪機器人
- 整合 API和Kik,創建一個Salesforce CRM機器人


機器人正在接管,我們都支持這一點!基於Messenger的機器人將成為下一代應用程序的主要軟件界面 - 甚至Slack、Telegram和Facebook都在推動一種新的方法,即“線程是新的應用程序”。


您將學習如何處理通過消息系統收到的客戶服務請求 - 包括解釋自然語言以揭示用戶意圖並相應地回應。您還將學習如何自動化涉及多人的流程,例如處理假期請求、安排會議或按時發送更新的報告。