SlideShare une entreprise Scribd logo
1  sur  34
Télécharger pour lire hors ligne
Your Next App Might Just Be A Bot:
Building Conversational Bots with Python
PyCon Nigeria | David Asamu
about.me/david_asamu
Before we get
started
Here is why you
should pay attention
Interesting Statistics
● 25% of installed apps are never used.
● The average Android app loses 77% of its daily active users
within the first 3 days.
- Google's consumer marketing insight
What is the implication of
the stats above?
Apps trying to get to
the user’s home
screen
More Interesting Statistics
● Just Yesterday, after we kicked off the conference, Facebook announced that
Messenger now has 1.3 billion active monthly users
● Whatsapp has 1.3 billion active monthly users as well
● 30% of all time spent online is now allocated to social media interaction
● By 2020, over 80% of businesses are expected to have some sort of chatbot
automation implemented (Business Insider, 2016)
Bot Statistics
WAIT FOR IT …..
Your Next App Might Just Be a Bot: Building Conversational Bots with Python
Why your Business needs a bot
In the coming years, with the
rise of general purpose
assistants, bots will
eventually be in the fabric of
everything, not just in
Messaging Apps.
Your Next App Might Just Be a Bot: Building Conversational Bots with Python
What is a bot
anyway?
Your Next App Might Just Be a Bot: Building Conversational Bots with Python
Your Next App Might Just Be a Bot: Building Conversational Bots with Python
Building
Conversational
Agents
CONVERSATIONAL ENGINE
1 2 3
A. what to do before you start coding
● Understand precisely the role of the bot, make a list of service
● Read the documentation of the platform
● understand what is possible, what is not
How to set up the
project?
A. Pick the right tools
B. what should your
project structure look
like?
● webhook
● engine
● response handler
What to do next?
1. Break your idea into services
A service is a broad classification of the user requests
your bot would be able to handle. For an e-commerce
company, services could include commerce service,
user complaint service, FAQs service, etc
2. Guidelines for writing services
● A service should be simple enough to describe in a
sentence.
● A service must not be ambiguous, it should have one
and only one meaning
3. Describe each service using intents
Services can further be broken down using intents to
zero-in on exactly what the user wants.
Matching the right intent is very important as this
determines what data to expect/request from the user
and when the conversation can be marked as complete
4. Train a classifier to recognize intents
and services
● Get quality data set for training
● Learn from user interaction
5. Extract Entities and Parameters
● This involves going from sentences to structured data that can serve as
inputs to other systems or microservices.
● Use natural language processing to get names, addresses, time and other
entities of interest.
● Take advantage of suggested responses
● Use slot-filling to handle incomplete request from the user
6. Build a webhook for fulfilment
● After a complete user interaction, the user request has to be processed.
● This typically involves setting up a Rest API
● The API handles fulfilments such as saving the extracted data to the
database, feeding the data to other systems as well as triggering other
independent services, or even a physical action such as a man delivering
pizza.
How to go about it?
Start Small,
iterate
CHALLENGES
Scaling
Handling Big Data
Getting quality data
for training
CONCLUSION
Understanding what’s possible and what isn’t with today’s AI and machine
learning capabilities is key for anyone looking to use such technology to build
or enhance applications. If you’re not skeptical enough about claims being
made about current capabilities, you could waste enormous amounts of time
and money trying to do something that can’t (yet) be done. On the other
hand, if you’re too skeptical, you risk missing opportunities to deploy today’s
AI tech in incredibly useful and profitable ways
Source - TechCrunch
THANK YOU!
Questions and Answer
Sessions
(Go easy on me!)

Contenu connexe

Similaire à Your Next App Might Just Be a Bot: Building Conversational Bots with Python

Product Launch Portfolio.pdf
Product Launch Portfolio.pdfProduct Launch Portfolio.pdf
Product Launch Portfolio.pdfJOHNADEMILUYI3
 
INTELLIGENT CHATBOT FOR COLLEGE ENQUIRY SYSTEM
INTELLIGENT CHATBOT FOR COLLEGE ENQUIRY SYSTEMINTELLIGENT CHATBOT FOR COLLEGE ENQUIRY SYSTEM
INTELLIGENT CHATBOT FOR COLLEGE ENQUIRY SYSTEMIRJET Journal
 
Xyz Software Games Project Management
Xyz Software Games Project ManagementXyz Software Games Project Management
Xyz Software Games Project ManagementKristin Oliver
 
Intranet Project: Roll-out Strategy & Pain Points to consider
Intranet Project: Roll-out Strategy & Pain Points to considerIntranet Project: Roll-out Strategy & Pain Points to consider
Intranet Project: Roll-out Strategy & Pain Points to considereXo Platform
 
HealthCare ChatBot Using Machine Learning
HealthCare ChatBot Using Machine LearningHealthCare ChatBot Using Machine Learning
HealthCare ChatBot Using Machine LearningIRJET Journal
 
What to decide before going in for an intranet
What to decide before going in for an intranetWhat to decide before going in for an intranet
What to decide before going in for an intranetSridutt YS
 
IRJET - Interaction based Expert System
IRJET -  	  Interaction based Expert SystemIRJET -  	  Interaction based Expert System
IRJET - Interaction based Expert SystemIRJET Journal
 
Ai app development venkat vajradhar - medium
Ai app development   venkat vajradhar - mediumAi app development   venkat vajradhar - medium
Ai app development venkat vajradhar - mediumvenkatvajradhar1
 
Data analytic for mobile app development
Data analytic for mobile app developmentData analytic for mobile app development
Data analytic for mobile app developmentTrieu Nguyen
 
Data Analytics for Mobile App Development
Data Analytics for Mobile App DevelopmentData Analytics for Mobile App Development
Data Analytics for Mobile App DevelopmentBarcamp Saigon
 
IIBA® Brisbane - The Rise of ChatGPT, Chatbots and AI
IIBA® Brisbane - The Rise of ChatGPT, Chatbots and AIIIBA® Brisbane - The Rise of ChatGPT, Chatbots and AI
IIBA® Brisbane - The Rise of ChatGPT, Chatbots and AIAustraliaChapterIIBA
 
BANKING CHATBOT USING NLP AND MACHINE LEARNING ALGORITHMS
BANKING CHATBOT USING NLP AND MACHINE LEARNING ALGORITHMSBANKING CHATBOT USING NLP AND MACHINE LEARNING ALGORITHMS
BANKING CHATBOT USING NLP AND MACHINE LEARNING ALGORITHMSIRJET Journal
 
Integrating Bots into your Digital Workplace Strategy #spsne
Integrating Bots into your Digital Workplace Strategy #spsneIntegrating Bots into your Digital Workplace Strategy #spsne
Integrating Bots into your Digital Workplace Strategy #spsneKanwal Khipple
 
Demat account 1
Demat account 1Demat account 1
Demat account 1kammy virk
 
industrial training report
industrial training reportindustrial training report
industrial training reportLove Kothari
 

Similaire à Your Next App Might Just Be a Bot: Building Conversational Bots with Python (20)

Internship report
Internship reportInternship report
Internship report
 
IRJET- Helping Hand
IRJET- Helping HandIRJET- Helping Hand
IRJET- Helping Hand
 
Product Launch Portfolio.pdf
Product Launch Portfolio.pdfProduct Launch Portfolio.pdf
Product Launch Portfolio.pdf
 
INTELLIGENT CHATBOT FOR COLLEGE ENQUIRY SYSTEM
INTELLIGENT CHATBOT FOR COLLEGE ENQUIRY SYSTEMINTELLIGENT CHATBOT FOR COLLEGE ENQUIRY SYSTEM
INTELLIGENT CHATBOT FOR COLLEGE ENQUIRY SYSTEM
 
Xyz Software Games Project Management
Xyz Software Games Project ManagementXyz Software Games Project Management
Xyz Software Games Project Management
 
Intranet Project: Roll-out Strategy & Pain Points to consider
Intranet Project: Roll-out Strategy & Pain Points to considerIntranet Project: Roll-out Strategy & Pain Points to consider
Intranet Project: Roll-out Strategy & Pain Points to consider
 
JIT Project
JIT ProjectJIT Project
JIT Project
 
HealthCare ChatBot Using Machine Learning
HealthCare ChatBot Using Machine LearningHealthCare ChatBot Using Machine Learning
HealthCare ChatBot Using Machine Learning
 
What to decide before going in for an intranet
What to decide before going in for an intranetWhat to decide before going in for an intranet
What to decide before going in for an intranet
 
IRJET - Interaction based Expert System
IRJET -  	  Interaction based Expert SystemIRJET -  	  Interaction based Expert System
IRJET - Interaction based Expert System
 
Ai app development venkat vajradhar - medium
Ai app development   venkat vajradhar - mediumAi app development   venkat vajradhar - medium
Ai app development venkat vajradhar - medium
 
Rajput Bandhu
Rajput BandhuRajput Bandhu
Rajput Bandhu
 
Data analytic for mobile app development
Data analytic for mobile app developmentData analytic for mobile app development
Data analytic for mobile app development
 
Data Analytics for Mobile App Development
Data Analytics for Mobile App DevelopmentData Analytics for Mobile App Development
Data Analytics for Mobile App Development
 
Does your Business Really Need a Mobile App?
Does your Business Really Need a Mobile App?Does your Business Really Need a Mobile App?
Does your Business Really Need a Mobile App?
 
IIBA® Brisbane - The Rise of ChatGPT, Chatbots and AI
IIBA® Brisbane - The Rise of ChatGPT, Chatbots and AIIIBA® Brisbane - The Rise of ChatGPT, Chatbots and AI
IIBA® Brisbane - The Rise of ChatGPT, Chatbots and AI
 
BANKING CHATBOT USING NLP AND MACHINE LEARNING ALGORITHMS
BANKING CHATBOT USING NLP AND MACHINE LEARNING ALGORITHMSBANKING CHATBOT USING NLP AND MACHINE LEARNING ALGORITHMS
BANKING CHATBOT USING NLP AND MACHINE LEARNING ALGORITHMS
 
Integrating Bots into your Digital Workplace Strategy #spsne
Integrating Bots into your Digital Workplace Strategy #spsneIntegrating Bots into your Digital Workplace Strategy #spsne
Integrating Bots into your Digital Workplace Strategy #spsne
 
Demat account 1
Demat account 1Demat account 1
Demat account 1
 
industrial training report
industrial training reportindustrial training report
industrial training report
 

Dernier

UiPath Community: AI for UiPath Automation Developers
UiPath Community: AI for UiPath Automation DevelopersUiPath Community: AI for UiPath Automation Developers
UiPath Community: AI for UiPath Automation DevelopersUiPathCommunity
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesMd Hossain Ali
 
GenAI and AI GCC State of AI_Object Automation Inc
GenAI and AI GCC State of AI_Object Automation IncGenAI and AI GCC State of AI_Object Automation Inc
GenAI and AI GCC State of AI_Object Automation IncObject Automation
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6DianaGray10
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationIES VE
 
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxMatsuo Lab
 
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...Aggregage
 
Introduction to Quantum Computing
Introduction to Quantum ComputingIntroduction to Quantum Computing
Introduction to Quantum ComputingGDSC PJATK
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.YounusS2
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7DianaGray10
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URLRuncy Oommen
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Will Schroeder
 
PicPay - GenAI Finance Assistant - ChatGPT for Customer Service
PicPay - GenAI Finance Assistant - ChatGPT for Customer ServicePicPay - GenAI Finance Assistant - ChatGPT for Customer Service
PicPay - GenAI Finance Assistant - ChatGPT for Customer ServiceRenan Moreira de Oliveira
 
Things you didn't know you can use in your Salesforce
Things you didn't know you can use in your SalesforceThings you didn't know you can use in your Salesforce
Things you didn't know you can use in your SalesforceMartin Humpolec
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsSeth Reyes
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintMahmoud Rabie
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024SkyPlanner
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1DianaGray10
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxGDSC PJATK
 
Babel Compiler - Transforming JavaScript for All Browsers.pptx
Babel Compiler - Transforming JavaScript for All Browsers.pptxBabel Compiler - Transforming JavaScript for All Browsers.pptx
Babel Compiler - Transforming JavaScript for All Browsers.pptxYounusS2
 

Dernier (20)

UiPath Community: AI for UiPath Automation Developers
UiPath Community: AI for UiPath Automation DevelopersUiPath Community: AI for UiPath Automation Developers
UiPath Community: AI for UiPath Automation Developers
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
 
GenAI and AI GCC State of AI_Object Automation Inc
GenAI and AI GCC State of AI_Object Automation IncGenAI and AI GCC State of AI_Object Automation Inc
GenAI and AI GCC State of AI_Object Automation Inc
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6
 
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
 
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptx
 
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
 
Introduction to Quantum Computing
Introduction to Quantum ComputingIntroduction to Quantum Computing
Introduction to Quantum Computing
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URL
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
 
PicPay - GenAI Finance Assistant - ChatGPT for Customer Service
PicPay - GenAI Finance Assistant - ChatGPT for Customer ServicePicPay - GenAI Finance Assistant - ChatGPT for Customer Service
PicPay - GenAI Finance Assistant - ChatGPT for Customer Service
 
Things you didn't know you can use in your Salesforce
Things you didn't know you can use in your SalesforceThings you didn't know you can use in your Salesforce
Things you didn't know you can use in your Salesforce
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and Hazards
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership Blueprint
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptx
 
Babel Compiler - Transforming JavaScript for All Browsers.pptx
Babel Compiler - Transforming JavaScript for All Browsers.pptxBabel Compiler - Transforming JavaScript for All Browsers.pptx
Babel Compiler - Transforming JavaScript for All Browsers.pptx
 

Your Next App Might Just Be a Bot: Building Conversational Bots with Python

  • 1. Your Next App Might Just Be A Bot: Building Conversational Bots with Python PyCon Nigeria | David Asamu about.me/david_asamu
  • 3. Here is why you should pay attention
  • 4. Interesting Statistics ● 25% of installed apps are never used. ● The average Android app loses 77% of its daily active users within the first 3 days. - Google's consumer marketing insight
  • 5. What is the implication of the stats above?
  • 6. Apps trying to get to the user’s home screen
  • 7. More Interesting Statistics ● Just Yesterday, after we kicked off the conference, Facebook announced that Messenger now has 1.3 billion active monthly users ● Whatsapp has 1.3 billion active monthly users as well ● 30% of all time spent online is now allocated to social media interaction ● By 2020, over 80% of businesses are expected to have some sort of chatbot automation implemented (Business Insider, 2016)
  • 9. WAIT FOR IT …..
  • 11. Why your Business needs a bot
  • 12. In the coming years, with the rise of general purpose assistants, bots will eventually be in the fabric of everything, not just in Messaging Apps.
  • 14. What is a bot anyway?
  • 19. A. what to do before you start coding ● Understand precisely the role of the bot, make a list of service ● Read the documentation of the platform ● understand what is possible, what is not
  • 20. How to set up the project?
  • 21. A. Pick the right tools
  • 22. B. what should your project structure look like? ● webhook ● engine ● response handler
  • 23. What to do next?
  • 24. 1. Break your idea into services A service is a broad classification of the user requests your bot would be able to handle. For an e-commerce company, services could include commerce service, user complaint service, FAQs service, etc
  • 25. 2. Guidelines for writing services ● A service should be simple enough to describe in a sentence. ● A service must not be ambiguous, it should have one and only one meaning
  • 26. 3. Describe each service using intents Services can further be broken down using intents to zero-in on exactly what the user wants. Matching the right intent is very important as this determines what data to expect/request from the user and when the conversation can be marked as complete
  • 27. 4. Train a classifier to recognize intents and services ● Get quality data set for training ● Learn from user interaction
  • 28. 5. Extract Entities and Parameters ● This involves going from sentences to structured data that can serve as inputs to other systems or microservices. ● Use natural language processing to get names, addresses, time and other entities of interest. ● Take advantage of suggested responses ● Use slot-filling to handle incomplete request from the user
  • 29. 6. Build a webhook for fulfilment ● After a complete user interaction, the user request has to be processed. ● This typically involves setting up a Rest API ● The API handles fulfilments such as saving the extracted data to the database, feeding the data to other systems as well as triggering other independent services, or even a physical action such as a man delivering pizza.
  • 30. How to go about it?
  • 32. CHALLENGES Scaling Handling Big Data Getting quality data for training
  • 33. CONCLUSION Understanding what’s possible and what isn’t with today’s AI and machine learning capabilities is key for anyone looking to use such technology to build or enhance applications. If you’re not skeptical enough about claims being made about current capabilities, you could waste enormous amounts of time and money trying to do something that can’t (yet) be done. On the other hand, if you’re too skeptical, you risk missing opportunities to deploy today’s AI tech in incredibly useful and profitable ways Source - TechCrunch
  • 34. THANK YOU! Questions and Answer Sessions (Go easy on me!)