Author of Designing Bots
@ashevat
Amir Shevat

VP of Developer Experience
Bots, Bots, Bots: Building Chatbots
TwitchCon 2018 San Jose, California
Bot why?
TwitchCon 2018 San Jose, California
What are
Chatbots?
A user interface (UI) that uses messaging
as a medium of interaction
Twitch chat is a great canvas for your UI
16 Billion
Chat Messages sent in 2017
TwitchCon 2018 San Jose, California
-Chat is the most common form of
audience interaction on Twitch
-Chatbots are simple to build and can
be very useful
-Chatbots can integrate with other
technologies, such as Extensions
-They solve simple and important
issues for streamers, like answering
“what is your gear?” or “what is the
game you are playing?”
Why Twitch Chatbots
are Awesome
BOT WHY?
TwitchCon 2018 San Jose, California
Bot Use 

Case
STREAMER TOOL BOTS
TwitchCon 2018 San Jose, California
Bot Use 

Case
STREAMER TOOL BOTS
TwitchCon 2018 San Jose, California
Bot Use 

Case
STREAMER TOOL BOTS
Loyalty, stream-integrated
TwitchCon 2018 San Jose, California
Bot Use 

Case
STREAMER TOOL BOTS
Loyalty, stream-integrated
TwitchCon 2018 San Jose, California
Building a Bot
TwitchCon 2018 San Jose, California
Client
Client
Your
Chatbot
Server
IRC over Websocket / TCP
Twitch
IRC
Servers
Client
Magic
Bot Anatomy
High-level Architecture
BUILDING A BOT
TwitchCon 2018 San Jose, California
Authentication
1. Streamers add your chatbot to
their channel through an OAuth
flow
2. You must request a token with the
chat_login scope
3. You get an OAuth token to connect
to the channel
4.Keep your OAuth in a safe place!
TwitchCon 2018 San Jose, California
1. Twitch is fast paced; do not spam
2. Do not expect a conversation; build shot and
stateless commands
3. Use ! or / prefix for commands
4.Great way to collect contextual inputs
Better Bots
BUILDING BOTS
TwitchCon 2018 San Jose, California
Coming Soon to a
Bot Near You
TwitchCon 2018 San Jose, California
Panel / Video
Extension
Twitch
Server
HTTP API Call
Chat
Message
Magic
The Future is Here
Connecting Extensions
to Chat
COMING SOON
TwitchCon 2018 San Jose, California
Panel / Video
Extension
(Javascript Event
Called)
Twitch
Server
HTTP API Call
Chat
Message
Magic
The Future is Here
Connecting Extensions
to Chat
COMING SOON
TwitchCon 2018 San Jose, California
Future of 

Games
COMING SOON
TwitchCon 2018 San Jose, California
Future of 

Games
COMING SOON
Steve Filby

Marketing Manager,
Motion Twin
- Build useful chatbots for streamers
- Connect chatbots to a full experience via Extensions
- Connect chatbots to your gameplay; humans are the best NPCs
- Remix my chatbot: https://glitch.com/edit/#!/twitch-bot-super-simple
We hope you’re all Bot in :)
Questions?
Learn More
Documentation:
https://dev.twitch.tv/docs/irc
Forums:
https://discuss.twitch.tv/
Twitter:
@TwitchDev,
@ashevat

Bots Bots Bots: Building Chatbots

  • 1.
    Author of DesigningBots @ashevat Amir Shevat
 VP of Developer Experience
  • 2.
    Bots, Bots, Bots:Building Chatbots
  • 3.
    TwitchCon 2018 SanJose, California Bot why?
  • 4.
    TwitchCon 2018 SanJose, California What are Chatbots? A user interface (UI) that uses messaging as a medium of interaction Twitch chat is a great canvas for your UI 16 Billion Chat Messages sent in 2017
  • 5.
    TwitchCon 2018 SanJose, California -Chat is the most common form of audience interaction on Twitch -Chatbots are simple to build and can be very useful -Chatbots can integrate with other technologies, such as Extensions -They solve simple and important issues for streamers, like answering “what is your gear?” or “what is the game you are playing?” Why Twitch Chatbots are Awesome BOT WHY?
  • 6.
    TwitchCon 2018 SanJose, California Bot Use 
 Case STREAMER TOOL BOTS
  • 7.
    TwitchCon 2018 SanJose, California Bot Use 
 Case STREAMER TOOL BOTS
  • 8.
    TwitchCon 2018 SanJose, California Bot Use 
 Case STREAMER TOOL BOTS Loyalty, stream-integrated
  • 9.
    TwitchCon 2018 SanJose, California Bot Use 
 Case STREAMER TOOL BOTS Loyalty, stream-integrated
  • 10.
    TwitchCon 2018 SanJose, California Building a Bot
  • 11.
    TwitchCon 2018 SanJose, California Client Client Your Chatbot Server IRC over Websocket / TCP Twitch IRC Servers Client Magic Bot Anatomy High-level Architecture BUILDING A BOT
  • 12.
    TwitchCon 2018 SanJose, California Authentication 1. Streamers add your chatbot to their channel through an OAuth flow 2. You must request a token with the chat_login scope 3. You get an OAuth token to connect to the channel 4.Keep your OAuth in a safe place!
  • 15.
    TwitchCon 2018 SanJose, California 1. Twitch is fast paced; do not spam 2. Do not expect a conversation; build shot and stateless commands 3. Use ! or / prefix for commands 4.Great way to collect contextual inputs Better Bots BUILDING BOTS
  • 16.
    TwitchCon 2018 SanJose, California Coming Soon to a Bot Near You
  • 17.
    TwitchCon 2018 SanJose, California Panel / Video Extension Twitch Server HTTP API Call Chat Message Magic The Future is Here Connecting Extensions to Chat COMING SOON
  • 18.
    TwitchCon 2018 SanJose, California Panel / Video Extension (Javascript Event Called) Twitch Server HTTP API Call Chat Message Magic The Future is Here Connecting Extensions to Chat COMING SOON
  • 19.
    TwitchCon 2018 SanJose, California Future of 
 Games COMING SOON
  • 20.
    TwitchCon 2018 SanJose, California Future of 
 Games COMING SOON
  • 21.
  • 24.
    - Build usefulchatbots for streamers - Connect chatbots to a full experience via Extensions - Connect chatbots to your gameplay; humans are the best NPCs - Remix my chatbot: https://glitch.com/edit/#!/twitch-bot-super-simple We hope you’re all Bot in :)
  • 25.
  • 26.