SlideShare a Scribd company logo
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!)

More Related Content

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

DOCX
Internship report
Alok Chaudhary
 
PDF
IRJET- Helping Hand
IRJET Journal
 
PDF
7 of the best automated AI tools ready for you to test today
SOFTTECHHUB
 
PDF
Product Launch Portfolio.pdf
JOHNADEMILUYI3
 
PDF
INTELLIGENT CHATBOT FOR COLLEGE ENQUIRY SYSTEM
IRJET Journal
 
PPTX
Intranet Project: Roll-out Strategy & Pain Points to consider
eXo Platform
 
PDF
Top .NET development companies to outsource
Mindfire LLC
 
PDF
8 Step to Build Your lot-Based Mobile Parking System.pdf
Expert App Devs
 
PDF
JIT Project
Stephanie King
 
PDF
HealthCare ChatBot Using Machine Learning
IRJET Journal
 
DOCX
What to decide before going in for an intranet
Sridutt YS
 
PDF
IRJET - Interaction based Expert System
IRJET Journal
 
PDF
Ai app development venkat vajradhar - medium
venkatvajradhar1
 
PPTX
Rajput Bandhu
Vaidarbhi17
 
PDF
Data Analytics for Mobile App Development
Barcamp Saigon
 
PDF
Data analytic for mobile app development
Trieu Nguyen
 
PDF
Does your Business Really Need a Mobile App?
Indus Net Technologies Private Limited
 
PDF
IIBA® Brisbane - The Rise of ChatGPT, Chatbots and AI
AustraliaChapterIIBA
 
PDF
BANKING CHATBOT USING NLP AND MACHINE LEARNING ALGORITHMS
IRJET Journal
 
PPTX
Integrating Bots into your Digital Workplace Strategy #spsne
Kanwal Khipple
 
Internship report
Alok Chaudhary
 
IRJET- Helping Hand
IRJET Journal
 
7 of the best automated AI tools ready for you to test today
SOFTTECHHUB
 
Product Launch Portfolio.pdf
JOHNADEMILUYI3
 
INTELLIGENT CHATBOT FOR COLLEGE ENQUIRY SYSTEM
IRJET Journal
 
Intranet Project: Roll-out Strategy & Pain Points to consider
eXo Platform
 
Top .NET development companies to outsource
Mindfire LLC
 
8 Step to Build Your lot-Based Mobile Parking System.pdf
Expert App Devs
 
JIT Project
Stephanie King
 
HealthCare ChatBot Using Machine Learning
IRJET Journal
 
What to decide before going in for an intranet
Sridutt YS
 
IRJET - Interaction based Expert System
IRJET Journal
 
Ai app development venkat vajradhar - medium
venkatvajradhar1
 
Rajput Bandhu
Vaidarbhi17
 
Data Analytics for Mobile App Development
Barcamp Saigon
 
Data analytic for mobile app development
Trieu Nguyen
 
Does your Business Really Need a Mobile App?
Indus Net Technologies Private Limited
 
IIBA® Brisbane - The Rise of ChatGPT, Chatbots and AI
AustraliaChapterIIBA
 
BANKING CHATBOT USING NLP AND MACHINE LEARNING ALGORITHMS
IRJET Journal
 
Integrating Bots into your Digital Workplace Strategy #spsne
Kanwal Khipple
 

Recently uploaded (20)

PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Biography of Daniel Podor.pdf
Daniel Podor
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Ad

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!)