IP Library › Granted Patent US 12,475,317
Granted Patent B2
US 12,475,317 · App. 18/447,273 · Granted Nov 18, 2025

System and method for query authorization and response generation using machine learning

Inventors: Guilherme Gomes (Porto Alegre, BR); Bruno Apel (Porto Alegre, BR); Jarismar Silva (Porto Alegre, BR); Vincent Kellers (Bloomfield, NJ); Roberto Rodrigues Dias (Porto Alegre, BR); Roberto Masiero (Basking Ridge, NJ); Roberto Silveira (Hoboken, NJ)
Assignee: ADP, Inc.
G06F40/295G06F18/24G06F40/205G06N20/00G10L17/24
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,475,317
App. No.
18/447,273
Granted
Nov 18, 2025
Kind
B2
Abstract

Systems, methods, and computer-readable storage media for responding to a query using a neural network and natural language processing. If necessary, the system can request disambiguation, then parse the query using a trained machine-learning classifier, resulting in at least one of an identified subject or an identified domain of the text query. The system can determine if the user is authorized to retrieve answers to the query and, if so, retrieve factual data associated with the query. The system can then retrieve a response template, and fill in the template with the retrieved facts. The system can then determine, by executing a machine comprehension model on the filled response template, a probable readability token, portion of text, of at least a portion of the filled response template and, upon identifying that the probable readability is above a threshold, reply to the text query with the at least a portion of the filled response template.

Claims (49)

1 . A method comprising:

establishing, by one or more processors, an interface for a chatbot;

receiving, by the one or more processors via the interface for the chatbot, a query from a computing device;

parsing, via the one or more processors executing a trained machine-learning classifier, the query to determine a subject of the query;

selecting, by the one or more processors, based on the subject of the query, a response template from a plurality of response templates stored in a data repository, wherein the response template is selected to provide a response to the query;

filling, via the one or more processors accessing a restricted database, the response template by matching an identifier included in the response template with a key to the restricted database to retrieve at least a portion of restricted data from the restricted database associated with the subject, resulting in a filled response template, wherein the identifier is associated with the at least the portion of the restricted data;

removing, via the one or more processors, one or more portions of the filled response template that are not associated with the subject, resulting in a partially filled response template;

determining, via the one or more processors, based on execution of a comprehension model on the partially filled response template, that a probability associated with the partially filled response template satisfies a threshold; and

providing, via the one or more processors, responsive to the probability associated with the partially filled response template satisfying the threshold, the partially filled response template via the interface of the chatbot.

2 . The method of claim 1 , wherein the trained machine-learning classifier iteratively modifies code executed by the one or more processors upon receiving a threshold number of queries.

3 . The method of claim 2 , wherein the trained machine-learning classifier uses logistic regression between iterations to identify which aspects of the code to modify.

4 . The method of claim 1 , wherein the query is:

received as a speech query; and

converted, by the one or more processors executing a speech-to-text conversion, the speech query into the query.

5 . The method of claim 1 , wherein an identity associated with the computing device identifies at least one of a job title and a clearance level.

6 . The method of claim 1 , wherein the restricted data comprises salary information of other individuals.

7 . A system comprising:

one or more processors; and

a computer-readable storage medium having instructions stored which, when executed by the one or more processors, cause the one or more processors to:

establish an interface for a chatbot;

receive, via the interface for the chatbot, a query from a computing device;

parse, based on execution of a trained machine-learning classifier, the query to determine a subject of the query;

select, based on the subject of the query, a response template from a plurality of response templates stored in a data repository, wherein the response template is selected to provide a response to the query;

fill, based on access to a restricted database, the response template by matching an identifier included in the response template with a key to the restricted database to retrieve at least a portion of restricted data from the restricted database associated with the subject, resulting in a filled response template, wherein the identifier is associated with the at least the portion of the restricted data;

remove one or more portions of the filled response template that are not associated with the subject, resulting in a partially filled response template;

determine, based on execution of a comprehension model on the partially filled response template, that a probability associated with the partially filled response template satisfies a threshold; and

provide, responsive to the probability associated with the partially filled response template satisfying the threshold, the partially filled response template via the interface of the chatbot.

8 . The system of claim 7 , wherein the trained machine-learning classifier iteratively modifies code executed by the one or more processors upon receiving a threshold number of queries.

9 . The system of claim 8 , wherein the trained machine-learning classifier uses logistic regression between iterations to identify which aspects of the code to modify.

10 . The system of claim 7 , wherein the query is:

received as a speech query; and

converted, by the one or more processors based on execution of a speech-to-text conversion, the speech query into the query.

11 . The system of claim 7 , wherein an identity associated with the computing device identifies at least one of a job title and a clearance level.

12 . The system of claim 7 , wherein the restricted data comprises salary information of other individuals.

13 . A non-transitory computer-readable storage medium having instructions stored which, when executed by at least one processor, cause the at least one processor to perform operations comprising:

establishing an interface for a chatbot;

receiving, via the interface for the chatbot, a query from a computing device;

parsing, by executing a trained machine-learning classifier, the query to determine a subject of the query;

selecting, based on the subject of the query, a response template from a plurality of response templates stored in a data repository, wherein the response template is selected to provide a response to the query;

filling, by accessing a restricted database, the response template by matching an identifier included in the response template with a key to the restricted database to retrieve at least a portion of restricted data from the restricted database associated with the subject, resulting in a filled response template, wherein the identifier is associated with the at least the portion of the restricted data;

removing one or more portions of the filled response template that are not associated with the subject, resulting in a partially filled response template;

determining, based on execution of a comprehension model on the partially filled response template, that a probability associated with the partially filled response template satisfies a threshold; and

providing, responsive to the probability associated with the partially filled response template satisfying the threshold, the partially filled response template via the interface of the chatbot.

14 . The non-transitory computer-readable storage medium of claim 13 , wherein the trained machine-learning classifier iteratively modifies code executed by the at least one processor upon receiving a threshold number of queries.

15 . The non-transitory computer-readable storage medium of claim 14 , wherein the trained machine-learning classifier uses logistic regression between iterations to identify which aspects of the code to modify.

16 . The non-transitory computer-readable storage medium of claim 13 , wherein the query is:

received as a speech query; and

converted, by executing a speech-to-text conversion, the speech query into the query.

17 . The non-transitory computer-readable storage medium of claim 13 , wherein an identity associated with the computing device identifies at least one of a job title and a clearance level.

Continuity (3)
Continuation 18068736 · Dec 20, 2022
Continuation 16864931 · May 1, 2020
Related Publication 20230385552A1 · Nov 30, 2023
References Cited (48)
US 6721706B1 · Strubbe · 2004 [cited by examiner]
US 6882441B1 · Faust · 2005 [cited by examiner]
US 7444351B1 · Nomiyama · 2008 [cited by applicant]
US 10482475B2 · Douglas · 2019 [cited by examiner]
US 10762114B1 · Annunziata et al. · 2020 [cited by applicant]
US 20040177052A1 · Bridges · 2004 [cited by examiner]
US 20060010104A1 · Pettinati et al. · 2006 [cited by applicant]
US 20060161531A1 · Khandelwal · 2006 [cited by examiner]
US 20110161347A1 · Johnston · 2011 [cited by applicant]
US 20110282890A1 · Griffith · 2011 [cited by applicant]
US 20140006012A1 · Zhou et al. · 2014 [cited by applicant]
US 20140040274A1 · Aravamudan et al. · 2014 [cited by applicant]
US 20140171133A1 · Stuttle · 2014 [cited by examiner]
US 20140282238A1 · Dart · 2014 [cited by examiner]
US 20150324349A1 · Weiss · 2015 [cited by examiner]
US 20150370979A1 · Boloor · 2015 [cited by examiner]
US 20160125750A1 · Barker et al. · 2016 [cited by applicant]
US 20160283491A1 · Lu · 2016 [cited by examiner]
US 20160294748A1 · Yang · 2016 [cited by examiner]
US 20170034177A1 · Narasimhan et al. · 2017 [cited by applicant]
US 20170249307A1 · Whitnah et al. · 2017 [cited by applicant]
US 20170262811A1 · Ovadya · 2017 [cited by examiner]
US 20180268300A1 · Konopnicki · 2018 [cited by examiner]
US 20180357282A1 · Ambartsumov · 2018 [cited by examiner]
US 20190034982A1 · Kulp · 2019 [cited by examiner]
US 20190188410A1 · Briscoe et al. · 2019 [cited by applicant]
US 20190214114A1 · Schleyer · 2019 [cited by examiner]
US 20190243979A1 · De Gaetano · 2019 [cited by examiner]
US 20190311064A1 · Chakraborty · 2019 [cited by examiner]
US 20200012650A1 · Fan · 2020 [cited by examiner]
US 20200142996A1 · Kondadadi · 2020 [cited by examiner]
US 20200159798A1 · Gustavson · 2020 [cited by examiner]
US 20200213319A1 · Bowie · 2020 [cited by examiner]
US 20200327196A1 · Sampat · 2020 [cited by examiner]
US 20210081425A1 · Wayne et al. · 2021 [cited by applicant]
US 20210081615A1 · McRitchie · 2021 [cited by examiner]
US 20210240776A1 · Jawagal et al. · 2021 [cited by applicant]
US 20210294857A1 · Aher · 2021 [cited by examiner]
US 20210312141A1 · Shi · 2021 [cited by examiner]
WO WO2019103738A1 · 2019 [cited by examiner]
W. J. Premerlani and M. R. Blaha, (“An approach for reverse engineering of relational databases,” [1993] Proceedings Working Conference on Reverse Engineering, 1993, pp. 151-160, doi: 10.1109/WCRE.1993.287769.) (Year: 1… [cited by examiner]
International Preliminary Report on Patentability issued in corresponding International Application No. PCT/US2021/029625 dated Nov. 10, 2022 (7 pages). [cited by applicant]
International Search Report and Written Opinion issued in corresponding International Application No. PCT/US2021/029625 dated Jul. 22, 2021 (9 pages). [cited by applicant]
Lapalme, G., & Kosseim, L. (2003). Mercure: Towards an automatic e-mail follow-up system. IEEE Computational Intelligence Bulletin, 2(1), 14-18. (Year: 2003). [cited by applicant]
U.S. Notice of Allowance issued in corresponding U.S. Appl. No. 16/864,931, dated Sep. 20, 2022 (13 pages). [cited by applicant]
U.S. Notice of Allowance on U.S. Appl. No. 18/068,736 dated Apr. 26, 2023 (13 pages). [cited by applicant]
U.S. Non-Final Office Action issued in corresponding U.S. Appl. No. 16/864,931, dated May 25, 2022 (40 pages). [cited by applicant]
Extended European Search Report issued in corresponding EP Application No. 21797366.8, dated Apr. 4, 2024 (10 pages). [cited by applicant]