API Chain Plan Bank Routing for Context-Aware Digital Assistants

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Traditional chatbots rely on predefined skill or intent models, limiting their ability to engage in natural and contextually aware conversations, and face challenges in handling complex user queries that require multiple API interactions without proper routing and planning.

Innovation Solution

A computer-implemented method using a routing engine with a plan bank of chained APIs and generative AI models to identify and execute actions based on user queries, enabling seamless and contextually aware responses.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If traditional predefined skill or intent models are used in chatbots, then the system structure is simple and easy to implement, but the ability to engage in natural and contextually aware conversations is limited

Engineering Contradiction:
Improveability to engage in natural and contextually aware conversationsVSAvoidsystem structure complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The system segments the complex task of handling user queries into multiple specialized components: a routing engine that directs queries to appropriate tools, a plan bank that stores predefined API chains for specific tasks, and generative AI models that create dynamic action plans. This segmentation allows each component to specialize in specific functions, improving overall adaptability while managing complexity through modular design.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The plan bank pre-stores multiple API chains and action plans for common tasks and query types. When a user query is received, the system can quickly retrieve and adapt these pre-prepared plans rather than constructing everything from scratch. This preliminary action enables more sophisticated conversation handling while reducing the computational complexity of real-time processing.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If complex user queries requiring multiple API interactions are handled without proper routing and planning, then the system can potentially access more tools, but the system becomes inefficient and requires repetitive user input

Engineering Contradiction:
Improveexecution efficiency of complex actionsVSAvoidtime for repetitive user input
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The routing engine continuously monitors the conversation context and the results of API executions, using this feedback to dynamically adjust the action plan. When API calls return results, the system feeds this information back to the generative AI model, which then determines the next appropriate actions. This closed-loop feedback mechanism enables efficient handling of complex multi-step queries without requiring repetitive user input, as the system autonomously tracks progress and coordinates subsequent actions.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system employs dynamic action plans that can adapt their structure and content based on the specific query and evolving conversation context. Rather than following rigid predefined workflows, the generative AI model creates flexible action plans that can be modified in real-time based on API results and user responses. This dynamic approach improves productivity by efficiently coordinating multiple API interactions while reducing time loss through automated context retention and plan adjustment.

Inventive Principle:
Principle #15Dynamics

3Ease of operation

If a routing engine with plan bank and generative AI models is implemented, then the ability to understand and respond to user queries is enhanced, but the device complexity increases

Engineering Contradiction:
Improveuser query understanding and response capabilityVSAvoidrouting engine and plan bank structure
Core Design Contradiction:
Ease of operationVSDevice complexity

Solution Approach 1:

The routing engine serves as an intermediary layer between the user queries and the complex plan bank infrastructure. It translates user intent into appropriate plan bank queries, selects relevant API chains, and coordinates their execution. This intermediary function shields users from the underlying system complexity while enhancing query understanding and response capability. The routing engine acts as a mediator that manages the complexity of coordinating multiple API chains and generative AI models without exposing this complexity to users.

Inventive Principle:
Principle #24Intermediary (Mediator)

4Adaptability or versatility

If multiple API chains are chained together for complex tasks, then the functionality and versatility of the digital assistant improve, but the difficulty of detecting and measuring the correct routing path increases

Engineering Contradiction:
Improvefunctionality for complex tasksVSAvoidrouting path determination
Core Design Contradiction:
Adaptability or versatilityVSDifficulty of detecting and measuring

Solution Approach 1:

The plan bank pre-organizes and stores multiple API chains with their dependencies, parameters, and execution contexts defined in advance. Each API chain is structured with clear input-output relationships and associated metadata. This preliminary organization of routing paths makes it easier for the routing engine to detect and measure the correct path by querying the structured plan bank, rather than having to dynamically figure out complex routing logic for multi-API tasks.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS20260073154A1Plan bank for API chains in routing engine for generative model-based digital assistant
Publication Date: 2026.03.12 ORACLE INT CORP
  • US20260073154A1 patent drawing
  • US20260073154A1 patent drawing
  • US20260073154A1 patent drawing

AI summary

Techniques for routing a user input to an action and associated parameters to generate a response to an utterance using a digital assistant and a plan bank for API chains are disclosed. A system can access, based on an utterance, a plan bank that includes composite tools. Each of the composite tools includes: a chain of tools including: application programming interface (API) tools or other composite tools, and associated logic. The system can generate, by a first generative artificial intelligence model, an action plan including one of the composite tools. The system can execute the action plan to obtain response data by executing actions associated with each of the API tools or the other composite tools. The system can generate, by a second generative artificial intelligence model, a response to the utterance based on the response data and can provide the response to the user.