Natural Language API Generation System

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Manually writing APIs, such as SOAP and REST APIs, is time-consuming and repetitive, and existing low-code API creation systems require developers to be familiar with complex graphic user interfaces, limiting their accessibility and deployment.

Innovation Solution

A system using natural language understanding (NLU) to derive API requirements from natural language inputs, automatically generating and deploying SOAP and REST APIs, reducing the complexity of API creation and making it accessible to developers without requiring programming language expertise.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If APIs are manually written using traditional coding approaches, then the API functionality and complexity can be fully customized, but the development time and effort increase significantly

Engineering Contradiction:
ImproveAPI customization capabilityVSAvoidAPI development time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The system performs preliminary actions by pre-defining API templates, data models, and code structures that can be automatically instantiated. Natural language requirements are processed beforehand to generate ready-to-deploy API code, eliminating the need for manual coding of common API patterns and significantly reducing development time while maintaining customization capability.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary natural language processing layer between the user's requirements and the API code generation process. This intermediary translates high-level natural language descriptions into structured API specifications and executable code, bridging the gap between user intent and technical implementation without requiring users to manually write code.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of manufacture

If low-code API creation systems are used, then the ease of API creation improves, but the complexity of the graphic user interface increases and requires developer familiarity

Engineering Contradiction:
ImproveAPI creation easeVSAvoidGraphic user interface complexity
Core Design Contradiction:
Ease of manufactureVSDevice complexity

Solution Approach 1:

The patent replaces the mechanical interaction with complex graphic user interfaces with a natural language-based communication system. Instead of requiring developers to navigate complex UI elements, drag-and-drop components, and configure multiple settings visually, the system accepts natural language commands that directly translate into API configurations, substituting the mechanical UI interaction with linguistic processing.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The natural language interface serves multiple functions simultaneously: it acts as the configuration interface, the validation mechanism, the documentation generator, and the code synthesis tool. This universal interface eliminates the need for separate complex UI components for each function, reducing overall system complexity while maintaining ease of use.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Ease of operation

If natural language understanding is used to automatically generate APIs, then the accessibility to developers without programming expertise improves, but the precision of API requirements determination may be compromised

Engineering Contradiction:
ImproveDeveloper accessibilityVSAvoidAPI requirements precision
Core Design Contradiction:
Ease of operationVSMeasurement precision

Solution Approach 1:

The system implements feedback mechanisms where the generated API code is validated against the original natural language requirements, and any discrepancies are communicated back to the user for clarification. This iterative feedback loop ensures that the precision of requirements determination is maintained by allowing users to refine their natural language descriptions based on system feedback, bridging the gap between accessibility and precision.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The natural language understanding system dynamically adapts its processing based on the context and specificity of the input. It uses dynamic disambiguation techniques that adjust the level of detail and precision required based on the user's domain knowledge and the complexity of the requested API, allowing the system to maintain precision while remaining accessible to users with varying levels of expertise.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS20240126624A1Automatically generating application programming interfaces
Publication Date: 2024.04.18 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20240126624A1 patent drawing
  • US20240126624A1 patent drawing
  • US20240126624A1 patent drawing

AI summary

Techniques for automatically generating an API in response to a natural language input are provided. A method includes: receiving, by a processor set, a natural language input provided via a conversational user interface of a client device; determining, by the processor set, requirements of a new application programming interface (API) by analyzing the natural language input using natural language understanding; and automatically generating, by the processor set, the new API based on the requirements.