# US 2026/0288894 A1 · Automated extraction logic generation to enhance computing information extraction

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

- Number: US 2026/0288894 A1
- Document ID: US20260288894A1
- Status: Published application
- Kind: A1
- Application number: 19/082,917
- Filed: 2025-03-18
- Published: 2026-09-24
- Earliest claimed: 2025-03-18
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Tamanna NAYAK; Rajiv Kumar NISTALA; Priyanka BHAYANA; Garv Sunil GHAI; Anudeep JONNALA; Karan Veer Singh Bagga
- Web page: https://patentgrep.com/patent/US20260288894A1

## CPC

- G06F 16/9577: {Optimising the visualization of content, e.g. distillation of HTML documents}
- G06F 8/43: {Checking; Contextual analysis}
- G06F 40/117: Tagging; Marking up (details of markup languages G06F40/143); Designating a block; Setting of attributes (style sheets, e.g. eXtensible Stylesheet Language Transformation [XSLT], G06F40/154)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Various embodiments discussed herein relate to generating, via a language model, extraction logic to extract parameters from data sources, and using these parameters to generate alternative options or recommendations. Various embodiments operate in offline and/or online/runtime modes. In offline mode, data samples are collected from URLs, webpages, app pages, and/or emails, and extraction logic (for example, regexes, XPath, CSS selectors, or executable code for emails) is generated. The extraction logic is stored with domain-specific metadata for efficient retrieval. In online mode, data sources are detected in real-time, and the stored extraction logic is applied to extracted parameters. The parameters are then passed to an API to determine alternative options or recommendations, which are presented as notifications or contextual suggestions.

## Claims

### Claim 1

A system comprising:
at least one computer processor; and
one or more computer storage media storing computer-useable instructions that, when used by the at least one computer processor, cause the at least one computer processor to perform operations comprising:
obtaining a data source that includes at least one of: a Uniform Resource Locator (URL), an app page or webpage, or an email;
providing the data source and a prompt as input to a language model, wherein the language model generates extraction logic, the extraction logic including at least one of a rule, a pattern, or an instruction defining how information should be extracted from the data source;
based at least in part on the language model generating the extraction logic, extracting a parameter from the data source by applying the generated extraction logic to the data source;
determining an alternative option or recommendation relative to the parameter by calling an Application Programming Interface (API) and passing the parameter via the API; and
based at least in part on the determining of the alternative option or recommendation, generating an output that indicates at least one of: the alternative option or recommendation, or the parameter.

### Claim 2 (depends on 1)

The system of claim 1, wherein the data source includes the URL and the extraction logic includes a regular expression (regex), and wherein the operations further comprise:
collecting a plurality of URLs from logs from a plurality of domains, the URL being included in the plurality of URLs, and wherein the language model generates the regex based on processing the plurality of URLs.

### Claim 3 (depends on 1)

The system of claim 1, wherein the operations further comprise:
detecting the data source being accessed by a user device during runtime; and
based at least in part on the detecting of the data source being accessed by the user device during runtime, accessing, from a repository, the extraction logic and engaging in the extracting of the parameter from the data source by applying the generated extraction logic to the data source.

### Claim 4 (depends on 1)

The system of claim 1, wherein the operations further comprise:
determining that the API, among a plurality of APIs, is to be called based at least in part on at least one of: the parameter, a domain, a transaction, or enough data being extracted during the extracting of the parameter.

### Claim 5 (depends on 1)

The system of claim 1, wherein the operations further comprise:
reformatting the parameter from a first format to a second format required by the API to ensure that the API processes the parameter correctly.

### Claim 6 (depends on 1)

The system of claim 1, wherein the operations further comprise:
determining if the alternative option or recommendation is more optimal relative to information presented at the webpage by comparing the alternative option or recommendation with at least one of: the parameter extracted from the data source, or other data extracted from the webpage, and wherein the generating of the output is further based on determining if the alternative option or recommendation is more optimal relative to the information presented at the webpage.

### Claim 7 (depends on 1)

The system of claim 1, wherein the operations further comprise:
responsive to the calling of the API and passing the parameter via the API, receiving an API response;
determining that the API response deviates from an expected result; and
based at least in part on the API response deviating from the expected result, generating a second extraction logic by using the API response to modify the prompt.

### Claim 8 (depends on 1)

The system of claim 1, wherein the data source includes the webpage and the extraction logic includes at least one of an Extensible Markup Language Path (XPath) selector or a Cascading Style Sheets (CSS) selector, and wherein the operations further comprise:
collecting HyperText Markup Language (HTML) page content of a plurality of websites, the webpage being included in the HTML page content, and
wherein the language model generates the XPath selector or CSS selector based on processing the HTML page content of a plurality of websites.

### Claim 9 (depends on 1)

The system of claim 1, wherein the data source includes the email and the extraction logic includes computer programming code, and wherein the operations further comprise:
collecting a plurality of emails from a domain, the email being included in the plurality of emails, and
wherein the language model generates the computer program code based on processing the plurality of emails.

### Claim 10 (depends on 9)

The system of claim 9, wherein the operations further comprise:
compiling or interpreting the computer programming code and associating the computer programming code with the domain; and
confirming that the computer programming code consistently extracts correct parameters by validating the compiled or interpreted computer programming code against at least a second email.

### Claim 11 (depends on 1)

The system of claim 1, wherein the data source represents travel-related information, and wherein the parameter comprises at least one of: source and destination locations, travel dates, pricing information, or booking details, and wherein the alternative option or recommendation includes at least one of: an alternative travel suggestion, a price comparison, or an additional travel-related recommendation, and wherein the output includes at least one of a notification of the alternative travel suggestion, a pre-populated booking suggestion, or an enhanced travel itinerary including a suggested experience or service.

### Claim 12 (depends on 1)

The system of claim 1, wherein the extracting of the parameter from the data source by applying the generated extraction logic to the data source is based on one of:
matching, via a regular expression (regex), a key in the regex to a key in the URL and responsively extracting a value representing the parameter in the URL;
specifying a path or rule, via an Extensible Markup Language Path (XPath) selector or a Cascading Style Sheets (CSS) selector, for navigating through the webpage's Document Object Model (DOM) tree and locating a node containing the parameter; or
scanning, using a custom script, content in the email for a predetermined field representing the parameter by identifying a key character in the script that corresponds to a key character in the email and extracting a value associated with the parameter using a defined pattern.

### Claim 13

A computer-implemented method comprising:
detecting a travel-related data source of information accessed by a user during runtime, the data source being one or more of: a URL associated with a travel-related domain, a webpage containing travel-related content, or an email containing travel-related booking details;
based at least in part on the travel-related data source of information, accessing, via a repository, a data record that includes extraction logic, the extraction logic having been generated via a language model, the extraction logic including at least one of a rule, a pattern, or an instruction defining how information should be extracted from the travel-related data source;
in response to the accessing of the data record that includes the extraction logic, extracting a parameter from the travel-related data source by applying the generated extraction logic to the travel-related data source, the parameter comprising at least one of: source and destination locations, a travel date, pricing information, or a booking detail;
in response to the extracting of the parameter from the data source, determining an alternative travel option or travel recommendation relative to the parameter by calling an Application Programming Interface (API) and passing the parameter via the API; and
based at least in part on the determining of the alternative travel option or travel recommendation, generating an output that indicates at least one of: the alternative travel option or travel recommendation, or the parameter.

### Claim 14 (depends on 13)

The computer-implemented method of claim 13, further comprising:
determining that the API, among a plurality of APIs, is to be called based at least in part on at least one of: the parameter, a domain, a transaction, or enough data being extracted during the extracting of the parameter.

### Claim 15 (depends on 13)

The computer-implemented method of claim 13, further comprising:
reformatting the parameter from a first format to a second format required by the API to ensure that the API processes the parameter correctly.

### Claim 16 (depends on 13)

The computer-implemented method of claim 13, further comprising:
determining if the alternative option or recommendation is more optimal relative to information presented at the webpage by comparing the alternative option or recommendation with at least one of: the parameter extracted from the data source, or other data extracted from the webpage, and
wherein the generation of the output is further based on determining if the alternative option or recommendation is more optimal relative to the information presented at the webpage.

### Claim 17 (depends on 13)

The computer-implemented method of claim 13, further comprising:
responsive to the calling of the API and passing the parameter via the API, receiving an API response;
determining that the API response deviates from an expected result; and based at least in part on the API response deviating from the expected result, generating a second extraction logic by using the API response to modify a prompt.

### Claim 18 (depends on 13)

The computer-implemented method of claim 13, further comprising generating, via a language model and prior to the detecting of the travel-related data source of information, the extraction logic for each data sample from a plurality of data sources, the extraction logic comprising at least one of: a regular expression (regex), an Extensible Markup Language Path (XPath) selector, a custom script for an email, or a Cascading Style Sheets (CSS) selector.

### Claim 19

One or more computer storage media having computer-executable instructions embodied thereon that, when executed, by one or more processors, cause the one or more processors to perform operations comprising:
collecting a data sample from a plurality of data sources, the plurality of data sources including at least one of: a Uniform Resource Locator (URL), a webpage, an app page, or an email;
generating, via a language model, extraction logic for each data sample from the plurality of data sources, the extraction logic comprising at least one of: a regular expression (regex), an Extensible Markup Language Path (XPath) selector, a custom script for the email, or a Cascading Style Sheets (CSS) selector; and
in response to the generating, via the language model, the extraction logic, storing the extraction logic in a repository, wherein the extraction logic is associated with at least one corresponding domain or subdomain for subsequent retrieval.

### Claim 20 (depends on 19)

One or more computer storage media of claim 19, wherein the operations further comprise:
subsequent to the storing of the extraction logic in the repository, detecting a data source accessed by a user device during runtime, the data source being at least one of: a URL accessed via a browser or app, an HTML page rendered in a browser or app, or an email received by a user of the user device;
in response to detecting the data source accessed by the user device during runtime, retrieving the extraction logic stored in the repository;
in response to the retrieving of the extraction logic stored in the repository, extracting a parameter by applying the extraction logic to the detected data source; and
in response to the extracting of the parameter, providing the extracted parameter to an external system that is configured to generate an alternative option or recommendation relative to the parameter.
