# US 2026/0154322 A1 · Generating step-by-step procedures from historical conversation records using a language model

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

- Number: US 2026/0154322 A1
- Document ID: US20260154322A1
- Status: Published application
- Kind: A1
- Application number: 19/401,147
- Filed: 2025-11-25
- Published: 2026-06-04
- Earliest claimed: 2024-11-25
- Assignees: Intercom, Inc.
- Applicants: Intercom, Inc.
- Inventors: Robert CLANCY; Molly MAHAR; Pratik BOTHRA; Fedor PARFENOV
- Web page: https://patentgrep.com/patent/US20260154322A1

## CPC

- G06F 16/3329: Natural language query formulation
- G06F 16/367: {Ontology}
- G06F 16/334: Query execution (filtering based on additional data G06F16/335)
- G06F 16/338: Presentation of query results
- G06F 16/35: Clustering; Classification
- G06F 16/90332: {Natural language query formulation or dialogue systems}
- G06F 40/20: Natural language analysis (semantic analysis of natural language G06F40/30)
- G06F 40/216: using statistical methods
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/30: Semantic analysis
- G06F 40/35: Discourse or dialogue representation
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Technology is disclosed for programmatically generating procedures based on historical conversation records and providing the procedures to users to resolve similar issues. In one implementation, an input instruction is generated to cause a language model to determine resolved historical conversation records from historical conversation records. A second input instruction is generated to cause a language model to generate procedure documents from the resolved historical conversation records. The second input instruction includes the resolved historical conversation records and a procedure generation prompt instructing the second language model to (1) extract one or more issues from each resolved historical conversation record, (2) generate a corresponding issue description of each issue, (3) generate a corresponding step-by-step procedure resolving each issue, and (4) generate a corresponding issue resolution description for each issue. The procedure documents are stored in a knowledge base to provide the step-by-step procedures to users to resolve similar issues.

## Claims

### Claim 1

A computer-implemented method comprising:
accessing historical conversation records;
programmatically generate a resolution assessment input instruction for a first language model to cause the first language model to determine resolved historical conversation records, the resolution assessment input instruction generated based at least on the historical conversation records and a resolution assessment prompt instructing the first language model to determine whether an issue was resolved in the historical conversation record;
programmatically generate a procedure generation input instruction for a second language model to cause the second language model to generate procedure documents, the procedure generation input instruction generated based at least on the resolved historical conversation records and a procedure generation prompt instructing the second language model to (1) extract one or more issues from each resolved historical conversation record, (2) generate a corresponding issue description of each issue, (3) generate a corresponding step-by-step procedure resolving each issue, and (4) generate a corresponding issue resolution description for each issue; and
storing the procedure documents in a knowledge base.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
responsive to a query: (1) performing a semantic search to determine a similar procedure document above a threshold semantic similarity to the query based on computing a semantic similarity between procedure embeddings of the procedure documents to a query embedding of the query and (2) causing a representation of the similar procedure document to be presented via a user interface (UI) of a computing device.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, further comprising:
responsive to an ongoing conversation: (1) performing a semantic search to determine a similar procedure document above a threshold semantic similarity to the ongoing conversation based on computing a semantic similarity between procedure embeddings of the procedure documents to a representation embedding of a conversation representation of the ongoing conversation and (2) causing a representation of the similar procedure document to be presented via a user interface (UI) of a computing device.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein storing the procedure documents in the knowledge base further comprises:
determining groups of similar procedure documents by clustering corresponding procedure embeddings based on the semantic similarity between procedure embeddings of the procedure documents;
generating combined procedure documents based on combining groups of similar procedure documents;
determining a set of combined procedure documents that are less than a threshold level of similarity to documents in the knowledge base; and
storing the set of combined procedure documents in the knowledge base.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the resolution assessment prompt comprises examples of resolution confirmation statements.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
prior to causing the language model to determine the resolved historical conversation records, filtering the historical conversation records to remove corresponding historical conversation records with less than a threshold number of messages.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising:
prior to causing the language model to determine the resolved historical conversation records, formatting the historical conversation records to remove content from each of the historical conversation records to limit from each of the historical conversation records to less than a threshold number of tokens.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the procedure generation prompt includes instructions to include a citation for each portion of each corresponding resolved conversation history record used to generate each issue description, each step-by-step procedure, and each issue resolution description.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the procedure generation prompt includes instructions to include images and hyperlinks from each corresponding resolved conversation history record in each corresponding procedure document.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, further comprising:
prior to storing the procedure documents in the knowledge base, applying post-processing to each procedure document to format each procedure document and validate each procedure document to be above a threshold quality.

### Claim 11

A non-transitory computer-readable medium storing executable instructions, which when executed by a processing device, cause the processing device to perform operations comprising:
programmatically generate a resolution assessment input instruction for a first language model to cause the first language model to determine resolved historical conversation records, the resolution assessment input instruction generated based at least on historical conversation records and a resolution assessment prompt instructing the first language model to determine whether an issue was resolved in the historical conversation record;
programmatically generate a procedure generation input instruction for a second language model to cause the second language model to generate procedure documents, the procedure generation input instruction generated based at least on the resolved historical conversation records and a procedure generation prompt instructing the second language model to (1) extract one or more issues from each resolved historical conversation record, (2) generate a corresponding issue description of each issue, (3) generate a corresponding step-by-step procedure resolving each issue, and (4) generate a corresponding issue resolution description for each issue; and
storing the procedure documents in a knowledge base; and
responsive to a query, (1) performing a semantic search to determine a similar procedure document above a threshold semantic similarity to the query based on computing a semantic similarity between procedure embeddings of the procedure documents to a query embedding of the query and (2) causing a representation of the similar procedure document to be presented via a user interface (UI) of a computing device.

### Claim 12 (depends on 11)

The media of claim 11, wherein storing the procedure documents in the knowledge base further comprises:
determining groups of similar procedure documents by clustering corresponding procedure embeddings based on the semantic similarity between procedure embeddings of the procedure documents;
generating combined procedure documents based on combining groups of similar procedure documents;
determining a set of combined procedure documents that are less than a threshold level of similarity to documents in the knowledge base; and
storing the set of combined procedure documents in the knowledge base.

### Claim 13 (depends on 11)

The media of claim 11, wherein the resolution assessment prompt comprises examples of resolution confirmation statements.

### Claim 14 (depends on 11)

The media of claim 11, the operations further comprising:
prior to causing the language model to determine the resolved historical conversation records, filtering the historical conversation records to remove corresponding historical conversation records with less than a threshold number of messages.

### Claim 15 (depends on 11)

The media of claim 11, the operations further comprising:
prior to causing the language model to determine the resolved historical conversation records, formatting the historical conversation records to remove content from each of the historical conversation records to limit from each of the historical conversation records to less than a threshold number of tokens.

### Claim 16 (depends on 11)

The media of claim 11, wherein the procedure generation prompt includes instructions to include a citation for each portion of each corresponding resolved conversation history record used to generate each issue description, each step-by-step procedure, and each issue resolution description.

### Claim 17 (depends on 11)

The media of claim 11, wherein the procedure generation prompt includes instructions to include images and hyperlinks from each corresponding resolved conversation history record in each corresponding procedure document.

### Claim 18 (depends on 11)

The media of claim 11, the operations further comprising:
prior to storing the procedure documents in the knowledge base, applying post-processing to each procedure document to format each procedure document and validate each procedure document to be above a threshold quality.

### Claim 19

A computing system comprising:
a processor; and
a non-transitory computer-readable medium having stored thereon instructions that when executed by the processor, cause the processor to perform operations including:
programmatically generate a resolution assessment input instruction for a first language model to cause the first language model to determine resolved historical conversation records, the resolution assessment input instruction generated based at least on historical conversation records and a resolution assessment prompt instructing the first language model to determine whether an issue was resolved in the historical conversation record;
programmatically generate a procedure generation input instruction for a second language model to cause the second language model to generate procedure documents, the procedure generation input instruction generated based at least on the resolved historical conversation records and a procedure generation prompt instructing the second language model to (1) extract one or more issues from each resolved historical conversation record, (2) generate a corresponding issue description of each issue, (3) generate a corresponding step-by-step procedure resolving each issue, and (4) generate a corresponding issue resolution description for each issue;
storing the procedure documents in a knowledge base; and
responsive to an ongoing conversation, (1) performing a semantic search to determine a similar procedure document above a threshold semantic similarity to the ongoing conversation based on computing a semantic similarity between procedure embeddings of the procedure documents to a representation embedding of a conversation representation of the ongoing conversation and (2) causing a representation of the similar procedure document to be presented via a user interface (UI) of a computing device.

### Claim 20 (depends on 19)

The computing system of claim 19, wherein storing the procedure documents in the knowledge base further comprises:
determining groups of similar procedure documents by clustering corresponding procedure embeddings based on the semantic similarity between procedure embeddings of the procedure documents;
generating combined procedure documents based on combining groups of similar procedure documents;
determining a set of combined procedure documents that are less than a threshold level of similarity to documents in the knowledge base; and
storing the set of combined procedure documents in the knowledge base.
