# US 2025/0095808 A1 · Maintaining state and context of conversations between a user and digital assistant using threads

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

- Number: US 2025/0095808 A1
- Document ID: US20250095808A1
- Status: Published application
- Kind: A1
- Application number: 18/885,285
- Filed: 2024-09-13
- Published: 2025-03-20
- Earliest claimed: 2023-09-15
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Steven Martijn Davelaar; Jashanpreet Singh
- Web page: https://patentgrep.com/patent/US20250095808A1

## CPC

- G16H 10/00: ICT specially adapted for the handling or processing of patient-related medical or healthcare data (for medical reports G16H15/00; for therapies or health-improving plans G16H20/00; for the handling or processing of medical images G16H30/00)
- G16H 10/60: for patient-specific data, e.g. for electronic patient records
- G06F 3/0482: Interaction with lists of selectable items, e.g. menus
- G06F 3/0483: Interaction with page-structured environments, e.g. book metaphor
- G06F 9/453: {Help systems}
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06F 40/30: Semantic analysis
- G16H: HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for maintaining state and context of conversations between a user and digital assistant using threads. In one aspect, a method includes receiving a natural language utterance from a user during a session, obtaining a topic context instance for the natural language utterance, and generating, by a GenAI model, a list comprising an executable action based on candidate actions associated with the topic context instance. The executable action is then executed to produce an output. The executing includes determining there is no thread running within the session that is associated with the topic context instance, the executable action, or both, and responsive to determining there is no thread running, creating a thread associated with the topic context instance, the executable action, or both, and executing, using the thread, the executable action to obtain the output. The output or a communication derived from the output is then sent to the user.

## Claims

### Claim at position 1

-3. (canceled)

### Claim 4

A computer-implemented method comprising:
receiving, at a digital assistant, a natural language utterance from a user during a session between the user and the digital assistant;
obtaining a topic context instance for the natural language utterance;
generating, by a generative artificial intelligence (GenAI) model, a list comprising an executable action based on one or more candidate actions associated with the topic context instance;
executing the executable action to produce an output, wherein the executing comprises:
determining there is no thread running within the session that is associated with the topic context instance, the executable action, or both,
responsive to determining there is no thread running, creating a thread associated with the topic context instance, the executable action, or both, wherein the thread maintains the topic context instance, the executable action, or both as a separate context from that of context associated with any other conversations for a distinct conversation comprising the natural language utterance between the user and the digital assistant, and
executing, using the thread, the executable action to obtain the output; and
sending the output or a communication derived from the output to the user.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, further comprising:
receiving, at the digital assistant, a subsequent natural language utterance from the user during the session between the user and the digital assistant;
obtaining the topic context instance for the natural language utterance;
generating, by the GenAI model, another list comprising another executable action based on one or more candidate actions associated with the topic context instance;
executing the another executable action, wherein the executing comprises:
identifying the thread running within the session is associated with the topic context instance, the executable action, or both,
determining the another executable action should be executed using the thread based on an identifier associated with the topic context instance, the executable action, or both, and
executing, using the thread, the another executable action to obtain another output; and
sending the another output or a communication derived from the another output to the user.

### Claim 6 (depends on 4)

The computer-implemented method of claim 4, further comprising:
receiving, at the digital assistant, a subsequent natural language utterance from the user during the session between the user and the digital assistant;
obtaining a topic context instance for the subsequent natural language;
generating, by the GenAI model, another list comprising another executable action based on one or more candidate actions associated with the topic context instance for the subsequent natural language utterance;
executing the another executable action, wherein the executing comprises:
identifying the thread running within the session is associated with the topic context instance for the natural language utterance, the executable action, or both,
determining there is no thread running within the session that is associated with the topic context instance for the subsequent natural language utterance, the another executable action, or both,
responsive to determining there is no thread running, creating another thread having an identifier associated with the topic context instance for the subsequent natural language utterance, the another executable action, or both, wherein the another thread maintains the topic context instance for the subsequent natural language utterance, the another executable action, or both as a separate context for another distinct conversation between the user and the digital assistant, and
executing, using the another thread, the another executable action to obtain another output; and
sending the another output or a communication derived from the another output to the user.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, further comprising:
responsive to identifying the thread running within the session is associated with the topic context instance for the natural language utterance, the executable action, or both and determining there is no thread running within the session that is associated with the topic context instance for the subsequent natural language utterance, sending a confirmation communication to the user requesting confirmation of the subsequent natural language utterance, the topic context instance for the subsequent natural language utterance, or both; and
receiving, at the digital assistant, a confirmation utterance from the user that confirms the subsequent natural language utterance, the topic context instance for the subsequent natural language utterance, or both,
wherein responsive to determining there is no thread running and receipt of the confirmation utterance, creating the another thread.

### Claim 8 (depends on 4)

The computer-implemented method of claim 4, further comprising:
receiving a message payload comprising: (i) a subsequent utterance or indication of an event, and (ii) application context, associated with an interaction between a user and an application;
identifying an identifier associated with the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both;
determining the identifier associated with the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both is the same identifier associated with the topic context instance, the executable action, or both; and
responsive to determining the identifiers are the same, processing the message payload using the thread.

### Claim 9 (depends on 4)

The computer-implemented method of claim 4, further comprising:
receiving a message payload comprising: (i) a subsequent utterance or indication of an event, and (ii) application context, associated with an interaction between a user and an application;
identifying an identifier associated with (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both;
determining the identifier associated with (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both is different from an identifier associated with the topic context instance, the executable action, or both; and
responsive to determining the identifiers are different, creating another thread having an identifier associated with (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both, wherein the another thread maintains (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both as a separate context for another distinct conversation between the user and the digital assistant; and
processing the message payload using the another thread.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, further comprising:
responsive to determining the identifiers are different, sending a confirmation communication to the user requesting confirmation of (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both; and
receiving, at the digital assistant, a confirmation utterance from the user that confirms (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both,
wherein responsive to determining the identifiers are different and receipt of the confirmation utterance, creating the another thread.

### Claim 11

A system comprising:
one or more processors; and
one or more computer-readable media storing instructions which, when executed by the one or more processors, cause the system to perform operations comprising:
receiving, at a digital assistant, a natural language utterance from a user during a session between the user and the digital assistant;
obtaining a topic context instance for the natural language utterance;
generating, by a generative artificial intelligence (GenAI) model, a list comprising an executable action based on one or more candidate actions associated with the topic context instance;
executing the executable action to produce an output, wherein the executing comprises:
determining there is no thread running within the session that is associated with the topic context instance, the executable action, or both,
responsive to determining there is no thread running, creating a thread associated with the topic context instance, the executable action, or both, wherein the thread maintains the topic context instance, the executable action, or both as a separate context from that of context associated with any other conversations for a distinct conversation comprising the natural language utterance between the user and the digital assistant, and
executing, using the thread, the executable action to obtain the output; and
sending the output or a communication derived from the output to the user.

### Claim 12 (depends on 11)

The system of claim 11, wherein the operations further comprise:
receiving, at the digital assistant, a subsequent natural language utterance from the user during the session between the user and the digital assistant;
obtaining the topic context instance for the natural language utterance;
generating, by the GenAI model, another list comprising another executable action based on one or more candidate actions associated with the topic context instance;
executing the another executable action, wherein the executing comprises:
identifying the thread running within the session is associated with the topic context instance, the executable action, or both,
determining the another executable action should be executed using the thread based on an identifier associated with the topic context instance, the executable action, or both, and
executing, using the thread, the another executable action to obtain another output; and
sending the another output or a communication derived from the another output to the user.

### Claim 13 (depends on 11)

The system of claim 11, wherein the operations further comprise:
receiving, at the digital assistant, a subsequent natural language utterance from the user during the session between the user and the digital assistant;
obtaining a topic context instance for the subsequent natural language;
generating, by the GenAI model, another list comprising another executable action based on one or more candidate actions associated with the topic context instance for the subsequent natural language utterance;
executing the another executable action, wherein the executing comprises:
identifying the thread running within the session is associated with the topic context instance for the natural language utterance, the executable action, or both,
determining there is no thread running within the session that is associated with the topic context instance for the subsequent natural language utterance, the another executable action, or both,
responsive to determining there is no thread running within the session that is associated with the topic context instance for the subsequent natural language utterance, creating another thread having an identifier associated with the topic context instance for the subsequent natural language utterance, the another executable action, or both, wherein the another thread maintains the topic context instance for the subsequent natural language utterance, the another executable action, or both as a separate context for another distinct conversation between the user and the digital assistant, and
executing, using the another thread, the another executable action to obtain another output; and
sending the another output or a communication derived from the another output to the user.

### Claim 14 (depends on 13)

The system of claim 13, wherein the operations further comprise:
responsive to identifying the thread running within the session is associated with the topic context instance for the natural language utterance, the executable action, or both and determining there is no thread running within the session that is associated with the topic context instance for the subsequent natural language utterance, sending a confirmation communication to the user requesting confirmation of the subsequent natural language utterance, the topic context instance for the subsequent natural language utterance, or both; and
receiving, at the digital assistant, a confirmation utterance from the user that confirms the subsequent natural language utterance, the topic context instance for the subsequent natural language utterance, or both,
wherein responsive to determining there is no thread running within the session that is associated with the topic context instance for the subsequent natural language utterance and receipt of the confirmation utterance, creating the another thread.

### Claim 15 (depends on 11)

The system of claim 11, wherein the operations further comprise:
receiving a message payload comprising: (i) a subsequent utterance or indication of an event, and (ii) application context, associated with an interaction between a user and an application;
identifying an identifier associated with the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both;
determining the identifier associated with the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both is the same identifier associated with the topic context instance, the executable action, or both; and
responsive to determining the identifiers are the same, processing the message payload using the thread.

### Claim 16 (depends on 11)

The system of claim 11, wherein the operations further comprise:
receiving a message payload comprising: (i) a subsequent utterance or indication of an event, and (ii) application context, associated with an interaction between a user and an application;
identifying an identifier associated with (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both;
determining the identifier associated with (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both is different from an identifier associated with the topic context instance, the executable action, or both; and
responsive to determining the identifiers are different, creating another thread having an identifier associated with (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both, wherein the another thread maintains (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both as a separate context for another distinct conversation between the user and the digital assistant; and
processing the message payload using the another thread.

### Claim 17 (depends on 16)

The system of claim 16, wherein the operations further comprise:
responsive to determining the identifiers are different, sending a confirmation communication to the user requesting confirmation of (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both; and
receiving, at the digital assistant, a confirmation utterance from the user that confirms (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both,
wherein responsive to determining the identifiers are different and receipt of the confirmation utterance, creating the another thread.

### Claim 18

One or more non-transitory computer-readable media storing instructions which, when executed by one or more processors, cause the one or more processors to perform operations comprising:
receiving, at a digital assistant, a natural language utterance from a user during a session between the user and the digital assistant;
obtaining a topic context instance for the natural language utterance;
generating, by a generative artificial intelligence (GenAI) model, a list comprising an executable action based on one or more candidate actions associated with the topic context instance;
executing the executable action to produce an output, wherein the executing comprises:
determining there is no thread running within the session that is associated with the topic context instance, the executable action, or both,
responsive to determining there is no thread running, creating a thread associated with the topic context instance, the executable action, or both, wherein the thread maintains the topic context instance, the executable action, or both as a separate context from that of context associated with any other conversations for a distinct conversation comprising the natural language utterance between the user and the digital assistant, and
executing, using the thread, the executable action to obtain the output; and
sending the output or a communication derived from the output to the user.

### Claim 19 (depends on 18)

The one or more non-transitory computer-readable media of claim 18, wherein the operations further comprise:
receiving, at the digital assistant, a subsequent natural language utterance from the user during the session between the user and the digital assistant;
obtaining the topic context instance for the natural language utterance;
generating, by the GenAI model, another list comprising another executable action based on one or more candidate actions associated with the topic context instance;
executing the another executable action, wherein the executing comprises:
identifying the thread running within the session is associated with the topic context instance, the executable action, or both,
determining the another executable action should be executed using the thread based on an identifier associated with the topic context instance, the executable action, or both, and
executing, using the thread, the another executable action to obtain another output; and
sending the another output or a communication derived from the another output to the user.

### Claim 20 (depends on 18)

The one or more non-transitory computer-readable media of claim 18, wherein the operations further comprise:
receiving, at the digital assistant, a subsequent natural language utterance from the user during the session between the user and the digital assistant;
obtaining a topic context instance for the subsequent natural language;
generating, by the GenAI model, another list comprising another executable action based on one or more candidate actions associated with the topic context instance for the subsequent natural language utterance;
executing the another executable action, wherein the executing comprises:
identifying the thread running within the session is associated with the topic context instance for the natural language utterance, the executable action, or both,
determining there is no thread running within the session that is associated with the topic context instance for the subsequent natural language utterance, the another executable action, or both,
responsive to determining there is no thread running within the session that is associated with the topic context instance for the subsequent natural language utterance, creating another thread having an identifier associated with the topic context instance for the subsequent natural language utterance, the another executable action, or both, wherein the another thread maintains the topic context instance for the subsequent natural language utterance, the another executable action, or both as a separate context for another distinct conversation between the user and the digital assistant, and
executing, using the another thread, the another executable action to obtain another output; and
sending the another output or a communication derived from the another output to the user.

### Claim 21 (depends on 20)

The one or more non-transitory computer-readable media of claim 20, wherein the operations further comprise:
responsive to identifying the thread running within the session is associated with the topic context instance for the natural language utterance, the executable action, or both and determining there is no thread running within the session that is associated with the topic context instance for the subsequent natural language utterance, sending a confirmation communication to the user requesting confirmation of the subsequent natural language utterance, the topic context instance for the subsequent natural language utterance, or both; and
receiving, at the digital assistant, a confirmation utterance from the user that confirms the subsequent natural language utterance, the topic context instance for the subsequent natural language utterance, or both,
wherein responsive to determining there is no thread running within the session that is associated with the topic context instance for the subsequent natural language utterance and receipt of the confirmation utterance, creating the another thread.

### Claim 22 (depends on 18)

The one or more non-transitory computer-readable media of claim 18, wherein the operations further comprise:
receiving a message payload comprising: (i) a subsequent utterance or indication of an event, and (ii) application context, associated with an interaction between a user and an application;
identifying an identifier associated with the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both;
determining the identifier associated with the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both is the same identifier associated with the topic context instance, the executable action, or both; and
responsive to determining the identifiers are the same, processing the message payload using the thread.

### Claim 23 (depends on 18)

The one or more non-transitory computer-readable media of claim 18, wherein the operations further comprise:
receiving a message payload comprising: (i) a subsequent utterance or indication of an event, and (ii) application context, associated with an interaction between a user and an application;
identifying an identifier associated with (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both;
determining the identifier associated with (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both is different from an identifier associated with the topic context instance, the executable action, or both; and
responsive to determining the identifiers are different, creating another thread having an identifier associated with (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both, wherein the another thread maintains (i) the subsequent utterance or the indication of the interface action, (ii) the application context, or (iii) both as a separate context for another distinct conversation between the user and the digital assistant; and
processing the message payload using the another thread.
