# US 2017/0293834 A1 · Techniques to respond to user requests using natural-language machine learning based on branching example conversations

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

- Number: US 2017/0293834 A1
- Document ID: US20170293834A1
- Status: Published application
- Kind: A1
- Application number: 15/391,250
- Filed: 2016-12-27
- Published: 2017-10-12
- Earliest claimed: 2016-04-11
- Assignees: Facebook, Inc.
- Applicants: Facebook, Inc.
- Inventors: Martin Jean Raison; Willy Blandin; Andreea-Loredana Crisan; Stepan Parunashvili; Kemal El Moujahid; Laurent Nicolas Landowski
- Web page: https://patentgrep.com/patent/US20170293834A1

## CPC

- G06F 16/3344: {using natural language analysis}
- G06F 16/3329: Natural language query formulation
- G06F 40/35: Discourse or dialogue representation
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06N 3/09: Supervised learning
- G06N 5/041: {Abduction}
- G06N 20/00: Machine learning
- H04L 51/02: using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
- G06F 16/3322: {using system suggestions (G06F16/3325 takes precedence)}
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques to response to respond to user requests using natural-language machine learning based on branching example conversations are described. In one embodiment, an apparatus may comprise a bot application interface component operative to receive an example-interaction repository, the example-interaction repository comprising a plurality of example user-to-bot interactions, including one or more branching example user-to-bot interactions; and an interaction processing component operative to generate a linearized example-interaction repository by replacing the one or more branching example user-to-bot interactions with the plurality of linearized example user-to-bot interactions; submit the example-interaction repository to a natural-language machine learning component; and receive a sequence model from the natural-language machine learning component in response to submitting the example-interaction repository; and a client communication component operative to perform a user-to-bot conversation based on the sequence model. Other embodiments are described and claimed.

## Claims

### Claim 1

A computer-implemented method, comprising:
receiving an example-interaction repository, the example-interaction repository comprising a plurality of example user-to-bot interactions, the plurality of example user-to-bot interactions comprising one or more branching example user-to-bot interactions;
generating a plurality of linearized example user-to-bot interactions, wherein each of the one or more branching example user-to-bot interactions is traversed multiple times to produce multiple linearized example user-to-bot interactions of the plurality of linearized example user-to-bot interactions;
generating a linearized example-interaction repository by replacing the one or more branching example user-to-bot interactions with the plurality of linearized example user-to-bot interactions;
submitting the linearized example-interaction repository to a natural-language machine learning component;
receiving a sequence model from the natural-language machine learning component in response to submitting the linearized example-interaction repository; and
performing a user-to-bot conversation based on the sequence model.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
traversing a branching example user-to-bot interaction by randomly selecting an outcome of each of a plurality of branches for the branching example user-to-bot interaction to generate a linearized example user-to-bot interaction based on the branching example user-to-bot interaction;
detecting that the linearized example user-to-bot interaction has exceeded a predefined stopping length;
stopping the traversing of the branching example user-to-bot interaction; and
adding the linearized example user-to-bot interaction to the plurality of linearized example user-to-bot interactions.

### Claim 3 (depends on 1)

The method of claim 1, wherein a branching example user-to-bot interaction comprises a branching jump instruction from a later part of the branching example user-to-bot interaction to an earlier part of the branching example user-to-bot interaction, the branching jump instruction empowering conditional repetition of a portion of the branching example user-to-bot interaction.

### Claim 4 (depends on 1)

The method of claim 1, wherein a branching example user-to-bot interaction comprises a multiway branching instruction between two or more paths forward through the branching example user-to-bot interaction, the multiway branching instruction empowering selection of a which portion of the branching example user-to-bot interaction is performed.

### Claim 5 (depends on 1)

The method of claim 1, wherein one or more of the plurality of example user-to-bot interactions includes one or more quick-reply prompts to a bot message, wherein each of the one or more quick-reply prompts is a suggested user response to the bot message.

### Claim 6 (depends on 5)

The method of claim 5, wherein one or more of the one or more quick-reply prompts is generated from production-performed user-to-bot conversations.

### Claim 7 (depends on 5)

The method of claim 5, wherein one or more of the one or more quick-reply prompts is associated with one or more branches for a branching example user-to-bot interaction.

### Claim 8

An apparatus, comprising:
a processor circuit;
an interaction processing component operative on the processor circuit to generate a plurality of linearized example user-to-bot interactions, wherein each of one or more branching example user-to-bot interactions is traversed multiple times to produce multiple linearized example user-to-bot interactions of the plurality of linearized example user-to-bot interactions; generate a linearized example-interaction repository by replacing the one or more branching example user-to-bot interactions with the plurality of linearized example user-to-bot interactions; and submit the linearized example-interaction repository to a natural-language machine learning component, and receive a sequence model from the natural-language machine learning component in response to submitting the linearized example-interaction repository;
a client communication component operative to perform a user message exchange with a user client to perform a user-to-bot conversation based on the sequence model; and
a bot application interface component operative to receive the example-interaction repository from a bot application, the example-interaction repository comprising a plurality of example user-to-bot interactions, the plurality of example user-to-bot interactions comprising the one or more branching example user-to-bot interactions, and perform a bot information exchange with the bot application to perform the user-to-bot conversation based on the sequence model, wherein performing the user-to-bot conversation based on the sequence model comprises applying the sequence model to a user-request context, a user-to-bot conversation history, semantic analysis information for one or more user messages, and extracted unsupervised information for the one or more user messages.

### Claim 9 (depends on 8)

The apparatus of claim 8, further comprising:
the interaction processing component operative to traverse a branching example user-to-bot interaction by randomly selecting an outcome of each of a plurality of branches for the branching example user-to-bot interaction to generate a linearized example user-to-bot interaction based on the branching example user-to-bot interaction;
detect that the linearized example user-to-bot interaction has exceeded a predefined stopping length; stop the traversing of the branching example user-to-bot interaction; and
add the linearized example user-to-bot interaction to the plurality of linearized example user-to-bot interactions.

### Claim 10 (depends on 8)

The apparatus of claim 8, wherein a branching example user-to-bot interaction comprises a branching jump instruction from a later part of the branching example user-to-bot interaction to an earlier part of the branching example user-to-bot interaction, the branching jump instruction empowering conditional repetition of a portion of the branching example user-to-bot interaction.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein a branching example user-to-bot interaction comprises a multiway branching instruction between two or more paths forward through the branching example user-to-bot interaction, the multiway branching instruction empowering selection of a which portion of the branching example user-to-bot interaction is performed.

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein one or more of the plurality of example user-to-bot interactions includes one or more quick-reply prompts to a bot message, wherein each of the one or more quick-reply prompts is a suggested user response to the bot message.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein one or more of the one or more quick-reply prompts is generated from production-performed user-to-bot conversations.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein one or more of the one or more quick-reply prompts is associated with one or more branches for a branching example user-to-bot interaction.

### Claim 15

At least one computer-readable storage medium comprising instructions that, when executed, cause a system to:
receive an example-interaction repository, the example-interaction repository comprising a plurality of example user-to-bot interactions, the plurality of example user-to-bot interactions comprising one or more branching example user-to-bot interactions;
generate a plurality of linearized example user-to-bot interactions, wherein each of the one or more branching example user-to-bot interactions is traversed multiple times to produce multiple linearized example user-to-bot interactions of the plurality of linearized example user-to-bot interactions;
generate a linearized example-interaction repository by replacing the one or more branching example user-to-bot interactions with the plurality of linearized example user-to-bot interactions;
submit the linearized example-interaction repository to a natural-language machine learning component;
receive a sequence model from the natural-language machine learning component in response to submitting the linearized example-interaction repository; and
perform a user-to-bot conversation based on the sequence model.

### Claim 16 (depends on 15)

The computer-readable storage medium of claim 15, wherein a branching example user-to-bot interaction comprises a branching jump instruction from a later part of the branching example user-to-bot interaction to an earlier part of the branching example user-to-bot interaction, the branching jump instruction empowering conditional repetition of a portion of the branching example user-to-bot interaction.

### Claim 17 (depends on 15)

The computer-readable storage medium of claim 15, wherein a branching example user-to-bot interaction comprises a multiway branching instruction between two or more paths forward through the branching example user-to-bot interaction, the multiway branching instruction empowering selection of a which portion of the branching example user-to-bot interaction is performed.

### Claim 18 (depends on 15)

The computer-readable storage medium of claim 15, wherein one or more of the plurality of example user-to-bot interactions includes one or more quick-reply prompts to a bot message, wherein each of the one or more quick-reply prompts is a suggested user response to the bot message.

### Claim 19 (depends on 18)

The computer-readable storage medium of claim 18, wherein one or more of the one or more quick-reply prompts is generated from production-performed user-to-bot conversations.

### Claim 20 (depends on 18)

The computer-readable storage medium of claim 18, wherein one or more of the one or more quick-reply prompts is associated with one or more branches for a branching example user-to-bot interaction.
