About This Title

Pages: 206
Published: June 2019
ISBN: 9781680506327
In Print

Skill Level Meter

Build Chatbot Interactions

Responsive, Intuitive Interfaces with Ruby

by Daniel Pritchett

The next step in the evolution of user interfaces is here. Chatbots let your users interact with your service in their own natural language. Use free and open source tools along with Ruby to build creative, useful, and unexpected interactions for users. Take advantage of the Lita framework’s step-by-step implementation strategy to simplify bot development and testing. From novices to experts, chatbots are an area in which everyone can participate. Exercise your creativity by creating chatbot skills for communicating, information, and fun.

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $21.95 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal


Paperback Formats:

Please support indie bookstores!
Find indie bookstores in the U.S. Find indie bookstores around the world.


Developers of all skill levels can craft user experiences that are natural, easy to use, and most of all, fun. Build chatbots using free, open source tools and launch them to popular chat platforms like Slack and Amazon’s Alexa. Use the Ruby programming language and the Lita bot framework to unlock fun and powerful chat abilities such as sending text messages and emails, creating new meme images, driving a robot around the room, and talking out loud on a home speaker.

Use frameworks available in Ruby and Node.js to get started quickly. Create simple chatbot skills that respond quickly to basic requests. Chain skills together for more complex interactions. Take advantage of test-driven development techniques to build your bots with confidence. Coordinate tasks with colleagues via bot. Connect with external APIs to provide users with data they need. Extract data information from web pages when an API isn’t available. Expand your bot’s reach with SMS and email messaging. Deploy a chatbot to a host so users can interact with it on their schedule.

Build a more responsive, easy-to-use interface for your users today.

What You Need

You don’t need much to get started with chatbots. A Mac or Linux computer with a recent version of Ruby is recommended. Windows users can keep up with a free virtual machine running Linux. You’ll deploy your chatbots for free (or at least cheaply) on cloud hosting platforms like Heroku and Digital Ocean.

Resources

Releases:

  • P1.0 2019/06/11
  • B10.0 2019/05/28
  • B9.0 2019/04/01
  • B8.0 2019/02/25

Contents & Extracts

  • Preface
    • Who Is This Book For?
    • What’s in This Book?
    • What You Need
    • Why Lita and Ruby?
    • Online Resources
    • Acknowledgements
  • Your First Lita Bot
    • Install Ruby
    • Install Shared Libraries and Redis
    • Use Redis as Lita’s “Brain”
    • Install the Lita Gem
    • Generate a New Lita Bot
    • Test the Bot Locally
    • Wrap-up
  • Your First Lita Skill
    • Generate an Empty Skill
    • Complete Your Skill and Write Some Unit Tests
    • Publish Your Skill for Others as a Ruby Gem
    • Wrap-up
  • Deploy Your Lita Bot to Heroku
    • Prepare a Heroku Home for Your Bot
    • Add-ons and Heroku’s Elements Marketplace
    • Wrap-up
  • Deploy Lita on Your Linux Server
    • Create a Cloud Virtual Machine
    • Review and Run the Bootstrap Script
    • Review Your Dockerized Bot through SSH
    • Wrap-up
  • Parse a Photoblog: What’s Brad Eating?
    • Build a Web Page Scraper Skill
    • Set Up a Matcher
    • Download the Raw HTML with Tumblr
    • Parse the Raw HTML with Nokogiri
    • Isolate the First Post with a CSS Selector
    • Find the Image with Another CSS Selector
    • Format the Results to Share with the End User
    • Wrap-up
  • Meetup Finder
    • Set Up a Meetup.com Account and API Key
    • Connect to the Meetup API Using the Meetup Client Gem
    • Teach Lita How to Query the Meetup API
    • Test Your MeetupFinder Class
    • Model the API Response with a Plain Old Ruby Object
    • Wrap-up
  • Imgflip Meme Maker
    • Make an Image Macro
    • Teach Lita How to Generate Memes
    • Expand the Skill to Support More than One Meme
    • Enable Users to Add Memes to Your Gem
    • Wrap-up
  • Bot Task Scheduler excerpt
    • Capture a Lita Command to Reuse Later
    • Resubmit a Deferred Lita Command
    • Store Scheduled Tasks in Redis
    • Wrap-up
  • Hide Walls of Text Behind an Offsite URL
    • Create a Lita Extension to Send Text to the Pastebin API
    • Make a Simple Lita Handler Skill to Use as a Test Driver
    • Wrap-up
  • Use a Markov Chain or Cleverbot
    • Markov Chain: Train Lita to Speak in Someone Else’s Voice
    • Cleverbot: Use an External AI for Difficult Questions
    • Wrap-up
  • Send Messages with SMS and Email excerpt
    • Use Twilio to Send Text Messages
    • Use SMTP to Send an Email
    • Wrap-up
  • ChatOps Techniques for Managing Software Systems
    • Create a Mini-skill to Check Installed Version
    • Test the Command Executor
    • Ask Lita to Ship a New Software Release
    • Wrap-up
  • Amazon Alexa Integrations
    • Hardware, Simulators, and Alexa Portal Access
    • Register for an Alexa Developer Account
    • Create Your First Skill on the Portal
    • Serve Up a “Flash Briefing” Newsfeed for Echo Devices
    • Record Messages with a Companion Alexa Skill
    • Build Out a Lita Skill to Take in Messages from Alexa
    • Wrap-up
  • Hue Programmable Lighting
    • Connect a Hue Bridge to Your Computer
    • Build a Simple Wrapper for Managing a Bulb
    • Control Your Bulbs from Lita
    • Wrap-up

Author

Daniel Pritchett is a consulting programmer, speaker, and user group supporter in Memphis, Tennessee. He builds infrastructure tooling for internet companies. If it’s interesting and useful, Daniel wants to help you build it.

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $21.95 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal


Paperback Formats:

Please support indie bookstores!
Find indie bookstores in the U.S. Find indie bookstores around the world.

Related Titles:

Skill Level Meter

About This Title

Pages: 206
Published: June 2019
ISBN: 9781680506327
Edition: 1
In Print