IP Library Granted Patent US 12,306,741
Granted Patent B2
US 12,306,741 · App. 17/495,488 · Granted May 20, 2025

Adjusting chat bot design based on matched escalation logs

Inventors: Ella Rabinovich (Haifa, IL); David Boaz (Bahan, IL); Inbal Ronen (Haifa, IL); Ofer Lavi (Tel Aviv, IL); David Amid (Modiin, IL); Segev Shlomov (Haifa, IL); Ateret Anaby-Tavor (Givat Ada, IL)
Assignee: International Business Machines Corporation
G06F11/366G06F16/355G06F18/22G06F40/35H04L51/02
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,306,741
App. No.
17/495,488
Granted
May 20, 2025
Kind
B2
Abstract

An example system includes a processor to receive a bot design and escalation logs associated with a chat bot configured based on the bot design. The processor can compute a similarity score between each of a number of bot response nodes in the bot design and the escalation logs. The processor can generate a sorted list of the bot response nodes in the bot design based on the similarity scores.

Claims (37)

1. A system, comprising a processor to:

receive a bot design and escalation logs associated with a chat bot configured based on the bot design;

compute a similarity score between each bot response node of a plurality of bot response nodes in the bot design and each escalation log of the escalation logs;

generate a sorted list of the plurality of bot response nodes in the bot design based on the similarity scores of the plurality of bot response nodes in the bot design and the escalation logs;

tune, in response to the similarity score indicating a failure of the chat bot, an intent detection component of the chat bot to correctly handle a user query by transferring a user to a correct bot response node of the plurality of bot response nodes in the bot design in response to adjusting the bot design to incorporate new topics identified from clustered escalation logs and to refine existing user intents based on flagged bot response nodes of the plurality of bot response nodes in the bot design; and

execute the chat bot with the adjusted bot design to successfully complete a conversation with the user without escalation.

2. The system of claim 1 , wherein the processor is further to flag a bot response node in the bot design in response to detecting that the similarity score between a bot response node and an escalation log exceeds a threshold score.

3. The system of claim 2 , wherein the processor is further to cluster the escalation logs based on topic and modify the bot design to include a generated topic in response to detecting that a cluster of escalation logs does not exceed another threshold score lower than the threshold score and detecting that the generated topic is not out-of-scope for the bot design.

4. The system of claim 1 , wherein the processor is further to filter out fluff utterances via a classifier trained on training data associated with the bot design.

5. The system of claim 1 , wherein the processor is further to select portions of the escalation logs for computing the similarity score comprising filtered agent side utterances and a first user utterance to an agent.

6. The system of claim 1 , wherein the processor is further to compute an accumulative similarity score for each bot response node of the plurality of bot response nodes in the bot design by summing together pairwise similarity scores computed between each bot response node of the plurality of bot response nodes in the bot design and each escalation log of the escalation logs.

7. The system of claim 1 , wherein the similarity score comprises a pairwise calculated semantic similarity score between each bot response node of the plurality of bot response nodes in the bot design and each escalation log of the escalation logs.

8. A computer-implemented method, comprising:

receiving, via a processor, a bot design and escalation logs associated with a chat bot configured based on the bot design;

selecting, via the processor, sections of conversations in the escalation logs for matching;

computing, via the processor, a similarity score between each bot response node of a plurality of bot response nodes in the bot design and each escalation log of the escalation logs;

sorting, via the processor, the plurality of bot response nodes in the bot design by the similarity scores of the plurality of bot response nodes in the bot design and the escalation logs to generate a sorted list of the plurality of bot response nodes in the bot design;

tuning, via the processor and in response to the similarity score indicating a failure of the chat bot, an intent detection component of the chat bot to correctly handle a user query by transferring a user to a correct bot response node of the plurality of bot response nodes in the bot design in response to adjusting the bot design to incorporate new topics identified from clustered escalation logs and to refine existing user intents based on flagged bot response nodes of the plurality of bot response nodes in the bot design; and

executing, via the processor, the chat bot with the adjusted bot design to successfully complete a conversation with the user without escalation.

9. The computer-implemented method of claim 8 , further comprising filtering, via the processor, fluff utterances from the conversations in the escalation logs.

10. The computer-implemented method of claim 8 , wherein selecting the sections of conversations in the escalation logs comprises selecting a first user utterance and agent utterances.

11. The computer-implemented method of claim 8 , further comprising selecting, via the processor, a portion of bot response nodes in the plurality of bot response nodes in the bot design for matching.

12. The computer-implemented method of claim 8 , wherein computing the similarity score comprises computing a full semantic similarity between each bot response node of the plurality of bot response nodes in the bot design and the escalation logs.

13. The computer-implemented method of claim 8 , wherein computing the similarity score comprises computing a conversation to first-node-sentence semantic similarity.

14. The computer-implemented method of claim 8 , wherein computing the similarity score comprises computing a fusion of a full semantic similarity and a conversation to first-node-sentence semantic similarity between each bot response node of the plurality of bot response nodes in the bot design and the escalation logs.

15. The computer-implemented method of claim 8 , further comprising flagging, via the processor, a bot response node for modification in response to detecting that the similarity scores of the plurality of bot response nodes in the bot design exceeds a threshold score.

16. The computer-implemented method of claim 8 , further comprising generating, via the processor, a new topic to be added to the bot design in response to detecting that a cluster of escalation logs of a same topic have a semantic similarity score not exceeding a threshold score for any bot response node of the plurality of bot response nodes in the bot design and that the new topic is not out-of-scope for the bot design.

17. The computer-implemented method of claim 8 , further comprising adjusting, via the processor, the bot design to identify a user request as out-of-scope for the bot design in response to detecting that a cluster of escalation logs of a same topic have a semantic similarity score not exceeding a threshold score for any bot response node of the plurality of bot response nodes in the bot design and that a new topic is out-of-scope for the bot design.

18. A computer program product for sorting bot response nodes, the computer program product comprising a computer readable storage medium having program code embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program code executable by a processor to cause the processor to:

receive a bot design and escalation logs associated with a chat bot configured based on the bot design;

select sections of conversations in the escalation logs for matching;

compute a similarity score between each bot response node of a plurality of bot response nodes in the bot design and each escalation log of the escalation logs;

sort the plurality of bot response nodes in the bot design by the similarity scores of the plurality of bot response nodes in the bot design and the escalation logs to generate a sorted list of the plurality of bot response nodes in the bot design;

tune, in response to the similarity score indicating a failure of the chat bot, an intent detection component of the chat bot to correctly handle a user query by transferring a user to a correct bot response node of the plurality of bot response nodes in the bot design in response to adjusting the bot design to incorporate new topics identified from clustered escalation logs and to refine existing user intents based on flagged bot response nodes of the plurality of bot response nodes in the bot design; and

execute the chat bot with the adjusted bot design to successfully complete a conversation with the user without escalation.

19. The computer program product of claim 18 , further comprising program code executable by the processor to cause the processor to flag a bot response node for modification in response to detecting that the similarity score of the plurality of bot response nodes in the bot design exceeds a threshold score.

20. The computer program product of claim 18 , further comprising program code executable by the processor to generate a new topic to be added to the bot design in response to detecting that a cluster of escalation logs of a same topic have a semantic similarity score not exceeding a threshold score for any bot response node of the plurality of bot response nodes in the bot design and that the new topic is not out-of-scope for the bot design.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 6, 2021
From: RABINOVICH, ELLA; BOAZ, DAVID; RONEN, INBAL; LAVI, OFER; AMID, DAVID; SHLOMOV, SEGEV; ANABY-TAVOR, ATERET
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 057719/0785 →
Continuity (1)
Related Publication 20230108637A1 · Apr 6, 2023
References Cited (19)
US 11194973B1 · Goel · 2021 [cited by examiner]
US 20160099892A1 · Palakovich et al. · 2016 [cited by applicant]
US 20170293834A1 · Raison · 2017 [cited by examiner]
US 20170322939A1 · Byron · 2017 [cited by examiner]
US 20180365212A1 · Banerjee · 2018 [cited by examiner]
US 20190182382A1 · Mazza · 2019 [cited by examiner]
US 20190215283A1 · Nahum · 2019 [cited by examiner]
US 20190311036A1 · Shanmugam · 2019 [cited by examiner]
US 20190384794A1 · Holly, Jr. et al. · 2019 [cited by applicant]
US 20200137001A1 · Wu · 2020 [cited by examiner]
US 20200137002A1 · Chavda · 2020 [cited by examiner]
US 20200327327A1 · Wu · 2020 [cited by examiner]
Authors et al., Disclosed Anonymously, “Method to Reduce the Number of Questions Asked Due to Conversation Handoffs Between Agents”, An IP.com Prior Art Database Technical Disclosure, Published Apr. 23, 2021, 5 pages. [cited by applicant]
IBM Cloud Docs, https://cloud.ibm.com/docs/assistant?topic=assistant-deploy-intercom, Retrieved Jun. 27, 2021, 14 pages. [cited by applicant]
IBM Cloud Docs, https://cloud.ibm.com/docs/assistant?topic=assistant-irrelevance-detection, Retrieved: Jun. 27, 2021, 6 pages. [cited by applicant]
Mell et al., “The NIST Definition of Cloud Computing”, National Institute of Standards and Technology, Sep. 2011, Special Publication 800-145, 7 pages. [cited by applicant]
Mishra et al., “Using Amazon Lex Conversation logs to monitor and improve interactions”, AWS Machine Learning Blog, Published Dec. 19, 2019, https://aws.amazon.com/blogs/machine-learning/using-amazon-lex-conversation-lo… [cited by applicant]
Sandbank et al., “Detecting Egregious Conversations between Customers and Virtual Agents”, Apr. 16, 2018, 10 pages. [cited by applicant]
Shukla et al. “Conversation Learner—A Machine Teaching Tool for Building Dialog Managers for Task-Oriented Dialog Systems”, ACL Anthology, Proceedings of the 58th Annual Meeting of the Association for Computational Ling… [cited by applicant]