# US 2019/0317994 A1 · Deep learning techniques based multi-purpose conversational agents for processing natural language queries

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

- Number: US 2019/0317994 A1
- Document ID: US20190317994A1
- Status: Published application
- Kind: A1
- Application number: 16/384,316
- Filed: 2019-04-15
- Published: 2019-10-17
- Earliest claimed: 2018-04-16
- Assignees: Tata Consultancy Services Limited
- Applicants: Tata Consultancy Services Limited
- Inventors: Mahesh Prasad SINGH; Puneet AGARWAL; Ashish CHAUDHARY; Gautam SHROFF; Prerna KHURANA; Mayur PATIDAR; Vivek BISHT; Rachit BANSAL; Prateek SACHAN; Rohit KUMAR
- Web page: https://patentgrep.com/patent/US20190317994A1

## CPC

- G06F 16/3329: Natural language query formulation
- G06F 40/30: Semantic analysis
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Systems and methods for Deep Learning techniques based multi-purpose conversational agents for processing natural language queries. The traditional systems and methods provide for conversational systems for processing natural language queries but do not employ Deep Learning techniques, and thus are unable to process large number of intents. Embodiments of the present disclosure provide for Deep Learning techniques based multi-purpose conversational agents for processing the natural language queries by defining and logically integrating a plurality of components comprising of multi-purpose conversational agents, identifying an appropriate agent to process one or more natural language queries by a High Level Intent Identification technique, predicting a probable user intent, classifying the query, and generate a set of responses by querying or updating one or more knowledge graphs.

## Claims

### Claim 1

A method of Deep Learning techniques based multi-purpose conversational agents for processing natural language queries, the method being implemented by at least one processor and comprising:
defining, by one or more hardware processors, a plurality of components comprising of a Dialogue State Manager (DSM), a Multi-level Intent Identification Component, an Agents Manager, a plurality of Primary Agents, an Intent-Action-Dialogue (IAD) Framework, a Query-Update-Engage (QUE) Framework, a Knowledge Graph Update-Natural Language (KGU-NL) Agent, a Knowledge Graph Engage Agent, a plurality of Auxiliary Agents, and a Knowledge Graph Update Agent, wherein each component amongst the plurality of components comprises one or more multi-purpose conversational agents;
logically integrating, based upon a set of anticipated natural language user queries, the plurality of components by one or more application programming interfaces (APIs);
receiving, by the plurality of components logically integrated, a set of natural language queries from a plurality of sources;
performing, based upon the set of natural language queries, a plurality of steps, wherein the plurality of steps comprise:
(i) identifying at least one multi-purpose conversational agent amongst the one or more multi-purpose conversational agents by using the DSM, wherein the identified multi-purpose conversational agent corresponds to either the IAD Framework or the QUE Framework; and
(ii) predicting, by using one or more Deep Learning techniques, a probable user intent against a user query amongst the set of non-classified natural language queries;
performing, based upon the predicted user intent and the identified multi-purpose conversational agent, one of:
(i) selecting one or more pre-defined set of responses amongst a plurality of pre-defined set of responses or engaging a user for extracting in-depth information or calling external APIs for communicating the in-depth information to one or more external services upon determining the identified multi-purpose conversational agent to be corresponding to the IAD Framework, wherein the one or more pre-defined set of responses and the in-depth information correspond to the set of natural language queries; or
(ii) classifying a query amongst the set of natural language queries to identify one or more categories of conversations by implementing a recurrent neural network technique upon determining the identified multi-purpose conversational agent to be corresponding to the QUE Framework; and
(iii) performing, based upon the classified query, one of:
(a) querying one or more knowledge graphs to generate a first set of responses corresponding to the set of natural language queries; or
(b) updating, by the KGU-NL Agent, the one or more knowledge graphs to generate a second set of responses corresponding to the set of natural language queries.

### Claim 2 (depends on 1)

The method of claim 1, wherein the logical integration comprises hierarchically defining, based upon the set of anticipated natural language user queries, the plurality of components and the one or more multi-purpose conversational agents to process the natural language queries.

### Claim 3 (depends on 2)

The method of claim 2, wherein the defined plurality of components further comprise an auto-suggestion mechanism for auto-generating, based upon one or more training datasets, a plurality of recommended questions for one or more users to facilitate the processing of natural language queries.

### Claim 4 (depends on 3)

The method of claim 3, wherein the one or more training datasets comprise a set of semantically similar sets of queries and a set of answers corresponding to the semantically similar sets of queries.

### Claim 5 (depends on 1)

The method of claim 1, wherein the one or more knowledge graphs are updated by the Knowledge Graph Update Agent based upon a set of information obtained from one or more users by the Knowledge Graph Engage Agent, and wherein the set of information corresponds to the processing of natural language queries.

### Claim 6 (depends on 5)

The method of claim 5, wherein the set of information is obtained from the one or more users by either a pro-active user engagement or by an analysis of information corresponding to the one or more knowledge graphs by the Knowledge Graph Engage Agent.

### Claim 7 (depends on 1)

The method of claim 1, wherein generating the first set of responses comprises:
(i) mapping one or more entities corresponding to the one or more knowledge graphs with one or more phrases corresponding to the classified query by an inverted index based searching technique; and
(ii) traversing, based upon the mapping, the one or more knowledge graphs to generate the first set of responses.

### Claim 8 (depends on 1)

The method of claim 1, wherein the second set of responses are generated by either engaging the user to extract the in-depth information corresponding to the set of natural language queries or by executing a set of commands by an interface.

### Claim 9

A system for Deep Learning techniques based multi-purpose conversational agents for processing natural language queries, the system comprising:
a memory storing instructions;
one or more communication interfaces; and
one or more hardware processors coupled to the memory via the one or more communication interfaces, wherein the one or more hardware processors are configured by the instructions to:
define a plurality of components comprising of a Dialogue State Manager (DSM), a Multi-level Intent Identification Component, an Agents Manager, a plurality of Primary Agents, an Intent-Action-Dialogue (IAD) Framework, a Query-UpdateEngage (QUE) Framework, a Knowledge Graph Update-Natural Language (KGU-NL) Agent, a Knowledge Graph Engage Agent, a plurality of Auxiliary Agents, and a Knowledge Graph Update Agent, wherein each component amongst the plurality of components comprises one or more multi-purpose conversational agents;
logically integrate, based upon a set of anticipated natural language user queries, the plurality of components by one or more application programming interfaces (APIs);
receive, by the plurality of components logically integrated, a set of natural language queries from a plurality of sources;
perform, based upon the set of natural language queries, a plurality of steps, wherein the plurality of steps comprise:
(i) identify at least one multi-purpose conversational agent amongst the one or more multi-purpose conversational agents by using the DSM, wherein the identified multipurpose conversational agent corresponds to either the IAD Framework or the QUE Framework; and
(ii) predict, by using one or more Deep Learning techniques, a probable user intent against a user query amongst the set of non-classified natural language queries;
perform, based upon the predicted user intent and the identified multi-purpose conversational agent, one of:
(i) select one or more pre-defined set of responses amongst a plurality of pre-defined set of responses or engaging a user for extracting in-depth information or calling external APIs for communicating the in-depth information to one or more external services upon determining the identified multi-purpose conversational agent to be corresponding to the IAD Framework, wherein the one or more pre-defined set of responses and the in-depth information correspond to the set of natural language queries; or
(ii) classify a query amongst the set of natural language queries to identify one or more categories of conversations by implementing a recurrent neural network technique upon determining the identified multi-purpose conversational agent to be corresponding to the QUE Framework; and
(iii) perform, based upon the classified query, one of:
(a) query one or more knowledge graphs to generate a first set of responses corresponding to the set of natural language queries; or
(b) update, by the KGU-NL Agent, the one or more knowledge graphs to generate a second set of responses corresponding to the set of natural language queries.

### Claim 10 (depends on 9)

The system of claim 9, wherein the logical integration comprises hierarchically defining, based upon the set of anticipated natural language user queries, the plurality of components and the one or more multi-purpose conversational agents to process the natural language queries.

### Claim 11 (depends on 10)

The system of claim 10, wherein the defined plurality of components further comprise an auto-suggestion mechanism for auto-generating, based upon one or more training datasets, a plurality of recommended questions for one or more users to facilitate the processing of natural language queries.

### Claim 12 (depends on 11)

The system of claim 11, wherein the one or more training datasets comprise a set of semantically similar sets of queries and a set of answers corresponding to the semantically similar sets of queries.

### Claim 13 (depends on 9)

The system of claim 9, wherein the one or more hardware processors are further configured to update the one or more knowledge graphs by implementing the Knowledge Graph Update Agent based upon a set of information obtained from one or more users, wherein the set of information corresponds to the processing of natural language queries, and wherein the set of information is obtained using the Knowledge Graph Engage Agent.

### Claim 14 (depends on 13)

The system of claim 13, wherein the set of information is obtained from the one or more users by either a pro-active user engagement or by an analysis of information corresponding to the one or more knowledge graphs by the Knowledge Graph Engage Agent.

### Claim 15 (depends on 9)

The system (100) of claim 9, wherein the one or more hardware processors are further configured to generate the first set of responses by:
(i) mapping one or more entities corresponding to the one or more knowledge graphs with one or more phrases corresponding to the classified query by an inverted index based searching technique; and
(ii) traversing, based upon the mapping, the one or more knowledge graphs to generate the first set of responses.

### Claim 16 (depends on 9)

The system of claim 9, wherein the one or more hardware processors are further configured to generate the second set of responses by either engaging the user to extract the in-depth information corresponding to the set of natural language queries or by executing a set of commands by an interface.

### Claim 17

A non-transitory computer readable medium having a computer readable program embodied therein, wherein the computer readable program, when executed on a computing device, causes the computing device to:
define, by one or more hardware processors, a plurality of components comprising of a Dialogue State Manager (DSM), a Multi-level Intent Identification Component, an Agents Manager, a plurality of Primary Agents, an Intent-Action-Dialogue (IAD) Framework, a Query-Update-Engage (QUE) Framework, a Knowledge Graph Update-Natural Language (KGU-NL) Agent, a Knowledge Graph Engage Agent, a plurality of Auxiliary Agents, and a Knowledge Graph Update Agent, wherein each component amongst the plurality of components comprises one or more multi-purpose conversational agents;
logically integrate, based upon a set of anticipated natural language user queries, the plurality of components by one or more application programming interfaces (APIs);
receive, by the plurality of components logically integrated, a set of natural language queries from a plurality of sources;
perform, based upon the set of natural language queries, a plurality of steps, wherein the plurality of steps comprise:
(iii) identifying at least one multi-purpose conversational agent amongst the one or more multi-purpose conversational agents by using the DSM, wherein the identified multi-purpose conversational agent corresponds to either the IAD Framework or the QUE Framework; and
(iv) predicting, by using one or more Deep Learning techniques, a probable user intent against a user query amongst the set of non-classified natural language queries;
perform, based upon the predicted user intent and the identified multi-purpose conversational agent, one of:
(iv) selecting one or more pre-defined set of responses amongst a plurality of pre-defined set of responses or engaging a user for extracting in-depth information or calling external APIs for communicating the in-depth information to one or more external services upon determining the identified multi-purpose conversational agent to be corresponding to the IAD Framework, wherein the one or more pre-defined set of responses and the in-depth information correspond to the set of natural language queries; or
(v) classifying a query amongst the set of natural language queries to identify one or more categories of conversations by implementing a recurrent neural network technique upon determining the identified multi-purpose conversational agent to be corresponding to the QUE Framework; and
(vi) performing, based upon the classified query, one of:
(c) querying one or more knowledge graphs to generate a first set of responses corresponding to the set of natural language queries; or
(d) updating, by the KGU-NL Agent, the one or more knowledge graphs to generate a second set of responses corresponding to the set of natural language queries.
