Slide 1

Slide 1 text

> < next previous Designing a BOT Kaushik Das twitter.com/theKaushik

Slide 2

Slide 2 text

> < next previous What is a bot?

Slide 3

Slide 3 text

> < next previous No we are not discussing that…

Slide 4

Slide 4 text

> < next previous Conversational Intelegent Bot Lets discuss how to build a simple

Slide 5

Slide 5 text

For the sake of an use case lets say we want to create a bot who can cook food for us. Say we have a robot with all functioning mechanical parts and all we need to do now is build a brain for the robot. If you think of cooking its all about formula and set of processes (Ignore Gordon Ramsay for a moment and his cooking instincts). So if you think of it in a simple world all this brain needs to do is understand what i am asking to cook and use the formula to do set of activity to cook the item. USE CASE > < next previous Kaushik’s Future Kitchen

Slide 6

Slide 6 text

> < next previous Introducing Samantha Good cook and loves to chat

Slide 7

Slide 7 text

> < next previous DESIGN

Slide 8

Slide 8 text

> < next previous Decide Purpose ‣ Molecular design approach, think as one bot is good at solving one problem. ‣ Multipurpose bots are basically a cluster of multiple bots COOKING What to cook? For how many people? How to cook? What groceries i need? How do i serve? cook bot should do you need another bot

Slide 9

Slide 9 text

> < next previous Purpose is your Intent

Slide 10

Slide 10 text

> < next previous What to cook?

Slide 11

Slide 11 text

> < next previous Decide Trigger Words ‣ Imagine this as keyword which will decide certain flow ‣ Your bot need to know that keyword Cake means a Food item and not shit ‣ Need training ‣ Exponentially increases estimate for cascading functionalities, cake vs dung cake ‣ Analogy would be think it as a new born baby and you are trying to teach her how the world works

Slide 12

Slide 12 text

> < next previous Trigger Keywords is your Entities

Slide 13

Slide 13 text

> < next previous

Slide 14

Slide 14 text

> < next previous Integration ‣ This is where you will take it to next level of intelligence. ‣ Before we jump to how integration works for our bot; lets discuss some fundamentals for this process.

Slide 15

Slide 15 text

> < next previous High level view QUERY PROCESS DECIDE INTENT I am hungry? With NLP decide its intent. Do you want some pizza? I can cook something

Slide 16

Slide 16 text

> < next previous High level view QUERY PROCESS DECIDE INTENT SPEECH PROCESSING DATA INTELLEGENCE

Slide 17

Slide 17 text

> < next previous So where can we start? SPEECH PROCESSING DATA INTELLEGENCE SPEECH PROCESSING: • Natural language Processing (NLP) • API.AI , FB Deep Text DATA: • Data is knowledge. • IBM Data, Geo Data, Alexa Skill Kit , Wolfram Alpha INTELLEGENCE: • Decision making, Probability. • Rule based AI for simple tasks, Baye’s Theorem of Probability

Slide 18

Slide 18 text

> < next previous so back to Integration

Slide 19

Slide 19 text

> < next previous Integrating with NLP & .. ‣ Most new gen AI platforms gives NLP OOB. ‣ Multi lingual NLP is still not up to the mark In future we will have more complex task available just using an on-off switch.

Slide 20

Slide 20 text

> < next previous Integrating Complex Services ‣ Understand the activity it needs to achieve, multiple end point vs single end point. ‣ Time taken to execute, Synchronous vs asynchronous ‣ WTF Webhooks and timeouts (Sample webhook url below for you to try) Approach 1 APP API.AI CUSTOME AI SERVICE Approach 2 APP CUSTOME AI SERVICE API.AI Git Hub: https://goo.gl/2Xaijb

Slide 21

Slide 21 text

> < next previous Integration is your Fulfilment

Slide 22

Slide 22 text

> < next previous At intent level

Slide 23

Slide 23 text

> < next previous PLAY TIME

Slide 24

Slide 24 text

> < next previous Lets do a social experiment ( Dec 8 to Dec 31, 2017 ) ‣ Lets train the baby cook!!! ‣ Ask her every possible thing. ‣ Every weekend I will re - train her. http://sntech.xyz/bot/cook?talk=who are you? (Sorry if the url is down you can watch the demo here: https://www.youtube.com/ watch?v=V_us1GSz4TI )

Slide 25

Slide 25 text

> < next previous Source code ‣ Reach out to me at twitter.com/theKaushik if you need the source code to play around.

Slide 26

Slide 26 text

> < next previous Thanks to.. http://www.fatsecret.com/ https://api.ai/

Slide 27

Slide 27 text

> < next previous APPENDIX

Slide 28

Slide 28 text

> < next previous In 1997, Watson precursor, IBM’s Deep Blue beat the reigning chess grand master Garry Karparov in a famous man-vs- machine match. After machines repeated their victories in a few more matches human largely lost interest https://www.youtube.com/v/ NJarxpYyoFI&start=06&end=109

Slide 29

Slide 29 text

> < next previous But thats not end of the story…. If Kasparov had the same instance access to massive database of all possible moves that Deep Blue had he could have performed better.. If this database tool was fair for an AI, why not for a human? To pursue the idea Kasparov pioneered the concept of Man+Machine matches like mixed martial art where players can use what ever technique they want.

Slide 30

Slide 30 text

> < next previous SAMANTHA 2.0 THANK YOU http://twitter.com/theKaushik