SlideShare a Scribd company logo
HOW TO BUILD A
SERVERLESS CHATBOT
FOR $0
I’M SLOBODAN STOJANOVIC
CTO OF CLOUD HORIZON
JS BELGRADE MEETUP ORGANIZER
GITHUB.COM/STOJANOVIC
TWITTER.COM/SLOBODAN_
CLOUD HORIZON
WE HELP BUSINESSES BUILD
INNOVATIVE WEB AND MOBILE SOLUTIONS
CHATTERBOT / CHAT BOT
a type of conversational agent, a computer
program designed to simulate an intelligent
conversation with one or more human users
via auditory or textual methods.
A BIT OF A HISTORY
• Turing Test (1950)
• Eliza (1966)
• Parry (1972)
• A.L.I.C.E. (1995)
• Jabberwacky (2005)
• Slack Bot (2014)
• Telegram and FB Bots (2015)
• Many others (2016)
WHEN PARRY MET ELIZA
How to Build a Serverless Chatbot for $0?
CHATBOT PLATFORMS
How to Build a Serverless Chatbot for $0?
How to Build a Serverless Chatbot for $0?
HOW CHATBOTS WORK
How to Build a Serverless Chatbot for $0?
MOST OF THEM ARE
USING WEBHOOKS
Hello
{
sender: {
id: 12345
},
recipient: {
id: 54321
},
timestamp: 1483413621558,
message: {
app_id: 999999,
text: 'Hello'
}
}
{
recipient: {
id: '12345'
},
message: {
text: 'Hi there'
}
}
Hi there
MOST OF THEM?
WHAT ABOUT THE
DIFFERENT ONES?
• Slack Bot users
• Amazon Alexa
• iMessage and Siri
WHAT DO YOU NEED TO KNOW
TO BUILD A CHATBOT
ARTIFICIAL INTELLIGENCE
NATURAL LANGUAGE
PROCESSING
<PROGRAMMING/>
WHAT DO YOU NEED TO KNOW
TO SETUP A CHATBOT
• Server
• SSL
• Setup API / Webhooks
• Register app / bot
• Setup tokens, webhook url, etc.
• Write the logic
• …
How to Build a Serverless Chatbot for $0?
IS THERE A BETTER WAY?
YES, OF COURSE!
• Visual chatbot builders (Chatfuel)
• Bot frameworks (Microsoft Bot Framework)
• Amazon Lex
•Many other options
How to Build a Serverless Chatbot for $0?
BUILDING CHATBOTS IS NOT
FUN, MOST OF THE TIME
AT LEAST, NOT AS MUCH AS IT SHOULD BE
WE DECIDED TO FIX THAT
AT LEAST, FOR US
MEET
CLAUDIA BOT BUILDER
Claudia Bot Builder is an extension library
for Claudia.js that helps you create bots
for 10 platforms.
The key idea behind the project is to
remove all the boilerplate code and
common infrastructure tasks, so you can
focus on writing the really important part
of the bot – your business workflows.
How to Build a Serverless Chatbot for $0?
OK, LET ME SHOW YOU
var botBuilder = require('claudia-bot-builder')
module.exports = botBuilder(function(message) {
return 'Hi there! You sent “' + message.text + '“'
})
const botBuilder = require('claudia-bot-builder')
module.exports = botBuilder(message =>
`Hi there! You sent “${message.text}”`)
• AMAZON WEB SERVICES ACCOUNT
• Node.js (version 4.3.2 is preferred)
• Install Claudia and Claudia Bot Builder from NPM
PREREQUISITES
claudia create --region eu-central-1 --api-module bot
SIMPLY RUN ONE COMMAND
TO DEPLOY THE BOT
TO SETUP DIFFERENT
PLATFORMS
ADD ANOTHER FLAG
claudia create 
--region eu-central-1 
--api-module bot 
--configure-fb-bot
ALL SUPPORTED PLATFORMS
• configure-fb-bot
• configure-slack-slash-command
•configure-slack-slash-app
•configure-viber-bot
•configure-telegram-bot
•configure-skype-bot
•configure-alexa-skill
•configure-twilio-sms-bot
•configure-kik-bot
•configure-groupme-bot
LET’S SEE IT
How to Build a Serverless Chatbot for $0?
How to Build a Serverless Chatbot for $0?
HOW IT WORKS
zzz…
{
sender: {
id: 12345
},
recipient: {
id: 54321
},
timestamp: 1483413621558,
message: {
app_id: 999999,
text: 'Hello'
}
}
{
recipient: {
id: '12345'
},
message: {
text: 'Hi there'
}
}
{
sender: 12345,
platform: ’facebook’,
text: ‘Hello’,
postback: false,
originalRequest: {…}
}
HelloHi there
PRICE
How to Build a Serverless Chatbot for $0?
$0
AWS LAMBDA PRICING
•$0.20 per 1 million requests
•$0.00001667 for every GB-second used
•First million requests each month are free
•First 400,000 GB-seconds are free
AWS LAMBDA IS
STATELESS.
HOW DO WE SAVE THE
STATE?
USE DYNAMO DB
IS THERE AN EASIER WAY
TO BUILD COMPLEX
MESSAGES?
YES!
const botBuilder = require('claudia-bot-builder');
const fbTemplate = botBuilder.fbTemplate;
module.exports = botBuilder(message => {
if (message.type === 'facebook') {
const newMessage = new
fbTemplate.Text('What's your favorite House in
Game Of Thrones');
return newMessage
.addQuickReply('Stark', 'STARK')
.addQuickReply('Lannister', 'LANNISTER')
.addQuickReply('Targaryen', 'TARGARYEN')
.addQuickReply('None of the above', 'OTHER')
.get();
}
});
How to Build a Serverless Chatbot for $0?
CAN WE ADD NLP FOR $0
TOO?
YES OF COURSE, THERE’S
A FEW OPTIONS:
• API.ai
• Wit.ai
• IBM Watson*
• Luis.ai
EXAMPLES?
CLAUDIA.JS EXAMPLE
PROJECTS:

GITHUB.COM/CLAUDIAJS/EXAMPLE-PROJECTS
SAMPLE BOTS:
SPACE EXPLORER FB BOT:

M.ME/SPACE.EXPLORER.BOT

GITHUB.COM/STOJANOVIC/SPACE-EXPLORER-BOT
How to Build a Serverless Chatbot for $0?
LAPTOP FRIENDLY VIBER BOT:

VIBER.COM/LAPTOPFRIENDLY

GITHUB.COM/STOJANOVIC/LAPTOP-FRIENDLY-BOT
How to Build a Serverless Chatbot for $0?
HOLYJS CONFERENCE BOT:

TELEGRAM.ME/HOLYJS_BOT

GITHUB.COM/STOJANOVIC/HOLYJS-BOT
How to Build a Serverless Chatbot for $0?
VACATION TRACKER
FOR SLACK:

VACATIONTRACKERBOT.COM
VACATIONTRACKERBOT.COM
MORE INFO
CLAUDIAJS.COM


GITHUB.COM/CLAUDIAJS/CLAUDIA-BOT-BUILDER
WHAT’S NEXT?
How to Build a Serverless Chatbot for $0?
QUESTIONS?

@SLOBODAN_
SLIDES:
bit.ly/2kjaegq

More Related Content

What's hot (20)

PPTX
Chat bots
Chandulal Kavar
 
PDF
Chatbots 101
Venu Vasudevan
 
PPTX
Using Machine Learning and Chatbots to handle 1st line Technical Support
Barbara Fusinska
 
PDF
Building chat bots using ai platforms (wit.ai or api.ai) in nodejs
Entrepreneur / Startup
 
PPTX
Chatbot and Virtual AI Assistant Implementation in Natural Language Processing
Shrutika Oswal
 
PDF
Chat bots101 - practical insights on the business of bots
BAM
 
PPTX
Chatbot: What is it ?
Carl Gonthier
 
PDF
Travel Startup Lisa Travel
Travel Tech Conference Russia
 
PDF
chatbot and messenger as a platform
Daisuke Minamide
 
PPTX
Chatbot Basics - Building Chatbots using Google Dialogflow
Biswaranjan Rout
 
PDF
Build your first messenger bot
Nowa Labs Pte Ltd
 
PPT
Chat bots and AI
Geff Thomas
 
PPTX
Artificially Intelligent chatbot Implementation
Rakesh Chintha
 
PPTX
AI and Python: Developing a Conversational Interface using Python
amyiris
 
PPTX
Chatbot
haseeb muhsin
 
PPTX
How a chat bot using dialog flow works
Countants
 
PPTX
api.ai presentation
Marco Nigro
 
PDF
The lifecycle of a chatbot
Sohan Maheshwar
 
PDF
Dialogflow
Luca Maiano
 
PPTX
Chatbot Development Using Bot Framework and Xamarin
Albilaga Linggra Pradana
 
Chat bots
Chandulal Kavar
 
Chatbots 101
Venu Vasudevan
 
Using Machine Learning and Chatbots to handle 1st line Technical Support
Barbara Fusinska
 
Building chat bots using ai platforms (wit.ai or api.ai) in nodejs
Entrepreneur / Startup
 
Chatbot and Virtual AI Assistant Implementation in Natural Language Processing
Shrutika Oswal
 
Chat bots101 - practical insights on the business of bots
BAM
 
Chatbot: What is it ?
Carl Gonthier
 
Travel Startup Lisa Travel
Travel Tech Conference Russia
 
chatbot and messenger as a platform
Daisuke Minamide
 
Chatbot Basics - Building Chatbots using Google Dialogflow
Biswaranjan Rout
 
Build your first messenger bot
Nowa Labs Pte Ltd
 
Chat bots and AI
Geff Thomas
 
Artificially Intelligent chatbot Implementation
Rakesh Chintha
 
AI and Python: Developing a Conversational Interface using Python
amyiris
 
Chatbot
haseeb muhsin
 
How a chat bot using dialog flow works
Countants
 
api.ai presentation
Marco Nigro
 
The lifecycle of a chatbot
Sohan Maheshwar
 
Dialogflow
Luca Maiano
 
Chatbot Development Using Bot Framework and Xamarin
Albilaga Linggra Pradana
 

Viewers also liked (20)

PDF
Chatbots - prilika koju ne bi trebalo da propustite
Mobile Monday Srbija
 
PDF
Dizajn Chatbotova - "Poruka u balonu" ili nešto više?
Mobile Monday Srbija
 
PDF
Chatbot 101 - Robert McGovern
Robert McGovern
 
PPTX
AI Agent and Chatbot Trends For Enterprises
Teewee Ang
 
PDF
Intelligent Chatbot on WeChat
AI Frontiers
 
PDF
Chatbot Studies: WSJ for Facebook Messenger
Chatbot Academy
 
PDF
Introduction of Okinawa Open Laboratory and it's activities (iPOP2015)
Takashi Torii
 
PDF
Introduction of Okinawa Open Laboratory Testbed, OpenStack and SDN Technology...
Takashi Torii
 
PPTX
Deploying Your First Chat Bot
Josh Somma
 
PDF
The Art of CSS
Priscila Negreiros
 
PDF
Building Your First Chatbot - A Beginner's guide
Vinit Shahdeo
 
PDF
designing conversations: Conversational interfaces, Bot Interactions, Chatb...
Billy Choi
 
PDF
Building a Turbo-fast Data Warehousing Platform with Databricks
Databricks
 
PPTX
Azure as a Chatbot Service: From Purpose To Production With A Cloud Bot Archi...
Paul Prae
 
PDF
WeChat Therefore We Bot?
Joe Medved
 
PPTX
Big data, data science & fast data
Kunal Joshi
 
PPTX
PHPConf.Asia - The Sound of PHP
Steven Cooper
 
PPTX
Textual Interface - the rise of the chatbot
Steven Cooper
 
PDF
Big Data and Fast Data - big and fast combined, is it possible?
Guido Schmutz
 
Chatbots - prilika koju ne bi trebalo da propustite
Mobile Monday Srbija
 
Dizajn Chatbotova - "Poruka u balonu" ili nešto više?
Mobile Monday Srbija
 
Chatbot 101 - Robert McGovern
Robert McGovern
 
AI Agent and Chatbot Trends For Enterprises
Teewee Ang
 
Intelligent Chatbot on WeChat
AI Frontiers
 
Chatbot Studies: WSJ for Facebook Messenger
Chatbot Academy
 
Introduction of Okinawa Open Laboratory and it's activities (iPOP2015)
Takashi Torii
 
Introduction of Okinawa Open Laboratory Testbed, OpenStack and SDN Technology...
Takashi Torii
 
Deploying Your First Chat Bot
Josh Somma
 
The Art of CSS
Priscila Negreiros
 
Building Your First Chatbot - A Beginner's guide
Vinit Shahdeo
 
designing conversations: Conversational interfaces, Bot Interactions, Chatb...
Billy Choi
 
Building a Turbo-fast Data Warehousing Platform with Databricks
Databricks
 
Azure as a Chatbot Service: From Purpose To Production With A Cloud Bot Archi...
Paul Prae
 
WeChat Therefore We Bot?
Joe Medved
 
Big data, data science & fast data
Kunal Joshi
 
PHPConf.Asia - The Sound of PHP
Steven Cooper
 
Textual Interface - the rise of the chatbot
Steven Cooper
 
Big Data and Fast Data - big and fast combined, is it possible?
Guido Schmutz
 
Ad

Similar to How to Build a Serverless Chatbot for $0? (20)

PDF
Build a great conversationalist using Azure Bot Service 2018
Radoslav Gatev
 
PPTX
Microsoft bot framework in azure
Shahriar Hossain
 
PDF
Bot-Tender: A Chat Bot Walks into a Bar (2020)
Eran Stiller
 
PDF
Writing a slack chatbot mxlos
Jesus Manuel Olivas
 
PDF
Writing a slack chatbot DrupalCampLA
Jesus Manuel Olivas
 
PPTX
Clever data building a chatbot from your database
Luis Beltran
 
KEY
Getting Started with Twilio
Michael Kimsal
 
PPTX
virtual-2021-data.sql_.saturday.la-Building database interactions with users ...
Luis Beltran
 
PDF
Chatbots : Repenser la Relation Clients et Employés avec les technologies Azure
Guillaume Meyer
 
PDF
Real-Time Chat with Node.js & Socket.io
Naresh IT
 
PPTX
Introduction to BOT Framework- Global Azure Bootcamp 2017
Jalpesh Vadgama
 
PPTX
Build intelligent chatbot with bot framework
Puja Pramudya
 
PDF
Create a Bot with Delphi and Telegram - ITDevCon 2016
Marco Breveglieri
 
PPTX
CrEATING A CHATBOT 3(2).pptx
KrishnaShukla92
 
PDF
Writing a slack chatbot seattle
Jesus Manuel Olivas
 
PDF
Intro to chatbots
Chester Chin
 
PPTX
Whats a Chat bot
Alexandre Marreiros
 
PDF
Bots are the New Apps: Building with the Bot Framework & Language Understanding
Nick Landry
 
PPSX
Introduction to Microsoft Bot Framework
Alok Rajasukumaran
 
PPTX
ITCamp 2017 - Laurent Ellerbach - Bot. You said bot? Let's build a bot then...
ITCamp
 
Build a great conversationalist using Azure Bot Service 2018
Radoslav Gatev
 
Microsoft bot framework in azure
Shahriar Hossain
 
Bot-Tender: A Chat Bot Walks into a Bar (2020)
Eran Stiller
 
Writing a slack chatbot mxlos
Jesus Manuel Olivas
 
Writing a slack chatbot DrupalCampLA
Jesus Manuel Olivas
 
Clever data building a chatbot from your database
Luis Beltran
 
Getting Started with Twilio
Michael Kimsal
 
virtual-2021-data.sql_.saturday.la-Building database interactions with users ...
Luis Beltran
 
Chatbots : Repenser la Relation Clients et Employés avec les technologies Azure
Guillaume Meyer
 
Real-Time Chat with Node.js & Socket.io
Naresh IT
 
Introduction to BOT Framework- Global Azure Bootcamp 2017
Jalpesh Vadgama
 
Build intelligent chatbot with bot framework
Puja Pramudya
 
Create a Bot with Delphi and Telegram - ITDevCon 2016
Marco Breveglieri
 
CrEATING A CHATBOT 3(2).pptx
KrishnaShukla92
 
Writing a slack chatbot seattle
Jesus Manuel Olivas
 
Intro to chatbots
Chester Chin
 
Whats a Chat bot
Alexandre Marreiros
 
Bots are the New Apps: Building with the Bot Framework & Language Understanding
Nick Landry
 
Introduction to Microsoft Bot Framework
Alok Rajasukumaran
 
ITCamp 2017 - Laurent Ellerbach - Bot. You said bot? Let's build a bot then...
ITCamp
 
Ad

More from Mobile Monday Srbija (20)

PPTX
How to be a mobile worldman!
Mobile Monday Srbija
 
PPTX
Sunthetic
Mobile Monday Srbija
 
PDF
Vip mobile - Probudi(ti) spavače
Mobile Monday Srbija
 
PDF
Virtuelna Stvarnost - Talas koji dolazi
Mobile Monday Srbija
 
PPTX
Telenor Capture - from idea to product
Mobile Monday Srbija
 
PDF
Razvoj mobiilog interneta i mreže u Srbiji
Mobile Monday Srbija
 
PDF
4G caster na SmartLiving.io platformi
Mobile Monday Srbija
 
PDF
Building mobile apps with Windows Azure mobile services
Mobile Monday Srbija
 
PDF
Windows phone 8
Mobile Monday Srbija
 
PPTX
B92 - Sledeća stanica
Mobile Monday Srbija
 
PPTX
Bing translator
Mobile Monday Srbija
 
PDF
Mobile UX - Kako napraviti mobilnu aplikaciju koju će neko zaista hteti da ko...
Mobile Monday Srbija
 
PDF
Mobile Web Apps are Awesome!
Mobile Monday Srbija
 
PDF
Mobilno oglašavanje
Mobile Monday Srbija
 
PPTX
Mobilni marketing - kako pogoditi u centar?
Mobile Monday Srbija
 
PPTX
Razvoj modela oglašavanja za mobilne platforme
Mobile Monday Srbija
 
PDF
The World Served on a Tablet
Mobile Monday Srbija
 
PPS
biZbuZZ 2011
Mobile Monday Srbija
 
PDF
Razvoj tablet aplikacija
Mobile Monday Srbija
 
PPTX
Tablet uređaji u Srbiji - tehnologija za svakoga
Mobile Monday Srbija
 
How to be a mobile worldman!
Mobile Monday Srbija
 
Vip mobile - Probudi(ti) spavače
Mobile Monday Srbija
 
Virtuelna Stvarnost - Talas koji dolazi
Mobile Monday Srbija
 
Telenor Capture - from idea to product
Mobile Monday Srbija
 
Razvoj mobiilog interneta i mreže u Srbiji
Mobile Monday Srbija
 
4G caster na SmartLiving.io platformi
Mobile Monday Srbija
 
Building mobile apps with Windows Azure mobile services
Mobile Monday Srbija
 
Windows phone 8
Mobile Monday Srbija
 
B92 - Sledeća stanica
Mobile Monday Srbija
 
Bing translator
Mobile Monday Srbija
 
Mobile UX - Kako napraviti mobilnu aplikaciju koju će neko zaista hteti da ko...
Mobile Monday Srbija
 
Mobile Web Apps are Awesome!
Mobile Monday Srbija
 
Mobilno oglašavanje
Mobile Monday Srbija
 
Mobilni marketing - kako pogoditi u centar?
Mobile Monday Srbija
 
Razvoj modela oglašavanja za mobilne platforme
Mobile Monday Srbija
 
The World Served on a Tablet
Mobile Monday Srbija
 
biZbuZZ 2011
Mobile Monday Srbija
 
Razvoj tablet aplikacija
Mobile Monday Srbija
 
Tablet uređaji u Srbiji - tehnologija za svakoga
Mobile Monday Srbija
 

Recently uploaded (20)

PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PPTX
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
PPTX
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PDF
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
PPTX
The Role of a PHP Development Company in Modern Web Development
SEO Company for School in Delhi NCR
 
DOCX
Import Data Form Excel to Tally Services
Tally xperts
 
PDF
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PPT
MergeSortfbsjbjsfk sdfik k
RafishaikIT02044
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PDF
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PDF
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
The Role of a PHP Development Company in Modern Web Development
SEO Company for School in Delhi NCR
 
Import Data Form Excel to Tally Services
Tally xperts
 
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
MergeSortfbsjbjsfk sdfik k
RafishaikIT02044
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 

How to Build a Serverless Chatbot for $0?