# US 2025/0094465 A1 · Executing an execution plan with a digital assistant and using large language models

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

- Number: US 2025/0094465 A1
- Document ID: US20250094465A1
- Status: Published application
- Kind: A1
- Application number: 18/825,573
- Filed: 2024-09-05
- Published: 2025-03-20
- Earliest claimed: 2023-09-15
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Xin Xu; Bhagya Gayathri Hettige; Srinivasa Phani Kumar Gadde; Yakupitiyage Don Thanuja Samodhye Dharmasiri; Vanshika Sridharan; Vishal Vishnoi; Mark Edward Johnson
- Web page: https://patentgrep.com/patent/US20250094465A1

## CPC

- G06F 16/3344: {using natural language analysis}
- G06F 16/383: using metadata automatically derived from the content
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are disclosed herein for executing an execution plan for a digital assistant with generative artificial intelligence (genAI). A first genAI model can generate a list of executable actions based on an utterance provided by a user. An execution plan can be generated to include the executable actions. The execution plan can be executed by performing an iterative process for each of the executable actions. The iterative process can include identifying an action type, invoking one or more states, and executing, by the one or more states, the executable action using an asset to obtain an output. A second prompt can be generated based on the output obtained from executing each of the executable actions. A second genAI model can generate a response to the utterance based on the second prompt.

## Claims

### Claim 1

A computer-implemented method comprising:
generating, by a first generative artificial intelligence model, a list comprising one or more executable actions based on a first prompt comprising a natural language utterance provided by a user;
creating an execution plan comprising the one or more executable actions;
executing the execution plan, wherein executing the execution plan comprises performing an iterative process for each executable action of the one or more executable actions, and wherein the iterative process comprises:
identifying an action type for an executable action,
invoking one or more states configured to execute the action type, and
executing, by the one or more states, the executable action using an asset to obtain an output;
generating a second prompt based on the output obtained from executing each of the one or more executable actions; and
generating, by a second generative artificial intelligence model, a response to the natural language utterance based on the second prompt.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein:
creating the execution plan comprises performing an evaluation of the one or more executable actions;
the evaluation comprises evaluating the one or more executable actions based on one or more ongoing conversation paths initiated by the user and any currently active execution plans; and
creating the execution plan further comprises:
(i) when the evaluation determines that the natural language utterance is part of an ongoing conversation path, incorporating the one or more executable actions into a currently active execution plan associated with the ongoing conversation path, the currently active execution plan comprising an ordered list of the one or more executable actions and one or more prior actions, or
(ii) when the evaluation determines the natural language utterance is not part of an ongoing conversation path, creating a new execution plan comprising an ordered list of the one or more executable actions.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the iterative process further comprises:
determining whether one or more parameters are available for the executable action;
when the one or more parameters are available, invoking the one or more states and executing the executable action based on the one or more parameters; and
when the one or more parameters for the executable action are not available, obtaining the one or more parameters that are not available and then invoking the one or more states and executing the executable action based on the one or more parameters.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein obtaining the one or more parameters comprises generating a natural language request to the user to obtain the one or more parameters for the executable action, and receiving a response from the user comprising the one or more parameters.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein:
invoking one or more states configured to execute the action type comprises:
invoking a first state to identify that the executable action has not yet been executed to generate a response, and
invoking a second state to determine whether one or more parameters are available for the executable action;
executing the executable action using the asset to obtain the output comprises invoking a third state to generate the output; and
the first state, the second state, and the third state are different from one another.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein generating the list comprises selecting the one or more executable actions from a list of candidate agent actions that are determined by using a semantic index, and wherein creating the execution plan further comprises:
identifying, based at least in part on metadata associated with candidate agent actions within the list of candidate agent actions, the one or more executable actions that provide information or knowledge for generating the response to the natural language utterance; and
generating a structured output for the execution plan by creating an ordered list of the one or more executable actions and a set of dependencies among the one or more executable actions.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein the iterative process further comprises determining that one or more dependencies exist between the executable action and at least one other executable action of the one or more executable actions based on the set of dependencies among the one or more executable actions, and wherein the executable action is executed sequentially in accordance with the one or more dependencies determined to exist between the executable action and the at least one other executable action.

### Claim 8

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:
generating, by a first generative artificial intelligence model, a list comprising one or more executable actions based on a first prompt comprising a natural language utterance provided by a user;
creating an execution plan comprising the one or more executable actions;
executing the execution plan, wherein executing the execution plan comprises performing an iterative process for each executable action of the one or more executable actions, and wherein the iterative process comprises:
identifying an action type for an executable action,
invoking one or more states configured to execute the action type, and
executing, by the one or more states, the executable action using an asset to obtain an output;
generating a second prompt based on the output obtained from executing each of the one or more executable actions; and
generating, by a second generative artificial intelligence model, a response to the natural language utterance based on the second prompt.

### Claim 9 (depends on 8)

The system of claim 8, wherein:
the operation of creating the execution plan comprises performing an evaluation of the one or more executable actions;
the evaluation comprises evaluating the one or more executable actions based on one or more ongoing conversation paths initiated by the user and any currently active execution plans; and
the operation of creating the execution plan further comprises:
(i) when the evaluation determines that the natural language utterance is part of an ongoing conversation path, incorporating the one or more executable actions into a currently active execution plan associated with the ongoing conversation path, the currently active execution plan comprising an ordered list of the one or more executable actions and one or more prior actions, or
(ii) when the evaluation determines the natural language utterance is not part of an ongoing conversation path, creating a new execution plan comprising an ordered list of the one or more executable actions.

### Claim 10 (depends on 8)

The system of claim 8, wherein the iterative process further comprises:
determining whether one or more parameters are available for the executable action;
when the one or more parameters are available, invoking the one or more states and executing the executable action based on the one or more parameters; and
when the one or more parameters for the executable action are not available, obtaining the one or more parameters that are not available and then invoking the one or more states and executing the executable action based on the one or more parameters.

### Claim 11 (depends on 10)

The system of claim 10, wherein the operation of obtaining the one or more parameters comprises generating a natural language request to the user to obtain the one or more parameters for the executable action, and receiving a response from the user comprising the one or more parameters.

### Claim 12 (depends on 8)

The system of claim 8, wherein:
the operation of invoking one or more states configured to execute the action type comprises:
invoking a first state to identify that the executable action has not yet been executed to generate a response, and
invoking a second state to determine whether one or more parameters are available for the executable action;
the operation of executing the executable action using the asset to obtain the output comprises invoking a third state to generate the output; and
the first state, the second state, and the third state are different from one another.

### Claim 13 (depends on 8)

The system of claim 8, wherein the operation of generating the list comprises selecting the one or more executable actions from a list of candidate agent actions that are determined by using a semantic index, and wherein the operation of creating the execution plan further comprises:
identifying, based at least in part on metadata associated with candidate agent actions within the list of candidate agent actions, the one or more executable actions that provide information or knowledge for generating the response to the natural language utterance; and
generating a structured output for the execution plan by creating an ordered list of the one or more executable actions and a set of dependencies among the one or more executable actions.

### Claim 14 (depends on 13)

The system of claim 13, wherein the iterative process further comprises determining that one or more dependencies exist between the executable action and at least one other executable action of the one or more executable actions based on the set of dependencies among the one or more executable actions, and wherein the executable action is executable sequentially in accordance with the one or more dependencies determined to exist between the executable action and the at least one other executable action.

### Claim 15

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:
generating, by a first generative artificial intelligence model, a list comprising one or more executable actions based on a first prompt comprising a natural language utterance provided by a user;
creating an execution plan comprising the one or more executable actions;
executing the execution plan, wherein executing the execution plan comprises performing an iterative process for each executable action of the one or more executable actions, and wherein the iterative process comprises:
identifying an action type for an executable action,
invoking one or more states configured to execute the action type, and
executing, by the one or more states, the executable action using an asset to obtain an output;
generating a second prompt based on the output obtained from executing each of the one or more executable actions; and
generating, by a second generative artificial intelligence model, a response to the natural language utterance based on the second prompt.

### Claim 16 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein:
the operation of creating the execution plan comprises performing an evaluation of the one or more executable actions;
the evaluation comprises evaluating the one or more executable actions based on one or more ongoing conversation paths initiated by the user and any currently active execution plans; and
the operation of creating the execution plan further comprises:
(i) when the evaluation determines that the natural language utterance is part of an ongoing conversation path, incorporating the one or more executable actions into a currently active execution plan associated with the ongoing conversation path, the currently active execution plan comprising an ordered list of the one or more executable actions and one or more prior actions, or
(ii) when the evaluation determines the natural language utterance is not part of an ongoing conversation path, creating a new execution plan comprising an ordered list of the one or more executable actions.

### Claim 17 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the iterative process further comprises:
determining whether one or more parameters are available for the executable action;
when the one or more parameters are available, invoking the one or more states and executing the executable action based on the one or more parameters; and
when the one or more parameters for the executable action are not available, obtaining the one or more parameters that are not available and then invoking the one or more states and executing the executable action based on the one or more parameters, wherein obtaining the one or more parameters comprises generating a natural language request to the user to obtain the one or more parameters for the executable action, and receiving a response from the user comprising the one or more parameters.

### Claim 18 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein:
the operation of invoking one or more states configured to execute the action type comprises:
invoking a first state to identify that the executable action has not yet been executed to generate a response, and
invoking a second state to determine whether one or more parameters are available for the executable action;
the operation of executing the executable action using the asset to obtain the output comprises invoking a third state to generate the output; and
the first state, the second state, and the third state are different from one another.

### Claim 19 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the operation of generating the list comprises selecting the one or more executable actions from a list of candidate agent actions that are determined by using a semantic index, and wherein the operation of creating the execution plan further comprises:
identifying, based at least in part on metadata associated with candidate agent actions within the list of candidate agent actions, the one or more executable actions that provide information or knowledge for generating the response to the natural language utterance; and
generating a structured output for the execution plan by creating an ordered list of the one or more executable actions and a set of dependencies among the one or more executable actions.

### Claim 20 (depends on 19)

The one or more non-transitory computer-readable media of claim 19, wherein the iterative process further comprises determining that one or more dependencies exist between the executable action and at least one other executable action of the one or more executable actions based on the set of dependencies among the one or more executable actions, and wherein the executable action is executable sequentially in accordance with the one or more dependencies determined to exist between the executable action and the at least one other executable action.
