# US 2020/0287851 A1 · Chatbot orchestration

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0287851 A1
- Document ID: US20200287851A1
- Status: Published application
- Kind: A1
- Application number: 16/879,803
- Filed: 2020-05-21
- Published: 2020-09-10
- Earliest claimed: 2017-11-09
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Ryan Anderson; Anita Govindjee; Joseph Kozhaya; Javier Torres
- Web page: https://patentgrep.com/patent/US20200287851A1

## CPC

- H04L 51/02: using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
- G06F 40/205: Parsing
- G06F 40/279: Recognition of textual entities
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/35: Discourse or dialogue representation
- G10L 15/1822: {Parsing for meaning understanding}
- G10L 15/22: Procedures used during a speech recognition process, e.g. man-machine dialogue
- H04L 51/216: Handling conversation history, e.g. grouping of messages in sessions or threads
- H04L 67/104: Peer-to-peer [P2P] networks
- G06F 16/903: Querying (for retrieval from the web G06F16/953)
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06N 20/00: Machine learning
- G10L 2015/225: {Feedback of the input speech}
- H04L 69/22: Parsing or analysis of headers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Utilizing a computing device executing a master chatbot and one or more modular chatbots to respond to one or more chat messages. A computing device executing the master chatbot receives one or more chat messages. The computing device parses the received one or more chat messages to discover an intent and entities contained within the chat messages. A ranking algorithm is employed to rank the master chatbot and a plurality of modular chatbots, the ranking algorithm scoring the master chatbot and the plurality of modular chatbots based upon the intent and entities contained within the one or more chat messages. The master chatbot responds to the chat message if the ranking algorithm rates the master chatbot highest or forwards automatically the one or more chat messages to a ranked modular chatbot for response if the ranking algorithm rates the ranked modular chatbot highest.

## Claims

### Claim 1

A computer program product for utilizing a computing device executing chatbots to initiate and hold a conversation in chat messaging software between the computing device and a user of a website, the chatbots comprise a master chatbot and a plurality of modular chatbots, the computer program product comprising:
one or more computer-readable storage media and program instructions stored on the one or more computer-readable storage media, the program instructions comprising:
program instructions to receive, by the computing device, one or more chat messages from the user in the chat messaging software;
program instructions to parse, by the computing device, the received one or more chat messages to discover an intent of the one or more chat messages and one or more entities contained within the one or more chat messages;
program instructions to employ a ranking algorithm to rank the chatbots, the ranking algorithm scoring the chatbots based upon the intent of the one or more chat messages and the one or more entities contained within the one or more chat messages;
program instructions to present a list of top-ranked chatbots from the ranked chatbots for selection by the user within a timeframe;
program instructions to determine a user selected chatbot among the list of top-ranked chatbots, and program instructions to forward the one or more chat messages to the user selected chatbot;
in response to the timeframe expiring, program instructions to select the highest ranked chatbot among the list of top-ranked chatbot among the list of top-ranked chatbots, and program instructions to forward automatically the one or more chat messages to the selected highest ranked chatbot; and
program instructions to respond, by either the user selected chatbot or the selected highest ranked chatbot, to the one or more chat messages.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the top-ranked chatbot is ranked by the ranking algorithm.

### Claim 3 (depends on 1)

The computer program product of claim 1, wherein the ranking algorithm ranks the master chatbot and the plurality of modular chatbots based upon the intent of the one or more chat messages and the one or more entities contained within the one or more chat messages and according to one or more of the following:
a historical record of achieving satisfaction by each of the master chatbot and the plurality of modular chatbots from prior users regarding the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages;
a high similarity factor between the one or more chat messages and historical chat messages serviced by each of the master chatbot and the plurality of modular chatbots;
a high similarity factor regarding the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages versus a profile for each of the master chatbot and the plurality of modular chatbots; and
a ranking based upon recommendations from chatbot to chatbot among the master chatbot and the plurality of modular chatbots regarding the intent and one or more entities.

### Claim 4 (depends on 1)

The computer program product of claim 1, wherein the master chatbot and the plurality of modular chatbots function as peers in a peer-to-peer network.

### Claim 5 (depends on 4)

The computer program product of claim 4, further comprising after program instructions to determine that the master chatbot is not capable of responding to the one or more received chat messages, program instructions to perform the following steps of:
program instructions to issue by the master chatbot a request on the peer-to-peer network for a subset of the plurality of modular chatbots capable of serving the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages;
program instructions to receive responses from the subset of the plurality of modular chatbots indicating they are capable; and
program instructions to validate one or more of the subset of the plurality of modular chatbots are capable of serving the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages.

### Claim 6 (depends on 1)

The computer program product of claim 1, wherein the one or more chat messages comprise selectively one of the following: a text message, a vocal message, and an image.

### Claim 7

A computer program product of utilizing a computing device executing a master chatbot and a plurality of modular chatbots to initiate and hold a conversation in chat messaging software between the computing device and a user of a website, the computer program product comprising:
one or more computer-readable storage media and program instructions stored on the one or more computer-readable storage media, the program instructions comprising:
program instructions to receive by a computing device executing a master chatbot one or more chat messages from the user in the chat messaging software;
program instructions to parse by the computing device the received one or more chat messages to discover an intent of the one or more chat messages and one or more entities contained within the one or more chat messages;
program instructions to employ a ranking algorithm to rank the master chatbot and the plurality of modular chatbots, the ranking algorithm scoring the master chatbot and the plurality of modular chatbots based upon the intent of the one or more chat messages and the one or more entities contained within the one or more chat messages, wherein the master chatbot and the plurality of modular chatbots function as peers in a peer-to-peer network;
after determining that the master chatbot is not capable of responding to the one or more received chat messages, program instructions to perform the following steps of:
program instructions to issue by the master chatbot a request on the peer-to-peer network for a subset of the plurality of modular chatbots capable of serving the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages,
program instructions to receive responses from the subset of the plurality of modular chatbots indicating they are capable, and
program instructions to validate one or more of the subset of the plurality of modular chatbots are capable of serving the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages;
program instructions to determine a top-ranked chatbot among the plurality of modular chatbots; and
program instructions to respond in the chat messaging software by the top-ranked chatbot to the one or more chat messages.

### Claim 8 (depends on 7)

The computer program product of claim 7, wherein the top-ranked chatbot is ranked by the ranking algorithm.

### Claim 9 (depends on 7)

The computer program product of claim 7, wherein the ranking algorithm ranks the master chatbot and the plurality of modular chatbots based upon the intent of the one or more chat messages and one or more entities contained within the one or more chat messages and according to one or more of the following:
a historical record of achieving satisfaction by each of the master chatbot and the plurality of modular chatbots from prior users regarding the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages;
a high similarity factor between the one or more chat messages and historical chat messages serviced by each of the master chatbot and the plurality of modular chatbots;
a high similarity factor regarding the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages versus a profile for each of the master chatbot and the plurality of modular chatbots; and
a ranking based upon recommendations from chatbot to chatbot among the master chatbot and the plurality of modular chatbots regarding the intent and one or more entities.

### Claim 10 (depends on 7)

The computer program product of claim 7, wherein the one or more chat messages comprise selectively one of the following: a text message, a vocal message, and an image.

### Claim 11

A computer system for utilizing a computing device executing chatbots to initiate and hold a conversation in chat messaging software between the computing device and a user of a website, the chatbots comprise a master chatbot and a plurality of modular chatbots, the computer system comprising:
one or more computer processors, one or more computer-readable storage media, and program instructions stored on the one or more of the computer-readable storage media for execution by at least one of the one or more processors, the program instructions comprising:
program instructions to receive, by the computing device, one or more chat messages from the user in the chat messaging software;
program instructions to parse, by the computing device, the received one or more chat messages to discover an intent of the one or more chat messages and one or more entities contained within the one or more chat messages;
program instructions to employ a ranking algorithm to rank the chatbots, the ranking algorithm scoring the chatbots based upon the intent of the one or more chat messages and the one or more entities contained within the one or more chat messages;
program instructions to present a list of top-ranked chatbots from the ranked chatbots for selection by the user within a timeframe;
program instructions to determine a user selected chatbot among the list of top-ranked chatbots, and program instructions to forward the one or more chat messages to the user selected chatbot;
in response to the timeframe expiring, program instructions to select the highest ranked chatbot among the list of top-ranked chatbot among the list of top-ranked chatbots, and program instructions to forward automatically the one or more chat messages to the selected highest ranked chatbot; and
program instructions to respond, by either the user selected chatbot or the selected highest ranked chatbot, to the one or more chat messages.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the top-ranked chatbot is ranked by the ranking algorithm.

### Claim 13 (depends on 11)

The computer system of claim 11, wherein the ranking algorithm ranks the master chatbot and the plurality of modular chatbots based upon the intent of the one or more chat messages and the one or more entities contained within the one or more chat messages and according to one or more of the following:
a historical record of achieving satisfaction by each of the master chatbot and the plurality of modular chatbots from prior users regarding the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages;
a high similarity factor between the one or more chat messages and historical chat messages serviced by each of the master chatbot and the plurality of modular chatbots;
a high similarity factor regarding the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages versus a profile for each of the master chatbot and the plurality of modular chatbots; and
a ranking based upon recommendations from chatbot to chatbot among the master chatbot and the plurality of modular chatbots regarding the intent and one or more entities.

### Claim 14 (depends on 11)

The computer system of claim 11, wherein the master chatbot and the plurality of modular chatbots function as peers in a peer-to-peer network.

### Claim 15 (depends on 14)

The computer system of claim 14, further comprising after program instructions to determine that the master chatbot is not capable of responding to the one or more received chat messages, program instructions to perform the following steps of:
program instructions to issue by the master chatbot a request on the peer-to-peer network for a subset of the plurality of modular chatbots capable of serving the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages;
program instructions to receive responses from the subset of the plurality of modular chatbots indicating they are capable; and
program instructions to validate one or more of the subset of the plurality of modular chatbots are capable of serving the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages.

### Claim 16 (depends on 11)

The computer system of claim 11, wherein the one or more chat messages comprise selectively one of the following: a text message, a vocal message, and an image.

### Claim 17

A computer system for utilizing a computing device executing chatbots to initiate and hold a conversation in chat messaging software between the computing device and a user of a website, the chatbots comprise a master chatbot and a plurality of modular chatbots, the computer system comprising:
one or more computer processors, one or more computer-readable storage media, and program instructions stored on the one or more of the computer-readable storage media for execution by at least one of the one or more processors, the program instructions comprising: program instructions to receive by a computing device executing a master chatbot one or more chat messages from the user in the chat messaging software;
program instructions to parse by the computing device the received one or more chat messages to discover an intent of the one or more chat messages and one or more entities contained within the one or more chat messages;
program instructions to employ a ranking algorithm to rank the master chatbot and the plurality of modular chatbots, the ranking algorithm scoring the master chatbot and the plurality of modular chatbots based upon the intent of the one or more chat messages and the one or more entities contained within the one or more chat messages, wherein the master chatbot and the plurality of modular chatbots function as peers in a peer-to-peer network;
after determining that the master chatbot is not capable of responding to the one or more received chat messages, program instructions to perform the following steps of:
program instructions to issue by the master chatbot a request on the peer-to-peer network for a subset of the plurality of modular chatbots capable of serving the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages,
program instructions to receive responses from the subset of the plurality of modular chatbots indicating they are capable, and
program instructions to validate one or more of the subset of the plurality of modular chatbots are capable of serving the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages;
program instructions to determine a top-ranked chatbot among the plurality of modular chatbots; and
program instructions to respond in the chat messaging software by the top-ranked chatbot to the one or more chat messages.

### Claim 18 (depends on 17)

The computer system of claim 17, wherein the top-ranked chatbot is ranked by the ranking algorithm.

### Claim 19 (depends on 17)

The computer system of claim 17, wherein the ranking algorithm ranks the master chatbot and the plurality of modular chatbots based upon the intent of the one or more chat messages and one or more entities contained within the one or more chat messages and according to one or more of the following:
a historical record of achieving satisfaction by each of the master chatbot and the plurality of modular chatbots from prior users regarding the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages;
a high similarity factor between the one or more chat messages and historical chat messages serviced by each of the master chatbot and the plurality of modular chatbots;
a high similarity factor regarding the intent of the one or more received chat messages and the one or more entities contained within the one or more chat messages versus a profile for each of the master chatbot and the plurality of modular chatbots; and
a ranking based upon recommendations from chatbot to chatbot among the master chatbot and the plurality of modular chatbots regarding the intent and one or more entities.

### Claim 20 (depends on 17)

The computer system of claim 17, wherein the one or more chat messages comprise selectively one of the following: a text message, a vocal message, and an image.
