Migrating to chatbot -- Madhu Gopinathan -- Sanjay Mohan - - PowerPoint PPT Presentation

migrating to chatbot
SMART_READER_LITE
LIVE PREVIEW

Migrating to chatbot -- Madhu Gopinathan -- Sanjay Mohan - - PowerPoint PPT Presentation

Migrating to chatbot -- Madhu Gopinathan -- Sanjay Mohan MakeMyTrip: Indias One Stop Travel Shop Flights Hotels Holidays Bus Cabs Trains Gift Cards Experiences Visa Homes 40 million customers Evolution of Customer Support Write to


slide-1
SLIDE 1

Migrating to chatbot

  • - Madhu Gopinathan
  • - Sanjay Mohan
slide-2
SLIDE 2

MakeMyTrip: India’s One Stop Travel Shop

Flights Hotels Holidays Bus Cabs Trains Gift Cards Experiences Visa Homes

40 million customers

slide-3
SLIDE 3

Evolution of Customer Support

Write to us IVR

slide-4
SLIDE 4

Timeline of refund status

Oct 10: Rescheduled my flight directly with airline Oct 16 – Night: When will I get my refund? Oct 17 – Agent 1: Your phone is unreachable Oct 18 – Night: Call me after 7 pm Oct 18 - Agent 1: Called at 7.40 pm. Still unreachable Oct 21: I will sue you. Where is my refund? Oct 21 - Agent 2: Refund has been issued on

  • 21st. 3-5 days for credit

Oct 25: I am really pissed! Oct 25 - Agent 2: We assure you that refund has been issued Oct 26:

  • Ok. Got it. Thanks
slide-5
SLIDE 5

Evolution of Customer Support

Write to us IVR

slide-6
SLIDE 6

Evolution of Customer Support

Write to us IVR Chat bot Write to us IVR

slide-7
SLIDE 7

Evolution of Customer Support

Chat bot Write to us IVR

slide-8
SLIDE 8

Refund Related Issues

Refund Query

If I cancel, how much refund will I get?

Refund Status

When can I expect to get the refund?

Refund Delayed

I have been waiting for too long

Refund Calculation Logic

Explain how you determined the amount to be refunded

Refund Special Claim

  • Flight was cancelled
  • Flight itinerary changed
slide-9
SLIDE 9

Deal with WhatsApp Lingo?

Refund when? 😢 may refund ishu kab tak aayega kitna ayega Cam I change name? Father won’t travel with us. Pease cancel his ticket Hlo how to cancel Want 2 book flight for Kolkata early morning maine flight ticket cancel ki thi, us me se kitna amount cut hoga?

slide-10
SLIDE 10

Issue Types: Fat head, Chunky middle and Long tail

  • Late check-in request
  • Cancel my booking
  • Meal Included?

20-30% of issue volume

  • Terminal details
  • Resend confirmation
  • Cancel due to medical emergency
  • Require travel insurance certificate
  • Train delayed by more than 3 hours
  • Claim travel insurance
  • Refund discrepancy
  • Extra charges at hotel
  • Buy insurance
slide-11
SLIDE 11

Business Impact

Total Customers Served

2 m

Customers / Day

~ 10K

Chats / Day

~12 K

Bot CSAT / Agent CSAT

80 %

Remaining volume that Bot could handle

7 %

Chats Handled by Bot

~80 %

slide-12
SLIDE 12

Architecture / NLU Model

slide-13
SLIDE 13

Interactions

Touch Type Request(text input) Get Intent Respond Invoke Action

User Dialog Manager Intent Classifier APIs Myra App Speech To Text Speak

slide-14
SLIDE 14

Interactions

User Dialog Manager Intent Classifier APIs Myra App

Touch Type Request(text input) Get Intent Respond Invoke Action

Speech To Text Speak

slide-15
SLIDE 15

Dialog Manager

Turn 1

slide-16
SLIDE 16

Dialog Manager

Turn 2

slide-17
SLIDE 17

Dialog Manager

Turn 3

Your cancellation is successful! To know more about your refund, please choose one of the below options.

slide-18
SLIDE 18

confirm = Y

Frame Based State Tracker

Speech and Language Processing by Jurafsky & Martin Chapter 24: Dialog Systems and Chatbots

Frame

Slot 1 Slot 2 Slot 3

slide-19
SLIDE 19

confirm = Y

Frame Based State Tracker

Speech and Language Processing by Jurafsky & Martin Chapter 24: Dialog Systems and Chatbots

Frame

Booking ID

Show Charges Do Cancel Show Result

success

Confirmation Cancellation

slide-20
SLIDE 20

Interactions

User Dialog Manager Intent Classifier APIs Myra App

Touch Type Request(text input) Get Intent Respond Invoke Action

Speech To Text Speak

Pl cancel booking MMT.Cancellation.FullCancellation

slide-21
SLIDE 21

Intent Classifier

Label Data Train Model Evaluate Model Deploy Monitor

slide-22
SLIDE 22

Labelling Text Data

Pl cancel booking MMT.Cancellation.FullCancellation

Analyse Data Define Frame Collect Samples Label Samples Check Write to us Corpus Chat Corpus Labelled

Tedious

slide-23
SLIDE 23

Sequential Transfer Learning

Pretrain Language Model Fine-tune Language Model Fine-tune Intent Classifier Evaluate Model General Domain Corpus

  • English Language

Representations

Write to us

  • MMT Customer

Support / Hinglish Representations

Labelled

  • Intent Specific

Representations

  • Micro F1-score increased

from 0.80 to 0.89

  • Baseline: CNN + GloVe

Build Intent Classifier with smaller amounts of labelled data

slide-24
SLIDE 24

ULMFiT: Pretrained Language Model vs. Fine-tuned Language Model

Embedding Layer LSTM 1 LSTM 2 LSTM 3 Softmax Layer

new > new york city is the only new delhi to mumbai flight i want > i want to be a real person I want to change my email to kitna > kitna ? kitna refund amt refund hoga

Universal Language Model Fine-tuning for Text Classification Jeremy Howard, Sebastian Ruder

P F F E

slide-25
SLIDE 25

ULMFiT: Pretrained Language Model vs. Fine-tuned Language Model

Embedding Layer LSTM 1 LSTM 2 LSTM 3 Softmax Layer

Pretrained on Wikitext-103 Consisting of 28,595 preprocessed Wikipedia articles (103 million words) Fine-tuned on customer support corpus (~10 m words)

Universal Language Model Fine-tuning for Text Classification Jeremy Howard, Sebastian Ruder

P F F E

slide-26
SLIDE 26

ULMFiT: Pretrained Language Model vs. Fine-tuned Language Model

Embedding Layer LSTM 1 LSTM 2 LSTM 3 Softmax Layer

Catastrophic Forgetting Discriminative Fine Tuning

  • Different layers capture different

types of information

  • Fine-tune each layer with different

learning rates

Universal Language Model Fine-tuning for Text Classification Jeremy Howard, Sebastian Ruder

P F F E

slide-27
SLIDE 27

ULMFiT: Pretrained Language Model vs. Fine-tuned Language Model

Embedding Layer LSTM 1 LSTM 2 LSTM 3 Softmax Layer

Catastrophic Forgetting Slanted Triangular Learning Rates

  • Model should adapt parameters

quickly to task specific features

  • First, linearly increase the LR and

then linearly decay it

Universal Language Model Fine-tuning for Text Classification Jeremy Howard, Sebastian Ruder

P F F E

slide-28
SLIDE 28

Embedding: Vector Representation of cancel my flight

3 x 400 P F F E

slide-29
SLIDE 29

ULMFiT: Fine-tuned Intent Classifier

FullCancellation PartialCancellation P F F E

slide-30
SLIDE 30

ULMFiT: Fine-tuned Intent Classifier

FullCancellation PartialCancellation P F F E

Gradual Unfreezing

  • Gradually unfreeze starting from the last layer as this contains

information most specific to a domain

  • Unfreeze the next lower layer. Repeat and fine tune all layers
slide-31
SLIDE 31

ULMFiT: Fine-tuned Intent Classifier

FullCancellation PartialCancellation P F F E

slide-32
SLIDE 32

Dealing with Intent Ambiguity

P F F E

slide-33
SLIDE 33

Analyzing Chats

confirm = Y Frame 1

Slot 1 Slot 2 Slot 3

confirm = Y Frame 2

Slot 1 Slot 2 Slot 3

confirm = Y Frame 3

Slot 1 Slot 2 Slot 3

Aggregate frame statistics P F F E

slide-34
SLIDE 34

Analyzing Chats

confirm = Y CancellationPolicy

Slot 1 Slot 2 Slot 3

confirm = Y FullCancellation

Slot 1 Slot 2 Slot 3

confirm = Y RefundStatus

Slot 1 Slot 2 Slot 3

Aggregate frame statistics P F F E

slide-35
SLIDE 35

Analyzing Chats

confirm = Y CancellationPolicy

Slot 1 Slot 2 Slot 3

confirm = Y FullCancellation

Slot 1 Slot 2 Slot 3

confirm = Y RefundStatus

Slot 1 Slot 2 Slot 3

  • Prob (framej | framei)
  • Chat abandonment analysis
  • Agent transfer analysis
  • Last frame before transfer
  • Frame level analyses
  • Input methods
  • Touch
  • Type
  • Speak
  • Error analysis

P F F E

slide-36
SLIDE 36

Interactions

User Dialog Manager APIs Myra App

Touch Type Request(text input) Get Intent Respond Invoke Action

Speech To Text Speak Intent Classifier

Analyze & Improve KPIs

slide-37
SLIDE 37

Issue Types: Fat head, Chunky middle and Long tail

  • Late check-in request
  • Cancel my booking
  • Meal Included?

20-30% of issue volume

  • Terminal details
  • Resend confirmation
  • Cancel due to medical emergency
  • Require travel insurance certificate
  • Train delayed by more than 3 hours
  • Claim travel insurance
  • Refund discrepancy
  • Extra charges at hotel
  • Buy insurance
slide-38
SLIDE 38

Rate today’s session

Session page on conference website O’Reilly Events App

slide-39
SLIDE 39

Thank You

Sanjay Mohan & Madhu Gopinathan

www.makemytrip.com