# US 2026/0030299 A1 · Framework for query generation in an artificial intelligence environment

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

- Number: US 2026/0030299 A1
- Document ID: US20260030299A1
- Status: Published application
- Kind: A1
- Application number: 18/785,609
- Filed: 2024-07-26
- Published: 2026-01-29
- Earliest claimed: 2024-07-26
- Assignees: Hartford Fire Insurance Company
- Applicants: Hartford Fire Insurance Company
- Inventors: Srinivas Kamini; Dean M. Mazzotta
- Web page: https://patentgrep.com/patent/US20260030299A1

## CPC

- G06F 16/90332: {Natural language query formulation or dialogue systems}
- G06N 3/0475: Generative networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

According to some embodiments, systems and methods are provided including a memory storing program code: and one or more processing units to execute the program code to cause the system to: receive a natural language query; generate a Structured Query Language (SQL) query based on the received natural language query; invoke an Application Programming Interface (API) call with the SQL query; receive a response to the SQL query from a data source; generate a natural language response; and transmit the natural language response to an entity. Numerous other aspects are provided.

## Claims

### Claim 1

A system comprising:
a memory storing program code: and
one or more processing units to execute the program code to cause the system to:
receive a natural language query;
generate a Structured Query Language (SQL) query based on the received natural language query;
determine, via a no contract-based Application Programming Interface (API), an endpoint and an API call from data included in the generated SQL query;
invoke the no contract-based API;
receive a response to the SQL query from a data source via the no contract-based API;
generate a natural language response from the response to the SQL query; and
transmit the natural language response to an entity.

### Claim 2 (depends on 1)

The system of claim 1, further comprising program code to cause the system to:
extract one or more intents from the natural language query; and
transmit the extracted one or more intents to a text generation tool for generation of the SQL query.

### Claim 3 (depends on 2)

The system of claim 2 wherein the one or more intents are extracted based on action verbs in the natural language query.

### Claim 4 (depends on 2)

The system of claim 2, wherein the text generation tool is a large language model (LLM).

### Claim 5 (depends on 4)

The system of claim 4, wherein the LLM is trained with one or more data dictionaries.

### Claim 6 (depends on 5)

The system of claim 5, wherein each data dictionary is generated for a respective application-specific database.

### Claim 7 (depends on 1)

The system of claim 1, wherein the SQL query includes a data source identifier.

### Claim 8 (depends on 1)

The system of claim 1, wherein the API call provides security to the data source.

### Claim 9

A method comprising:
receiving a natural language query;
extracting one or more intents from the natural language query;
generating a Structured Query Language (SQL) query based on the extracted intents;
determining, via a no contract-based Application Programming Interface (API), an endpoint and an API call from data included in the generated SQL query;
invoking the no contract-based API;
receiving a response to the SQL query from a data source via the no contract-based API;
generating a natural language response from the response to the SQL query; and
transmitting the natural language response to an entity.

### Claim 10 (depends on 9)

The method of claim 9, wherein a large language model (LLM) generates the SQL query.

### Claim 11 (depends on 10)

The method of claim 10, wherein the LLM is trained with one or more data dictionaries.

### Claim 12 (depends on 11)

The method of claim 11, wherein each data dictionary is generated for a respective application-specific database.

### Claim 13 (depends on 9)

The method of claim 9, wherein the SQL query includes a data source identifier.

### Claim 14 (depends on 9)

The method of claim 9, wherein the natural language response is transmitted as a text response or a voice response.

### Claim 15

One or more non-transitory computer-readable media storing program code that, when executed by a computing system, causes the computing system to perform operations comprising:
receiving a natural language query;
extracting one or more intents from the natural language query;
generating a Structured Query Language (SQL) query based on the extracted intents;
determining, via a no contract-based Application Programming Interface (API), an endpoint and an API call from the extracted one or more intents;
invoking the no contract-based;
receiving a response to the SQL query from a data source via the no contract-based API;
generating a natural language response from the response to the SQL query; and
transmitting the natural language response to an entity.

### Claim 16 (depends on 15)

The media of claim 15, wherein the one or more intents are extracted based on action verbs in the natural language query.

### Claim 17 (depends on 15)

The media of claim 15, wherein a large language model (LLM) generates the SQL query.

### Claim 18 (depends on 17)

The media of claim 17, wherein the LLM is trained with one or more data dictionaries.

### Claim 19 (depends on 18)

The media of claim 18, wherein each data dictionary is generated for a respective application-specific database.

### Claim 20 (depends on 15)

The media of claim 15, wherein the natural language response is transmitted as a text response or a voice response.
