IP Library Granted Patent US 12,554,752
Granted Patent B2
US 12,554,752 · App. 18/344,747 · Granted Feb 17, 2026

Processing natural language queries with API calls and API executions

Inventors: Sopan Khosla (Sunnyvale, CA); Vinayshekhar Bannihatti Kumar (Santa Clara, CA); Rashmi Gangadharaiah (San Jose, CA); Deepak Seetharam Nadig (San Jose, CA); James W. Horsley (Carnation, WA); Abhijit S Barde (Cupertino, CA)
Assignee: Amazon Technologies, Inc.
G06F16/3329G06F9/547G06F16/3344
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,554,752
App. No.
18/344,747
Granted
Feb 17, 2026
Kind
B2
Abstract

Systems and methods are provided for a natural language question answering service to provide answers to natural language questions regarding network-based services or computing domains. The natural language question answering service may receive the natural language question from a customer computing device. An aggregator of the natural language question answering service can retrieve passages from search systems based on the question and generate a prompt. A large language model (LLM) of the natural language question answering service may receive the prompt and provide an answer. The answer may be verified by a verifier of the natural language question answering service. Attribution may be applied to the answers and retrieved passages to produce references, inline citations, and similar questions. A watermarking module of the natural language question answering service may watermark the answer if it is verified.

Claims (50)

1 . A system for processing queries, the system configured to:

receive, from a customer computing device and via a user interface (UI) associated with the customer computing device, a question in natural language text, the question regarding operation of a network-based service associated with a customer corresponding to the customer computing device;

form, via an aggregator of the system, supplemental search system results based on the received question, wherein the supplemental search system results include one or more documents and portions of the one or more documents;

generate a prompt based on the received question and a portion of the supplemental search system results;

obtain information corresponding to the customer's use of the network-based service;

pass, to a large language model (LLM) subsystem of the system, the prompt and the information corresponding to the customer's use of the network-based service to generate, via the LLM subsystem, one or more answers, wherein the one or more answers include an application programming interface (API) command to the network-based service;

send, to the customer computing device, the one or more answers with the API command with a prompt as to whether the API command should be executed;

receive, from the customer computing device, a confirmation to run the API command; and

execute the API command against the network-based service.

2 . The system as recited in claim 1 , wherein the one or more answers comprise human readable text.

3 . The system as recited in claim 2 , wherein the supplemental search system results are also sent to the customer computing device.

4 . The system as recited in claim 1 , wherein in forming the one or more documents by the aggregator, the aggregator is configured to:

send, to the search system, requests to retrieve the one or more documents; and

receive, from the search system, the one or more documents.

5 . A system for processing queries, the system comprising a memory storing computer-executable instructions and a processor configured to execute the computer-executable instructions to:

receive, from a customer computing device, a question regarding operation of a network-based service associated with a customer corresponding to the customer computing device;

form, via an aggregator of the system, relevant passages corresponding to search system results based on the received question;

obtain information corresponding to the customer's use of the network-based service;

pass, to a large language model (LLM) subsystem of the system, a prompt generated based on the question, the relevant passages, and the information corresponding to the customer's use of the network-based service to generate, via the LLM subsystem, one or more answers, wherein the one or more answers include an application programming interface (API) command to the network-based service;

execute the API command on the network-based service to completion; and

send to the customer computing device, the one or more answers and a notification of completion of the API command.

6 . The system as recited in claim 5 , wherein the relevant passages are also sent to the customer computing device.

7 . The system as recited in claim 5 , wherein the LLM subsystem comprises a Retrieval Augmented Generation (RAG) model.

8 . The system as recited in claim 5 , wherein the relevant passages are retrieved by the aggregator from a plurality of search systems, wherein the plurality of search systems include at least one of:

a search system configured to provide answers related to network-based storage systems;

a search system configured to provide answers related to network-based on-demand code execution systems;

a search system configured to provide answers related to network-based database systems; or

a search system configured to provide answers related to network-based on demand compute systems.

9 . The system as recited in claim 8 , wherein at least one of the plurality of search systems is configured to provide answers related to questions of customers of network-based systems.

10 . The system as recited in claim 8 , wherein at least one of the plurality of search systems is configured to provide answers related to frequently asked questions (FAQ) pages of network-based systems.

11 . The system as recited in claim 8 , wherein the LLM subsystem is configured to:

store information regarding the customers of network-based systems, wherein the information at least describes network-based products the customers are subscribed to and actions taken by the customers regarding the network-based products; and

train a machine learning model of the LLM subsystem with the stored customers' information to identify patterns of actions of the customers regarding the network-based products.

12 . The system as recited in claim 5 , wherein prior to sending the one or more answers to the customer computing device, the processor is further configured to execute the computer-executable instructions to: produce, via an attribution component of the system, one or more of (i) references, (ii) inline citations, or (ii) similar questions to the question, based on the one or more answers and the search system results.

13 . A computer-implemented method for processing queries, the method comprising:

receiving, from a customer computing device, a question regarding operation of a network-based service associated with a customer corresponding to the customer computing device;

forming, via an aggregator, relevant passages to retrieve from search system results based on the received question;

obtaining information corresponding to the customer's use of the network-based service;

passing, to a large language model (LLM) subsystem of the system, a prompt generated based on the question, the relevant passages, and the information corresponding to the customer's use of the network-based service to generate, via a large language model (LLM) subsystem, one or more answers, wherein the one or more answers include an application programming interface (API) command to the network-based service;

executing the API command on the network-based service to completion; and

sending to the customer computing device, the one or more answers and a notification of completion of the API command.

14 . The computer-implemented method of claim 13 , wherein the relevant passages comprise of: documents, text of the documents, pictures of the documents, or video of the documents.

15 . The computer-implemented method of claim 13 , wherein the relevant passages are also sent to the customer computing device.

16 . The computer-implemented method of claim 13 , wherein the one or more answers comprise human readable text.

17 . The computer-implemented method of claim 13 , wherein the LLM subsystem comprises a Retrieval Augmented Generation (RAG) model.

18 . The computer-implemented method of claim 13 further comprising prior to sending the one or more answers to the customer computing device, generating, via a watermarking module, a watermarked version of the one or more answers, wherein the watermarked version of the one or more answers is generated by embedding signals into human readable text associated with the one or more answers such that the embedding signals make the watermarked version of the one or more answers proprietary to the system.

19 . The computer-implemented method of claim 13 , wherein in forming the relevant passages by the aggregator, the aggregator is configured to:

sending, to a search system, requests to retrieve the relevant passages; and

receiving, from the search system, the relevant passages.

20 . The computer-implemented method of claim 13 , further comprising, prior to sending the one or more answers to the customer computing device, producing one or more of (i) references, (ii) inline citations, or (ii) similar questions to the question, based on the one or more answers and the relevant passages.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 31, 2025
From: KHOSLA, SOPAN; KUMAR, VINAYSHEKHAR BANNIHATTI; GANGADHARAIAH, RASHMI; HORSLEY, JAMES W.; NADIG, DEEPAK SEETHARAM; BARDE, ABHIJIT S
To: AMAZON TECHNOLOGIES, INC.
Reel/Frame 072753/0978 →
Continuity (1)
Related Publication 20250005051A1 · Jan 2, 2025
References Cited (31)
US 11860914B1 · Qadrud-Din · 2024 [cited by examiner]
US 11972223B1 · DeFoor et al. · 2024 [cited by applicant]
US 12057032B1 · Khanwalkar · 2024 [cited by examiner]
US 12080187B1 · Ferrucci · 2024 [cited by examiner]
US 20100153094A1 · Lee et al. · 2010 [cited by applicant]
US 20160360336A1 · Gross · 2016 [cited by examiner]
US 20180075131A1 · Van Hoof et al. · 2018 [cited by applicant]
US 20190163714A1 · Ma · 2019 [cited by examiner]
US 20190318011A1 · Teran Guajardo · 2019 [cited by examiner]
US 20200356610A1 · Coimbra · 2020 [cited by examiner]
US 20210089594A1 · Xiong · 2021 [cited by examiner]
US 20210133224A1 · Tiwari et al. · 2021 [cited by applicant]
US 20220343236A1 · Daub · 2022 [cited by examiner]
US 20220405484A1 · Kanchibhotla · 2022 [cited by examiner]
US 20220414456A1 · Malaya · 2022 [cited by examiner]
US 20230133522A1 · Zhao et al. · 2023 [cited by applicant]
US 20230325420A1 · Pickens · 2023 [cited by applicant]
US 20240185022A1 · Akimoto · 2024 [cited by examiner]
US 20240289559A1 · Gajek et al. · 2024 [cited by applicant]
US 20240320257A1 · Amoateng · 2024 [cited by examiner]
US 20240354436A1 · Mukherjee · 2024 [cited by examiner]
US 20250005052A1 · Khosla et al. · 2025 [cited by applicant]
US 20250005057A1 · Khosla et al. · 2025 [cited by applicant]
US 20250005058A1 · Khosla et al. · 2025 [cited by applicant]
US 20250007790A1 · Marwah et al. · 2025 [cited by applicant]
US 20250045256A1 · Gottlob · 2025 [cited by examiner]
WO WO2016191737A2 · 2016 [cited by examiner]
WO WO2020219476 · 2020 [cited by applicant]
WO WO2025006458 · 2025 [cited by applicant]
International Search Report and Written Opinion, re PCT Application No. PCT/US2024/035401, mailed Nov. 29, 2024. [cited by applicant]
Ji, et al., “Survey of Hallucination in Natural Language Generation,” ACM Computing Surveys, vol. 55, No. 12, Article 248, Publication date: Mar. 2023. [cited by applicant]