Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Chatbots and Conversational UI Development

You're reading from   Hands-On Chatbots and Conversational UI Development Build chatbots and voice user interfaces with Chatfuel, Dialogflow, Microsoft Bot Framework, Twilio, and Alexa Skills

Arrow left icon
Product type Paperback
Published in Dec 2017
Publisher Packt
ISBN-13 9781788294669
Length 392 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Srini Janarthanam Srini Janarthanam
Author Profile Icon Srini Janarthanam
Srini Janarthanam
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Introduction FREE CHAPTER 2. Tour Guide for Your City 3. Let's Talk Weather 4. Building a Persona Bot 5. Let's Catch a Train 6. Restaurant Search 7. The News Bot 8. My TV Guide 9. My Man Friday 10. More Resources

Building your first Twitter bot

Let's build a simple Twitter bot. This bot will listen to tweets and pick out those that have a particular hashtag. All the tweets with a given hashtag will be printed on the console. This is a very simple bot to help us get started. In the following sections, we will explore more complex bots.

  1. Go to the root directory and create a new Node.js program using npm init:
  1. Execute the npm install twitter --save command to install the Twitter Node.js library:

Run npm install request --save to install the Request library as well. We will use this in the future to make HTTP GET requests to a news data source.

  1. Explore your package.json file in the root directory:
{
"name": "twitterbot",
"version": "1.0.0",
"description": "my news bot",
"main": &quot...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image