# US 2025/0148191 A1 · Keyword extraction to generate subject lines

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

- Number: US 2025/0148191 A1
- Document ID: US20250148191A1
- Status: Published application
- Kind: A1
- Application number: 18/501,444
- Filed: 2023-11-03
- Published: 2025-05-08
- Earliest claimed: 2023-11-03
- Applicants: Shopify Inc.
- Inventors: Clare CURTIS; Morgan AUBERT; Natalie HERCUN; Vibhor MALIK
- Web page: https://patentgrep.com/patent/US20250148191A1

## CPC

- G06F 40/166: Editing, e.g. inserting or deleting
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F 40/56: Natural language generation
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods and systems for prompting a large language model (LLM) to generate a subject line for a body of text are disclosed. An original list of keywords based on a body of text is obtained using a trained machine learning model. A prompt to the LLM is then generated for generating the subject line, where the prompt includes a chosen list of keywords that is based on the original list of keywords. The prompt does not include the body of text. Responsive to the prompt, at least one generated subject line corresponding to the body of text is obtained from the LLM.

## Claims

### Claim 1

A system comprising:
a processing unit configured to execute instructions to cause the system to:
obtain an original list of keywords based on a body of text using a trained machine learning model;
generate a prompt to a large language model (LLM) for generating a subject line, the prompt including a chosen list of keywords based on the original list of keywords, wherein the prompt does not include the body of text; and
obtain, from the LLM responsive to the prompt, at least one generated subject line corresponding to the body of text.

### Claim 2 (depends on 1)

The system of claim 1, wherein the processing unit is further configured to provide the original list of keywords to a user device, wherein the user device is configured to present the original list of keywords as suggestions.

### Claim 3 (depends on 2)

The system of claim 2, wherein the processing unit is further configured to receive the chosen list of keywords from the user device.

### Claim 4 (depends on 1)

The system of claim 1, wherein the chosen list of keywords is the original list of keywords or includes at least one of the keywords from the original list of keywords.

### Claim 5 (depends on 1)

The system of claim 1, wherein the processing unit is further configured to:
provide the at least one generated subject line to a user device for presentation;
receive a revised list of keywords, based on the chosen list of keywords, from the user device;
generate another prompt to the LLM for generating another subject line, the prompt including the revised list of keywords, wherein the prompt does not include the body of text; and
obtain, from the LLM, another at least one generated subject line.

### Claim 6 (depends on 5)

The system of claim 5, wherein the processing unit is further configured to:
save the at least one generated subject line in memory; and
provide the at least one generated subject line and the other at least one generated subject line to the user device for presentation.

### Claim 7 (depends on 5)

The system of claim 5, wherein the processing unit is further configured to:
provide the chosen list of keywords with the at least one generated subject line to the user device for presentation.

### Claim 8 (depends on 1)

The system of claim 1, wherein the processing unit is further configured to:
provide the at least one generated subject lines to a user device for presentation;
provide feedback options for the at least one generated subject line to the user device for presentation; and
receive feedback from the user device.

### Claim 9 (depends on 1)

The system of claim 1, wherein the prompt further includes one or more of historical email data, business information, and user demographic information associated with a user.

### Claim 10 (depends on 1)

The system of claim 1, wherein the trained machine learning model is a text summarizer that uses natural language processing (NLP) techniques.

### Claim 11

A computer-implemented method comprising:
obtaining an original list of keywords based on a body of text using a trained machine learning model;
generating a prompt to a large language model (LLM) for generating a subject line, the prompt including a chosen list of keywords based on the original list of keywords, wherein the prompt does not include the body of text; and
obtaining, from the LLM responsive to the prompt, at least one generated subject line corresponding to the body of text.

### Claim 12 (depends on 11)

The method of claim 11, further comprising providing the original list of keywords to a user device, wherein the user device is configured to present the original list of keywords as suggestions.

### Claim 13 (depends on 12)

The method of claim 12, further comprising receiving the chosen list of keywords from the user device.

### Claim 14 (depends on 13)

The method of claim 13, wherein the chosen list of keywords is the original list of keywords or includes at some of the keywords from the original list of keywords.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
providing the at least one generated subject line to a user device for presentation;
receiving a revised list of keywords, based on the chosen list of key words, from the user device;
generating another prompt to the LLM for generating another subject line, the prompt including the revised list of keywords, wherein the prompt does not include the body of text; and
obtaining, from the LLM, another at least one generated subject line.

### Claim 16 (depends on 15)

The method of claim 15, further comprising providing the chosen list of keywords with the at least one generated subject line to the user device for presentation.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
saving the at least one generated subject line in memory; and
providing the at least one generated subject line and the other at least one generated subject line to the user device for presentation.

### Claim 18 (depends on 13)

The method of claim 13, further comprising:
providing the at least one generated subject lines to a user device for presentation;
providing feedback options for the at least one generated subject line to the user device for presentation; and
receive feedback from the user device.

### Claim 19 (depends on 13)

The method of claim 13, wherein the prompt further includes one or more of historical email data, business information, and user demographic information associated with the user device.

### Claim 20

A non-transitory computer-readable medium storing instructions that, when executed by a processor of a system, causes the system to:
obtain an original list of keywords based on a body of text using a trained machine learning model;
generate a prompt to a large language model (LLM) for generating a subject line, the prompt including a chosen list of keywords based on the original list of keywords, wherein the prompt does not include the body of text; and
obtain, from the LLM responsive to the prompt, at least one generated subject line corresponding to the body of text.
