Chatbots are an awesome way to interact with the Twitch audience. From voting to controlling games, the chat is the most common engagement mechanism in the Twitch steamer’s page. In this session, we covered best practices of building delightful bots and connecting bots to other interactive elements at Twitch, such as Extensions.
4. 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
5. 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?
11. 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
12. 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!
15. 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
17. 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
18. 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
24. - 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 :)