SlideShare a Scribd company logo
enfore Chatbot
Nils Grabbert, Miroslav Zoričák
Run your business
anywhere, anytime and
on any device: in your
store, at the office, in
your warehouse, on-site
with a customer or
supplier and on the go -
using a smart phone,
tablet, computer or
enfore Business Device.
enfore is building an open business platform to develop solutions that help 200
million small businesses around the world to run their business
data science @ enfore
• 3 years ago we started to
build everything from scratch
• building the infrastructure
• data/ml pipelines
• prediction services
• taking a DevOps approach
in everything we do
• now a team of 9 employees
• able to scale team and
infrastructure
Outline
1. What are Chatbots and when to use them
2. Who is doing Chatbots and how
3. How we approach it at enfore (Business)
4. enfore Chatbot implementation details (Engineering)
5. Machine learning overview and what we use (Data Science)
6. Conclusion
B E DS
What are we trying to do here?
Open Domain
• General questions about anything
• Little practical value
• Quickly devolves (see Microsoft Tay)
Closed Domain
• Follow some agenda
• Could replace humans on 1st Tier
Support
• What we are interested in
Machine Dialogue
B E DS
An Alternative Interface
Is String-in-String-out a good interface for what we’re trying to achieve?
Linear tasks - better off with forms
• Complex questionnaires
• Multi-page forms
Exploratory tasks - may benefit from chatbots
• FAQ - Bot could detect differently worded questions
• Recommendations
Do not pretend you are a human!
Chatbot
Text
Text
B E DS
Current State of the Art
Amazon Alexa, Apple Siri, Google Assistant
• Same thing wrapped with Text to Speech
• Inspired our terminology (Intents, Utterances)
• Often started out as complex question trees
• Have enormous datasets to train on
Other 140 Chatbot related startups on VentureRadar
Can fulfill basic commands but, not much more
Chatbot
Text
Text
Text to
Speech
Voice
Voice
B E DS
What do we expect from our Chatbot?
Understand requests in English, in a narrow set of domains
Be able to be customized by our customers
• Must be generic enough to accommodate future use cases
Use cases:
• Opening Hours
• Product Search
• Restaurant Availability
• Hotel Room Availability
• More to come …
B E DS
What we have implemented?
Intent classification
• Customer intents
• Help, Debug, Confirm, Cancel, Greet intents
Parameter extraction (multiple at once)
• Dates, Times, Durations, Integers, Locations
Parameter inference
• Arrival Date + Duration = Departure Date
Validation
• Departure date > Arrival Date
• Min Duration 3 days
Information retrieval
Intent Confirmation
B E DS
High Level Architecture
NLP Service
• Classify Intents
• Extract Dates, Integers, etc.
Chatbot
• Customer Logic
• Intents
• Actions
• Parameters
Webservice
Chatbot
DB
NLP Service
B E DS
Actor Responsibilities
★ Supported Intents
★ Trigger Utterances
★ Localizations
★ Personalization
Personality
Customer
★ DB Interface
★ Action Interface
★ Parameter Interface
Data
Application
★ Maintain
conversation
★ Translate requests
into DB queries
★ Retrieve information
Conversation
Chatbot
B E DS
Chatbot Workflow
Intent Classification
• Using Dynamic, customer-specific intent list
• Handle previous intents
Parameter Extraction
• Remembers the parameter it last asked about
• Attempts to greedily fill as many params as
possible
Replies
• Asks about the next unfilled parameter
• Responds with information
Parameter inference
Action Execution
Intent Classification
Parameter Extraction
Response Formulation
Chatbot
B E DS
Intent Classification
Objectives
• Given a list of intents and query text, choose
the best matching one
• If none matches well enough, don’t choose any
• Intents evolve over time, so be prepared to
handle that
Simple Methods
• Naïve Bayes BoW
• POS Matching
Deep Methods
• RNN, LSTM, Convolutional NN
• Word Embeddings, Clustering
• VAE, GAN
B E DS
Intent Classification
Parameter Extraction
Response Formulation
Chatbot
Parameter Extraction
CoreNLP
• Java Library from Stanford
• Big and relatively slow (1,5 GB JAR)
• Tokenization, Lemmatization, POS Tagging, NER
Extraction, Date and Time Parsing
Dates
• Always anchored around today
• Tomorrow, Next Monday, Two days from now
Durations
• 2 hours, 1:35
Numbers
• 5 people, 2 tables
B E DS
Intent Classification
Parameter Extraction
Response Formulation
Chatbot
Response Formulation
Are there parameters with missing values?
• Ask using customer-defined questions
• “When would you like to arrive?”
Did we understand the last query?
• Chatbot asked about arrival date and the User said “5
people”
• Unable to parse some representations
• Unable to identify intent
Information Retrieval
• “Here is our availability for next week:”
Intent Confirmation
• “Are you sure you want to make this reservation?”
B E DS
Intent Classification
Parameter Extraction
Response Formulation
Chatbot
Ideas for the Future
Improve intent classification
• Use ideas mentioned in Deep Methods Intent Classification in production
• Skip-thought, Sentence-to-vec, CNNs
Implement ratings and feedback
• Let the user provide feedback after an intent was completed
• Useful for future training
Make it appear more human
• Sense the tone of the person
• Add more polite chit-chat abilities
💡
B E DS
Conclusion
Think long and hard before deploying a chatbot
• Some use cases are better served traditionally
• Only use in Closed Domain
Simple solutions get you 90% of the way
• Naïve Bayes and simple rule-based solutions work well
• Use them to prototype the rest of your system
Watch the Deep Learning developments
• In 2016: Google’s zero-shot machine translation
• In 2017: Tensorflow Fold and Tree-based NNs
🤖
Thank you!
Questions?

More Related Content

Similar to enfore Chatbot HamburgAI

Kumar rohit resume
Kumar rohit resumeKumar rohit resume
Kumar rohit resume
Kumar Rohit
 
Deep learning for NLP
Deep learning for NLPDeep learning for NLP
Deep learning for NLP
Shishir Choudhary
 
Why other ppl_dont_get_it
Why other ppl_dont_get_itWhy other ppl_dont_get_it
Why other ppl_dont_get_it
jaxLondonConference
 
Introduction to Chatbots
Introduction to ChatbotsIntroduction to Chatbots
Introduction to Chatbots
Priyab Satoshi
 
Juliette Melton at BayCHI: Real World Remote Research
Juliette Melton at BayCHI: Real World Remote ResearchJuliette Melton at BayCHI: Real World Remote Research
Juliette Melton at BayCHI: Real World Remote Research
BayCHI
 
Juliette Melton at BayCHI: Real World Remote Research
Juliette Melton at BayCHI: Real World Remote ResearchJuliette Melton at BayCHI: Real World Remote Research
Juliette Melton at BayCHI: Real World Remote Research
BayCHI
 
Robotics, Search and AI with Solr, MyRobotLab, and Deeplearning4j
Robotics, Search and AI with Solr, MyRobotLab, and Deeplearning4jRobotics, Search and AI with Solr, MyRobotLab, and Deeplearning4j
Robotics, Search and AI with Solr, MyRobotLab, and Deeplearning4j
Kevin Watters
 
The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...
The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...
The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...
Lucidworks
 
Systems Monitoring with Prometheus (Devops Ireland April 2015)
Systems Monitoring with Prometheus (Devops Ireland April 2015)Systems Monitoring with Prometheus (Devops Ireland April 2015)
Systems Monitoring with Prometheus (Devops Ireland April 2015)
Brian Brazil
 
How to Use Artificial Intelligence by Microsoft Product Manager
 How to Use Artificial Intelligence by Microsoft Product Manager How to Use Artificial Intelligence by Microsoft Product Manager
How to Use Artificial Intelligence by Microsoft Product Manager
Product School
 
Eric Proegler Oredev Performance Testing in New Contexts
Eric Proegler Oredev Performance Testing in New ContextsEric Proegler Oredev Performance Testing in New Contexts
Eric Proegler Oredev Performance Testing in New Contexts
Eric Proegler
 
Assumption mapping and managing uncertainty NUXUK
Assumption mapping and managing uncertainty NUXUK Assumption mapping and managing uncertainty NUXUK
Assumption mapping and managing uncertainty NUXUK
Kevin Murray
 
(SPOT205) 5 Lessons for Managing Massive IT Transformation Projects
(SPOT205) 5 Lessons for Managing Massive IT Transformation Projects(SPOT205) 5 Lessons for Managing Massive IT Transformation Projects
(SPOT205) 5 Lessons for Managing Massive IT Transformation Projects
Amazon Web Services
 
Chatbots: Automated Conversational Model using Machine Learning
Chatbots: Automated Conversational Model using Machine LearningChatbots: Automated Conversational Model using Machine Learning
Chatbots: Automated Conversational Model using Machine Learning
AlgoAnalytics Financial Consultancy Pvt. Ltd.
 
Big Data at a Gaming Company: Spil Games
Big Data at a Gaming Company: Spil GamesBig Data at a Gaming Company: Spil Games
Big Data at a Gaming Company: Spil Games
Rob Winters
 
Semantic Search: Fast Results from Large, Non-Native Language Corpora with Ro...
Semantic Search: Fast Results from Large, Non-Native Language Corpora with Ro...Semantic Search: Fast Results from Large, Non-Native Language Corpora with Ro...
Semantic Search: Fast Results from Large, Non-Native Language Corpora with Ro...
Databricks
 
How Celtra Optimizes its Advertising Platform with Databricks
How Celtra Optimizes its Advertising Platformwith DatabricksHow Celtra Optimizes its Advertising Platformwith Databricks
How Celtra Optimizes its Advertising Platform with Databricks
Grega Kespret
 
Customer Insights Workshop - Consumer Text Analytics Conference
Customer Insights Workshop - Consumer Text Analytics ConferenceCustomer Insights Workshop - Consumer Text Analytics Conference
Customer Insights Workshop - Consumer Text Analytics Conference
Mekkin Bjarnadottir
 
ITCube Staffing Solutions
ITCube Staffing SolutionsITCube Staffing Solutions
ITCube Staffing Solutions
titusmatthews
 
Real Time Interactive Queries IN HADOOP: Big Data Warehousing Meetup
Real Time Interactive Queries IN HADOOP: Big Data Warehousing MeetupReal Time Interactive Queries IN HADOOP: Big Data Warehousing Meetup
Real Time Interactive Queries IN HADOOP: Big Data Warehousing Meetup
Caserta
 

Similar to enfore Chatbot HamburgAI (20)

Kumar rohit resume
Kumar rohit resumeKumar rohit resume
Kumar rohit resume
 
Deep learning for NLP
Deep learning for NLPDeep learning for NLP
Deep learning for NLP
 
Why other ppl_dont_get_it
Why other ppl_dont_get_itWhy other ppl_dont_get_it
Why other ppl_dont_get_it
 
Introduction to Chatbots
Introduction to ChatbotsIntroduction to Chatbots
Introduction to Chatbots
 
Juliette Melton at BayCHI: Real World Remote Research
Juliette Melton at BayCHI: Real World Remote ResearchJuliette Melton at BayCHI: Real World Remote Research
Juliette Melton at BayCHI: Real World Remote Research
 
Juliette Melton at BayCHI: Real World Remote Research
Juliette Melton at BayCHI: Real World Remote ResearchJuliette Melton at BayCHI: Real World Remote Research
Juliette Melton at BayCHI: Real World Remote Research
 
Robotics, Search and AI with Solr, MyRobotLab, and Deeplearning4j
Robotics, Search and AI with Solr, MyRobotLab, and Deeplearning4jRobotics, Search and AI with Solr, MyRobotLab, and Deeplearning4j
Robotics, Search and AI with Solr, MyRobotLab, and Deeplearning4j
 
The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...
The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...
The Intersection of Robotics, Search and AI with Solr, MyRobotLab, and Deep L...
 
Systems Monitoring with Prometheus (Devops Ireland April 2015)
Systems Monitoring with Prometheus (Devops Ireland April 2015)Systems Monitoring with Prometheus (Devops Ireland April 2015)
Systems Monitoring with Prometheus (Devops Ireland April 2015)
 
How to Use Artificial Intelligence by Microsoft Product Manager
 How to Use Artificial Intelligence by Microsoft Product Manager How to Use Artificial Intelligence by Microsoft Product Manager
How to Use Artificial Intelligence by Microsoft Product Manager
 
Eric Proegler Oredev Performance Testing in New Contexts
Eric Proegler Oredev Performance Testing in New ContextsEric Proegler Oredev Performance Testing in New Contexts
Eric Proegler Oredev Performance Testing in New Contexts
 
Assumption mapping and managing uncertainty NUXUK
Assumption mapping and managing uncertainty NUXUK Assumption mapping and managing uncertainty NUXUK
Assumption mapping and managing uncertainty NUXUK
 
(SPOT205) 5 Lessons for Managing Massive IT Transformation Projects
(SPOT205) 5 Lessons for Managing Massive IT Transformation Projects(SPOT205) 5 Lessons for Managing Massive IT Transformation Projects
(SPOT205) 5 Lessons for Managing Massive IT Transformation Projects
 
Chatbots: Automated Conversational Model using Machine Learning
Chatbots: Automated Conversational Model using Machine LearningChatbots: Automated Conversational Model using Machine Learning
Chatbots: Automated Conversational Model using Machine Learning
 
Big Data at a Gaming Company: Spil Games
Big Data at a Gaming Company: Spil GamesBig Data at a Gaming Company: Spil Games
Big Data at a Gaming Company: Spil Games
 
Semantic Search: Fast Results from Large, Non-Native Language Corpora with Ro...
Semantic Search: Fast Results from Large, Non-Native Language Corpora with Ro...Semantic Search: Fast Results from Large, Non-Native Language Corpora with Ro...
Semantic Search: Fast Results from Large, Non-Native Language Corpora with Ro...
 
How Celtra Optimizes its Advertising Platform with Databricks
How Celtra Optimizes its Advertising Platformwith DatabricksHow Celtra Optimizes its Advertising Platformwith Databricks
How Celtra Optimizes its Advertising Platform with Databricks
 
Customer Insights Workshop - Consumer Text Analytics Conference
Customer Insights Workshop - Consumer Text Analytics ConferenceCustomer Insights Workshop - Consumer Text Analytics Conference
Customer Insights Workshop - Consumer Text Analytics Conference
 
ITCube Staffing Solutions
ITCube Staffing SolutionsITCube Staffing Solutions
ITCube Staffing Solutions
 
Real Time Interactive Queries IN HADOOP: Big Data Warehousing Meetup
Real Time Interactive Queries IN HADOOP: Big Data Warehousing MeetupReal Time Interactive Queries IN HADOOP: Big Data Warehousing Meetup
Real Time Interactive Queries IN HADOOP: Big Data Warehousing Meetup
 

Recently uploaded

waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdfwaterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
LengamoLAppostilic
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
Scintica Instrumentation
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
PRIYANKA PATEL
 
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
PsychoTech Services
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Leonel Morgado
 
Immersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths ForwardImmersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths Forward
Leonel Morgado
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
vluwdy49
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
Leonel Morgado
 
Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.
Aditi Bajpai
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
MaheshaNanjegowda
 
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
Advanced-Concepts-Team
 
Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...
Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...
Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...
Travis Hills MN
 
Modelo de slide quimica para powerpoint
Modelo  de slide quimica para powerpointModelo  de slide quimica para powerpoint
Modelo de slide quimica para powerpoint
Karen593256
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
Sérgio Sacani
 
Pests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdfPests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdf
PirithiRaju
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
Sérgio Sacani
 
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdfMending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Selcen Ozturkcan
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
RitabrataSarkar3
 
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of ProteinsGBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
Areesha Ahmad
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
Sérgio Sacani
 

Recently uploaded (20)

waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdfwaterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
 
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
(June 12, 2024) Webinar: Development of PET theranostics targeting the molecu...
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
 
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
Sexuality - Issues, Attitude and Behaviour - Applied Social Psychology - Psyc...
 
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
Describing and Interpreting an Immersive Learning Case with the Immersion Cub...
 
Immersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths ForwardImmersive Learning That Works: Research Grounding and Paths Forward
Immersive Learning That Works: Research Grounding and Paths Forward
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
 
Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...Authoring a personal GPT for your research and practice: How we created the Q...
Authoring a personal GPT for your research and practice: How we created the Q...
 
Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
 
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
ESA/ACT Science Coffee: Diego Blas - Gravitational wave detection with orbita...
 
Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...
Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...
Travis Hills of MN is Making Clean Water Accessible to All Through High Flux ...
 
Modelo de slide quimica para powerpoint
Modelo  de slide quimica para powerpointModelo  de slide quimica para powerpoint
Modelo de slide quimica para powerpoint
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
 
Pests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdfPests of Storage_Identification_Dr.UPR.pdf
Pests of Storage_Identification_Dr.UPR.pdf
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
 
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdfMending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
Mending Clothing to Support Sustainable Fashion_CIMaR 2024.pdf
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
 
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of ProteinsGBSN - Biochemistry (Unit 6) Chemistry of Proteins
GBSN - Biochemistry (Unit 6) Chemistry of Proteins
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
 

enfore Chatbot HamburgAI

  • 1. enfore Chatbot Nils Grabbert, Miroslav Zoričák
  • 2. Run your business anywhere, anytime and on any device: in your store, at the office, in your warehouse, on-site with a customer or supplier and on the go - using a smart phone, tablet, computer or enfore Business Device. enfore is building an open business platform to develop solutions that help 200 million small businesses around the world to run their business
  • 3. data science @ enfore • 3 years ago we started to build everything from scratch • building the infrastructure • data/ml pipelines • prediction services • taking a DevOps approach in everything we do • now a team of 9 employees • able to scale team and infrastructure
  • 4. Outline 1. What are Chatbots and when to use them 2. Who is doing Chatbots and how 3. How we approach it at enfore (Business) 4. enfore Chatbot implementation details (Engineering) 5. Machine learning overview and what we use (Data Science) 6. Conclusion B E DS
  • 5. What are we trying to do here? Open Domain • General questions about anything • Little practical value • Quickly devolves (see Microsoft Tay) Closed Domain • Follow some agenda • Could replace humans on 1st Tier Support • What we are interested in Machine Dialogue B E DS
  • 6. An Alternative Interface Is String-in-String-out a good interface for what we’re trying to achieve? Linear tasks - better off with forms • Complex questionnaires • Multi-page forms Exploratory tasks - may benefit from chatbots • FAQ - Bot could detect differently worded questions • Recommendations Do not pretend you are a human! Chatbot Text Text B E DS
  • 7. Current State of the Art Amazon Alexa, Apple Siri, Google Assistant • Same thing wrapped with Text to Speech • Inspired our terminology (Intents, Utterances) • Often started out as complex question trees • Have enormous datasets to train on Other 140 Chatbot related startups on VentureRadar Can fulfill basic commands but, not much more Chatbot Text Text Text to Speech Voice Voice B E DS
  • 8. What do we expect from our Chatbot? Understand requests in English, in a narrow set of domains Be able to be customized by our customers • Must be generic enough to accommodate future use cases Use cases: • Opening Hours • Product Search • Restaurant Availability • Hotel Room Availability • More to come … B E DS
  • 9. What we have implemented? Intent classification • Customer intents • Help, Debug, Confirm, Cancel, Greet intents Parameter extraction (multiple at once) • Dates, Times, Durations, Integers, Locations Parameter inference • Arrival Date + Duration = Departure Date Validation • Departure date > Arrival Date • Min Duration 3 days Information retrieval Intent Confirmation B E DS
  • 10. High Level Architecture NLP Service • Classify Intents • Extract Dates, Integers, etc. Chatbot • Customer Logic • Intents • Actions • Parameters Webservice Chatbot DB NLP Service B E DS
  • 11. Actor Responsibilities ★ Supported Intents ★ Trigger Utterances ★ Localizations ★ Personalization Personality Customer ★ DB Interface ★ Action Interface ★ Parameter Interface Data Application ★ Maintain conversation ★ Translate requests into DB queries ★ Retrieve information Conversation Chatbot B E DS
  • 12. Chatbot Workflow Intent Classification • Using Dynamic, customer-specific intent list • Handle previous intents Parameter Extraction • Remembers the parameter it last asked about • Attempts to greedily fill as many params as possible Replies • Asks about the next unfilled parameter • Responds with information Parameter inference Action Execution Intent Classification Parameter Extraction Response Formulation Chatbot B E DS
  • 13. Intent Classification Objectives • Given a list of intents and query text, choose the best matching one • If none matches well enough, don’t choose any • Intents evolve over time, so be prepared to handle that Simple Methods • Naïve Bayes BoW • POS Matching Deep Methods • RNN, LSTM, Convolutional NN • Word Embeddings, Clustering • VAE, GAN B E DS Intent Classification Parameter Extraction Response Formulation Chatbot
  • 14. Parameter Extraction CoreNLP • Java Library from Stanford • Big and relatively slow (1,5 GB JAR) • Tokenization, Lemmatization, POS Tagging, NER Extraction, Date and Time Parsing Dates • Always anchored around today • Tomorrow, Next Monday, Two days from now Durations • 2 hours, 1:35 Numbers • 5 people, 2 tables B E DS Intent Classification Parameter Extraction Response Formulation Chatbot
  • 15. Response Formulation Are there parameters with missing values? • Ask using customer-defined questions • “When would you like to arrive?” Did we understand the last query? • Chatbot asked about arrival date and the User said “5 people” • Unable to parse some representations • Unable to identify intent Information Retrieval • “Here is our availability for next week:” Intent Confirmation • “Are you sure you want to make this reservation?” B E DS Intent Classification Parameter Extraction Response Formulation Chatbot
  • 16. Ideas for the Future Improve intent classification • Use ideas mentioned in Deep Methods Intent Classification in production • Skip-thought, Sentence-to-vec, CNNs Implement ratings and feedback • Let the user provide feedback after an intent was completed • Useful for future training Make it appear more human • Sense the tone of the person • Add more polite chit-chat abilities 💡 B E DS
  • 17. Conclusion Think long and hard before deploying a chatbot • Some use cases are better served traditionally • Only use in Closed Domain Simple solutions get you 90% of the way • Naïve Bayes and simple rule-based solutions work well • Use them to prototype the rest of your system Watch the Deep Learning developments • In 2016: Google’s zero-shot machine translation • In 2017: Tensorflow Fold and Tree-based NNs 🤖