# US 2025/0094390 A1 · Routing engine for llm-based digital assistant

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

- Number: US 2025/0094390 A1
- Document ID: US20250094390A1
- Status: Published application
- Kind: A1
- Application number: 18/885,178
- Filed: 2024-09-13
- Published: 2025-03-20
- Earliest claimed: 2023-09-15
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Bhagya Gayathri Hettige; Ahmed Ataallah Ataallah Abobakr; Vanshika Sridharan; Ying Xu; Thanh Long Duong; Yakupitiyage Don Thanuja Samodhye Dharmasiri; Srinivasa Phani Kumar Gadde; Vishal Vishnoi; Xin Xu
- Web page: https://patentgrep.com/patent/US20250094390A1

## CPC

- G06F 40/35: Discourse or dialogue representation
- G06F 16/212: {with details for data modelling support}
- G06F 16/24542: {Plan optimisation}
- G06F 16/3329: Natural language query formulation
- G06F 16/90332: {Natural language query formulation or dialogue systems}
- G06F 16/9035: Filtering based on additional data, e.g. user or group profiles
- G06F 40/216: using statistical methods
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/30: Semantic analysis
- G06F 40/44: Statistical methods, e.g. probability models
- G06F 40/56: Natural language generation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are disclosed herein for routing an utterance to action for a digital assistant with generative artificial intelligence. An input query comprising particular data can be received from a user. An action and a set of input argument slots within a schema associated with the action can be identified based on the input query. The input argument slots can be filled by determining whether one or more parameters are derivable from the particular data and filling the input argument slot with a version of the parameters that conforms to the schema. An execution plan that comprises the action that includes the set of filled input argument sots can be sent to an execution engine configured to execute the action for generating a response to the input query.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving an input query from a user, the input query comprising particular data;
identifying, among one or more candidate actions, an action based on the input query;
identifying a set of input argument slots within a schema associated with the action;
for each input argument slot of the set of input argument slots, filling the input argument slot by:
determining whether one or more parameters corresponding with the input argument slot are derivable from the particular data, and
in accordance with the one or more parameters corresponding with the input argument slot, (i) deriving the one or more parameters from the particular data and (ii) filling the input argument slot with a version of the one or more parameters that conforms to the schema; and
transmitting an execution plan that comprises the action that includes the set of filled input arguments slots to an execution engine configured to execute the action for generating a response to the input query.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein receiving the input query further comprises receiving contextual information, wherein the contextual information comprises (i) a conversation history associated with the user and (ii) a historical execution plan, and wherein identifying the action comprises identifying the action based on the input query, the conversation history, and the historical execution plan.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein identifying the action further comprises using a generative artificial intelligence model to select the action, among the candidate actions, to be executed based on the input query, the conversation history, and the historical execution plan.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, further comprising:
determining that at least one input argument slot of the set of input argument slots cannot be filled using the one or more parameters, wherein the one or more parameters is missing at least one parameter;
extracting, using the generative artificial intelligence model, the at least one parameter from the conversation history; and
filling the at least one input argument slot using the at least one parameter.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising:
determining that at least one input argument slot of the set of input argument slots cannot be filled using the one or more parameters, wherein the version of the one or more parameters does not conform to the schema;
adjusting the version of the one or more parameters to conform to the schema; and
filling the at least one input argument slot using the adjusted version of the one or more parameters in the schema.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
determining a first subset of the set of input argument slots, wherein the first subset comprises input argument slots that are required to execute the action; and
determining a second subset of the set of input argument slots, wherein the second subset comprises input argument slots that are optional to execute the action.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, further comprising:
in accordance with determining that the first subset comprises at least one input argument slot that cannot be filled with the version of the one or more parameters, determining whether contextual information included in the input query comprises one or more indications of the version of the one or more parameters;
in accordance with determining that the contextual information comprises the one or more indications of the version of the one or more parameters, using the version of the one or more parameters to fill the at least one input argument slot; and
in accordance with determining that the contextual information does not comprise the one or more indications of the version of the one or more parameters, generating an output that is usable for requesting subsequent input from the user to receive the version of the one or more parameters.

### Claim 8 (depends on 6)

The computer-implemented method of claim 6, further comprising:
in accordance with determining that the second subset comprises at least one input argument slot that cannot be filled with the version of the one or more parameters, determining whether contextual information included in the input query comprises one or more indications of the version of the one or more parameters;
in accordance with determining that the contextual information comprises the one or more indications of the version of the one or more parameters, using the version of the one or more parameters to fill the at least one input argument slot; and
in accordance with determining that the contextual information does not comprise the one or more indications of the version of the one or more parameters, populating the set of filled input argument slots with an empty slot for the at least one input argument slot and transmitting the set of filled input arguments slots to the execution engine.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, further comprising:
executing, using the execution engine, the execution plan using the set of filled input argument slots to generate a response to the input query; and
transmitting the response to the user for facilitating an interaction involving the user.

### Claim 10

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 an input query from a user, the input query comprising particular data;
identifying, among one or more candidate actions, an action based on the input query;
identifying a set of input argument slots within a schema associated with the action;
for each input argument slot of the set of input argument slots, filling the input argument slot by:
determining whether one or more parameters corresponding with the input argument slot are derivable from the particular data, and
in accordance with the one or more parameters corresponding with the input argument slot, (i) deriving the one or more parameters from the particular data and (ii) filling the input argument slot with a version of the one or more parameters that conforms to the schema; and
transmitting an execution plan that comprises the action that includes the set of filled input arguments slots to an execution engine configured to execute the action for generating a response to the input query.

### Claim 11 (depends on 10)

The system of claim 10, wherein the operation of receiving the input query further comprises receiving contextual information, wherein the contextual information comprises (i) a conversation history associated with the user and (ii) a historical execution plan, and wherein identifying the action comprises identifying the action based on the input query, the conversation history, and the historical execution plan.

### Claim 12 (depends on 11)

The system of claim 11, wherein the operation of identifying the action further comprises using a generative artificial intelligence model to select the action, among the candidate actions, to be executed based on the input query, the conversation history, and the historical execution plan, and wherein the operations further comprise:
determining that at least one input argument slot of the set of input argument slots cannot be filled using the one or more parameters, wherein the one or more parameters is missing at least one parameter;
extracting, using the generative artificial intelligence model, the at least one parameter from the conversation history; and
filling the at least one input argument slot using the at least one parameter.

### Claim 13 (depends on 10)

The system of claim 10, wherein the operations further comprise:
determining that at least one input argument slot of the set of input argument slots cannot be filled using the one or more parameters, wherein the version of the one or more parameters does not conform to the schema;
adjusting the version of the one or more parameters to conform to the schema; and
filling the at least one input argument slot using the adjusted version of the one or more parameters in the schema.

### Claim 14 (depends on 10)

The system of claim 10, wherein the operations further comprise:
determining a first subset of the set of input argument slots, wherein the first subset comprises input argument slots that are required to execute the action; and
determining a second subset of the set of input argument slots, wherein the second subset comprises input argument slots that are optional to execute the action.

### Claim 15 (depends on 14)

The system of claim 14, wherein the operations further comprise:
in accordance with determining that the first subset comprises at least one input argument slot that cannot be filled with the version of the one or more parameters, determining whether contextual information included in the input query comprises one or more indications of the version of the one or more parameters;
in accordance with determining that the contextual information comprises the one or more indications of the version of the one or more parameters, using the version of the one or more parameters to fill the at least one input argument slot; and
in accordance with determining that the contextual information does not comprise the one or more indications of the version of the one or more parameters, generating an output that is usable for requesting subsequent input from the user to receive the version of the one or more parameters.

### Claim 16 (depends on 14)

The system of claim 14, wherein the operations further comprise:
in accordance with determining that the second subset comprises at least one input argument slot that cannot be filled with the version of the one or more parameters, determining whether contextual information included in the input query comprises one or more indications of the version of the one or more parameters;
in accordance with determining that the contextual information comprises the one or more indications of the version of the one or more parameters, using the version of the one or more parameters to fill the at least one input argument slot; and
in accordance with determining that the contextual information does not comprise the one or more indications of the version of the one or more parameters, populating the set of filled input argument slots with an empty slot for the at least one input argument slot and transmitting the set of filled input arguments slots to the execution engine.

### Claim 17 (depends on 10)

The system of claim 10, wherein the operations further comprise:
executing, using the execution engine, the execution plan using the set of filled input argument slots to generate a response to the input query; and
transmitting the response to the user for facilitating an interaction involving the user.

### 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 an input query from a user, the input query comprising particular data;
identifying, among one or more candidate actions, an action based on the input query;
identifying a set of input argument slots within a schema associated with the action;
for each input argument slot of the set of input argument slots, filling the input argument slot by:
determining whether one or more parameters corresponding with the input argument slot are derivable from the particular data, and
in accordance with the one or more parameters corresponding with the input argument slot, (i) deriving the one or more parameters from the particular data and (ii) filling the input argument slot with a version of the one or more parameters that conforms to the schema; and
transmitting an execution plan that comprises the action that includes the set of filled input arguments slots to an execution engine configured to execute the action for generating a response to the input query.

### Claim 19 (depends on 18)

The one or more non-transitory computer-readable media of claim 18, wherein the operation of receiving the input query further comprises receiving contextual information, wherein the contextual information comprises (i) a conversation history associated with the user and (ii) a historical execution plan, and wherein identifying the action comprises identifying the action based on the input query, the conversation history, and the historical execution plan.

### Claim 20 (depends on 19)

The one or more non-transitory computer-readable media of claim 19, wherein the operation of identifying the action further comprises using a generative artificial intelligence model to select the action, among the candidate actions, to be executed based on the input query, the conversation history, and the historical execution plan, and wherein the operations further comprise:
determining that at least one input argument slot of the set of input argument slots cannot be filled using the one or more parameters, wherein the one or more parameters is missing at least one parameter;
extracting, using the generative artificial intelligence model, the at least one parameter from the conversation history; and
filling the at least one input argument slot using the at least one parameter.
