building a useful chatbot: beyond ml and nlp · 2019-06-28 · building a useful chatbot: beyond ml...

30
Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence Swisscom

Upload: others

Post on 02-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

Building A Useful Chatbot: Beyond ML and NLPAndreea Hossmann, PhDData, Analytics & Artificial IntelligenceSwisscom

Page 2: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

Swisscom

“As a leading ICT company,we shape the future and inspire our customers with a cutting-edge network, high-performance offeringsand excellent service.”

Page 3: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

Customer Communication

Page 4: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

4

Communication Is Not Easy

Empathy

|R|E|A|D|

Frustration

Read betweenthe lines

Silence

Love

Page 5: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

5

AI and Language

87.2%GLUE score

• Natural Language Inference• Question Answering• Paraphrasing• Sentiment Analysis• Acceptability

70.5%SuperGLUE score

• Natural Language Inference• Causal Reasoning• Reading Comprehension• Word Sense Disambiguation

Page 6: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

6

AI and Communication

87.2%GLUE score

~60%accuracy

Sources: AI Index Report, 12/2018; “Emotion Detection in Text: a Review”, Seyeditabari et al.

Page 7: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

7

Human-CenteredData Science

Page 8: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

8

I 🖤 Data

Survey 2018

2.8

10.3

20.3

12.6

12.9

15.9

25.2

0 5 10 15 20 25 30

OTHER

PUTTING MODEL IN PRODUCTION

MODEL BUILDING

INSIGHTS AND COMMUNICATION

VISUALIZING DATA

GATHERING DATA

CLEANING DATA

Page 9: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

9

In Other Words…

Wrestle dataGet problem

Validate Explain & Adapt

ModelsStakeholders

Page 10: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

10

Human-CenteredData Science

Page 11: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

11

Human-Centered Design

Page 12: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

12

In Other Words…

DefineEmpathize

Test Prototype

IdeateCustomers

Page 13: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

13

Human-CenteredData Science

Page 14: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

What can AI do for Customer Communication ?

Page 15: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

15

Start With The Problem

How can we solve requestsquickly and accurately?

How can we optimizecustomer support costs?

How can we increaseconversion rates?

How to help users figure out ifour product fits their needs?

Page 16: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

16

Continue With the Tools: The Bot Anatomy

NLU Flow/Dialog Management NLG

Page 17: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

17

Continue With the Tools: Bot Architectures

Clickbot Goal-drivenbot

Retrievalbot

Generativebot

Providing Information,Chatting

Getting Things Done

Page 18: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

18

Continue With the Tools: Bot Enablers

Sentenceclassification

Entityrecognition

InvertedIndex

KnowledgeGraph

DialogManagement

FSM

DualEncoder

EncoderDecoder

Text toSQL

Transformer

Page 19: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

19

Putting the Pieces Together

Sentenceclassification

Entityrecognition

Goal-orientedbot

InvertedIndex

DualEncoder

OR

Retrievalbot

Sentenceclassification

Entityrecognition

Fancybot

DialogManagement

InvertedIndex

Page 20: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

20

The Problem

How can we solve requestsquickly and accurately?

Page 21: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

Search Agent

All available data

CRM KnowledgeDB

…Ticketingsystem

Search

Page 22: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

22

Helps for Some Requests

• We can propose useful answersmost of the time

• This results in a speedup of the agent's workflow

Page 23: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

23

First Assessment

What can the bot do?

Why should I use the bot vs other options?

The bot can crack jokes, but not solve my problem!?

How fast does the bot solve the problem?

Page 24: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

What Are Other Types of Requests ?

24

• Hundreds of classes

Page 25: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

25

What About Transactional Requests ?

Hi, I would like to order a 32GB iPhone in gray without a phone contract, how much is it?

Actually I might want a pink one with 64GB.What is the price difference?

Hi, this will cost you xxx CHF.

Page 26: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

Training for goal-driven bots

IntentEntities

Buy

Subscribe to

Upgrade

Send me

I need to transfer

Buy me a tablet

a white iPhone.

a mobile plan from next week.

my roaming plan for Asia.

a new SIM card to my home address.

my TV subscription to my daughter.

Samsungwith a mobile plan.

26

Page 27: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

27

Second Assessment

What can the bot do?

Why should I use the bot vs other options?

The bot can crack jokes, but not solve my problem!?

How fast does the bot solve the problem?

Page 28: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

28

Examples – Starbucks

Page 29: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

29

Examples – Swisscom

Page 30: Building A Useful Chatbot: Beyond ML and NLP · 2019-06-28 · Building A Useful Chatbot: Beyond ML and NLP Andreea Hossmann, PhD Data, Analytics & Artificial Intelligence ... bot

Thank you!Andreea Hossmann, PhDData, Analytics & Artificial IntelligenceSwisscom

@AndreeaHossmann

Andreea Hossmann