Book Image

Building Bots with Node.js

By : Eduardo Freitas, Madan Bhintade
Book Image

Building Bots with Node.js

By: Eduardo Freitas, Madan Bhintade

Overview of this book

<p>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."</p> <p>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.</p> <p>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.</p> <p>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.</p>
Table of Contents (16 chapters)
Building Bots with Node.js
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Our Kik bot


Our Kik bot will be based on the Salesforce and Force.com platforms, which I explained previously. At a high level, we will be following the following steps for our bot:

  1. Developing a basic Kik bot

  2. Enhancing our basic bot program for a more conversational experience as per Kik guidelines

  3. Establishing a connection between CRM and our basic bot

  4. Based on the user's requirements, getting CRM data from Salesforce and presenting the user data in the Kik app

Creating our first Kik bot

Just like Slack, Kik also helps us to create our bot using an automated agent, Botsworth. Let's follow the steps to create our first Kik bot.

Using the Kik dev platform on a browser

Visit https://dev.kik.com/#/home, as shown in the following screenshot:

The URL opens the Kik developer platform, which helps us to create and configure our Kik bot. This screen shows a Kik code for creating a bot. This code needs to be scanned using the Kik app, which we have already installed and configured with our Kik account as...