# US 2022/0291788 A1 · Generating natural languages interface from graphic user interfaces

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

- Number: US 2022/0291788 A1
- Document ID: US20220291788A1
- Status: Published application
- Kind: A1
- Application number: 17/198,951
- Filed: 2021-03-11
- Published: 2022-09-15
- Earliest claimed: 2021-03-11
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Offer Akrabi; Erez Lev Meir Bilgory; Sami Sobhe Marreed; ALESSANDRO DONATELLI; Asaf Adi; Nir Mashkif
- Web page: https://patentgrep.com/patent/US20220291788A1

## CPC

- G06F 3/0482: Interaction with lists of selectable items, e.g. menus
- G06F 40/30: Semantic analysis
- G06F 3/04812: Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
- G06F 3/0488: using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F 3/167: {Audio in a user interface, e.g. using voice commands for navigating, audio feedback}
- G06F 40/35: Discourse or dialogue representation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An approach for automatically generate the Natural Language Interface (NLI) directly from the Graphical User Interface (GUI) code is disclosed. The approach leverages the use of mapping between GUI components to pre-defined NLI components in order to generate the necessary NLI components (e.g., intent example, entities, etc.) from the GUI code representation. The approach can leverage pre-defined patterns in order to generate these intent examples for each kind of NLI components. The created NLI dialog can be used simultaneously with the GUI or as a standalone feature.

## Claims

### Claim 1

A computer-implemented method for creating a Natural Language (NL) dialogue from Graphical User Interface (GUI) code, the computer-method comprising:
receiving GUI code representation of an application;
mapping the GUI code representation to one or more Natural Language Interface (NLI) components;
determining a pre-define intent patterns based on the one more NLI components;
creating one or more intent examples based on the predefine intent patterns;
creating one or more entities based on the one or more intent examples;
mapping action function to a backend operation of the one or more NLI components; and
generating a NL dialogue based on the one or more intent examples, the one or more entities, mapped action function and pre-defined conversation component.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein receiving the GUI code representation of the application further comprising:
identifying a source code of the application;
retrieving relevant information from the application; and
retrieving the GUI code from the source code of the application.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein mapping the GUI code representation to the one or more NLI components further comprising:
determining one or more declarations of the GUI code; and
associating the one or more declarations of the GUI code to the one or more NLI components.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein determining the pre-define intent patterns based on the one more NLI components further comprising:
retrieving a package of patterns from a database; and
modifying the package of patterns based on requirements of user.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein creating the one or more intent examples based on the predefine intent patterns further comprising:
extracting the GUI code representation, corresponding labels, IDs and names for every matched NLI component; and
generating the one or more intent examples based on the GUI code representation, the corresponding labels, the IDs and the names.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein creating the one or more entities based on the one or more intent examples further comprising:
generating the one or more entities based on the one or more intent examples and a component type of the one or more intent examples.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein mapping action function to the backend operation of the one or more NLI components further comprising:
identifying any restrictions on the one or more calls to action; and
associating calls to actions from the GUI code to a backend NL component operation along with identified restrictions.

### Claim 8

A computer program product for creating a Natural Language (NL) dialogue from Graphical User Interface (GUI) code, the computer program product comprising:
one or more computer readable storage media and program instructions stored on the one or more computer readable storage media, the program instructions comprising:
program instructions to receive GUI code representation of an application;
program instructions to map the GUI code representation to one or more Natural Language Interface (NLI) components;
program instructions to determine a pre-define intent patterns based on the one more NLI components;
program instructions to create one or more intent examples based on the predefine intent patterns;
program instructions to create one or more entities based on the one or more intent examples;
program instructions to map action function to a backend operation of the one or more NLI components; and
program instructions to generate a NL dialogue based on the one or more intent examples, the one or more entities, mapped action function and pre-defined conversation component.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein receiving the GUI code representation of the application further comprising:
program instructions to identify a source code of the application;
program instructions to retrieve relevant information from the application; and
program instructions to retrieve the GUI code from the source code of the application.

### Claim 10 (depends on 8)

The computer program product of claim 8, wherein mapping the GUI code representation to the one or more NLI components further comprising:
program instructions to determine one or more declarations of the GUI code; and
program instructions to associate the one or more declarations of the GUI code to the one or more NLI components.

### Claim 11 (depends on 8)

The computer program product of claim 8, wherein determining the pre-define intent patterns based on the one more NLI components further comprising:
program instructions to retrieve a package of patterns from a database; and
program instructions to modify the package of patterns based on requirements of user.

### Claim 12 (depends on 8)

The computer program product of claim 8, wherein creating the one or more intent examples based on the predefine intent patterns further comprising:
program instructions to extract the GUI code representation, corresponding labels, IDs and names for every matched NLI component; and
program instructions to generate the one or more intent examples based on the GUI code representation, the corresponding labels, the IDs and the names.

### Claim 13 (depends on 8)

The computer program product of claim 8, wherein creating the one or more entities based on the one or more intent examples further comprising:
program instructions to generate the one or more entities based on the one or more intent examples and a component type of the one or more intent examples.

### Claim 14 (depends on 8)

The computer program product of claim 8, wherein mapping action function to the backend operation of the one or more NLI components further comprising:
program instructions to identify any restrictions on the one or more calls to action; and
program instructions to associate calls to actions from the GUI code to a backend NL component operation along with identified restrictions.

### Claim 15

A computer system for creating a Natural Language (NL) dialogue from Graphical User Interface (GUI) code the computer system comprising:
one or more computer processors;
one or more computer readable storage media;
program instructions stored on the one or more computer readable storage media for execution by at least one of the one or more computer processors, the program instructions comprising:
program instructions to receive GUI code representation of an application;
program instructions to map the GUI code representation to one or more Natural Language Interface (NLI) components;
program instructions to determine a pre-define intent patterns based on the one more NLI components;
program instructions to create one or more intent examples based on the predefine intent patterns;
program instructions to create one or more entities based on the one or more intent examples;
program instructions to map action function to a backend operation of the one or more NLI components; and
program instructions to generate a NL dialogue based on the one or more intent examples, the one or more entities, mapped action function and pre-defined conversation component.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein receiving the GUI code representation of the application further comprising:
program instructions to identify a source code of the application;
program instructions to retrieve relevant information from the application; and
program instructions to retrieve the GUI code from the source code of the application.

### Claim 17 (depends on 15)

The computer system of claim 15, wherein mapping the GUI code representation to the one or more NLI components further comprising:
program instructions to determine one or more declarations of the GUI code; and
program instructions to associate the one or more declarations of the GUI code to the one or more NLI components.

### Claim 18 (depends on 15)

The computer system of claim 15, wherein determining the pre-define intent patterns based on the one more NLI components further comprising:
program instructions to retrieve a package of patterns from a database; and
program instructions to modify the package of patterns based on requirements of user.

### Claim 19 (depends on 15)

The computer system of claim 15, wherein creating the one or more intent examples based on the predefine intent patterns further comprising:
program instructions to extract the GUI code representation, corresponding labels, IDs and names for every matched NLI component; and
program instructions to generate the one or more intent examples based on the GUI code representation, the corresponding labels, the IDs and the names.

### Claim 20 (depends on 15)

The computer system of claim 15, wherein creating the one or more entities based on the one or more intent examples further comprising:
program instructions to generate the one or more entities based on the one or more intent examples and a component type of the one or more intent examples.
