万本电子书0元读

万本电子书0元读

顶部广告

Building Slack Bots电子书

售       价:¥

67人正在读 | 0人评论 9.8

作       者:Paul Asjes

出  版  社:Packt Publishing

出版时间:2016-06-01

字       数:82.5万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Create powerful, useful, fast, and fun chat bots that make Slack better About This Book This is the first developer's guide to programming for Slack It covers everything you need to create chat bots for Slack’s conversational UI It’s full of realistic examples, usable code, and lucid explanations on everything you need to know Who This Book Is For This is a book for software developers who want to build Slack bots for their own company’s use or for customers. You need to know JavaScript. What You Will Learn Receive and send messages sent in Slack Respond to user commands Process natural language Perform useful tasks on commands such as fetching data from external sources Use webhooks and slash commands Create a Google Classroom and add customized information for each individual class In Detail Slack promises that its users will "be less busy." Slack bots interact with users in Slack chatrooms, providing useful immediate information, and automating work. This book gives you everything you need to build powerful and useful Slack bots. You’ll see how to hook into the Slack API to create software that can read and post to chatrooms, respond to commands and hints given in natural conversational language, and build fun and useful bots for your own place of work, both as a front end to your own service and to distribute and share as apps. You can even sell your bots and build a business as a Slack bot developer. Throughout the book, you’ll build useful and fun example applications that you can modify for your own situations. These range from simple, fun applications to liven up discussions to useful, data-driven apps to help you make decisions quickly and manage work. Style and approach This is a friendly step-by-step guide to building powerful, friendly Slack bots.
目录展开

Building Slack Bots

Table of Contents

Building Slack Bots

Credits

About the Author

About the Reviewer

www.PacktPub.com

eBooks, discount offers, and more

Why subscribe?

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Getting Started with Slack

Introduction to Slack

Slack as a platform

The end goal

Summary

2. Your First Bot

Preparing your environment

Installing Node.js

Installing the development tools using NPM

Creating a new project

Creating a Slack API token

Connecting a bot

Joining a channel

Sending a message to a channel

The slack object

Getting all the channels

Getting all members in a channel

Sending a message to a channel

Basic responses

The authenticated event

Using the message event

Avoiding spam

Sending a direct message

Restricting access

Adding and removing admins

Debugging a bot

Summary

3. Adding Complexity

Responding to keywords

Using classes

Reactive bots

Bot commands

Sanitizing inputs

External API integration

Error handling

Summary

4. Using Data

Introduction to Redis

Installing Redis

Mac OS X

Windows

Unix

Connecting to Redis

Saving and retrieving data

Connecting bots

Dynamic storage

Hashes, lists, and sets

Hashes

Lists

Sets

Sorted sets

Best practices

Simple to-do example

Summary

5. Understanding and Responding to Natural Language

A brief introduction to natural language

Fundamentals of NLP

Tokenizers

Stemmers

String distance

Inflection

Displaying data in a natural way

When to use NLP?

Mentions

Classifiers

Using trained classifiers

Natural language generation

When should we use natural language generation?

The uncanny valley

Summary

6. Webhooks and Slash Commands

Webhooks

Incoming webhooks

Outgoing webhooks

Slash commands

In-channel and ephemeral responses

Using webhooks and slash commands

Summary

7. Publishing Your App

The Slack app directory

Registering your app and obtaining tokens

Understanding the OAuth process

Scopes

Submitting your app to the app directory

Monetizing your bot

Summary

Further reading

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部