# US 2017/0293681 A1 · Techniques to respond to user requests using natural-language machine learning based on 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/0293681 A1
- Document ID: US20170293681A1
- Status: Published application
- Kind: A1
- Application number: 15/380,112
- Filed: 2016-12-15
- Published: 2017-10-12
- Earliest claimed: 2016-04-11
- Assignees: Facebook, Inc.
- Applicants: Facebook, Inc.
- Inventors: Willy Blandin; Alexandre Lebrun
- Web page: https://patentgrep.com/patent/US20170293681A1

## 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 user requests using natural-language machine learning based on 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; and an interaction processing component operative to submit the 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 example-interaction repository; and 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;
submitting the 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 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, 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, and semantic analysis information for one or more user messages.

### Claim 3 (depends on 1)

The method of claim 1, performing the user-to-bot conversation comprising receiving a user message from a client device and generating a bot response based on the user message and the sequence model, the bot response comprising a bot action, further comprising:
transmitting the bot action to a bot application, the bot action transmitted to the bot application in association with a user-request context; and
receiving an updated user-request context from the bot application.

### Claim 4 (depends on 1)

The method of claim 1, performing the user-to-bot conversation comprising receiving a user message from a client device and generating a bot response based on the user message and the sequence model, further comprising:
generating an updated user-request context based on processing the user message with the sequence model in association with a current user-request context.

### Claim 5 (depends on 1)

The method of claim 1, wherein performing the user-to-bot conversation comprises exchanging a series of user messages and bot messages via a messaging system to generate a user-request context and an inferred user-request action, the inferred user-request action defined based on an application program interface call, wherein one or more parameters of the application program interface call are defined based on the user-request context.

### Claim 6 (depends on 1)

The method of claim 1, wherein one or more of the example user-to-bot interactions comprise developer-written user-to-bot hypothetical interactions, further comprising:
receiving the one or more developer-written user-to-bot interactions via a developer console.

### Claim 7 (depends on 1)

The method of claim 1, wherein one or more of the example user-to-bot interactions comprise usage-based user-to-bot interactions, further comprising:
receiving one or more production user-to-bot interactions generated from production-performed user-to-bot conversations;
displaying the one or more production user-to-bot interactions via a developer console;
receiving one or more developer modifications for the one or more production user-to-bot interactions via the developer console to generate the usage-based user-to-bot interactions;
receiving developer validation of the one or more production user-to-bot interactions via the developer console to generate the usage-based user-to-bot interactions;
receiving one or more developer annotations of the one or more production user-to-bot interactions via the developer console to generate the usage-based user-to-bot interactions, the one or more developer annotations comprising a context update annotation;
including the one or more usage-based user-to-bot interactions in the example-interaction repository in response to receiving the developer validation of the one or more usage-based user-to-bot interactions; and
including the one or more developer annotations with the one or more usage-based user-to-bot interactions in the example-interaction repository.

### Claim 8 (depends on 1)

The method of claim 1, performing the user-to-bot conversation based on the sequence model comprising:
incorporating extracted unsupervised information into one or more suggested bot responses.

### Claim 9

An apparatus, comprising:
a processor circuit;
an interaction processing component operative on the processor circuit to submit an example-interaction repository to a natural-language machine learning component, the example-interaction repository comprising a plurality of example user-to-bot interactions, and receive a sequence model from the natural-language machine learning component in response to submitting the 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 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 10 (depends on 9)

The apparatus of claim 9, the user message exchange with the user client comprising receiving a user message from a client device, the user-to-bot conversation comprising a bot response based on the user message and the sequence model, the bot response comprising a bot action, further comprising:
the bot application interface component operative to transmit the bot action to the bot application, the bot action transmitted to the bot application in association with a user-request context; and receive an updated user-request context from the bot application.

### Claim 11 (depends on 9)

The apparatus of claim 9, performing the user-to-bot conversation comprising receiving a user message from a client device and generating a bot response based on the user message and the sequence model, further comprising:
the interaction processing component operative to generate an updated user-request context based on processing the user message with the sequence model in association with a current user-request context.

### Claim 12 (depends on 9)

The apparatus of claim 9, wherein performing the user-to-bot conversation comprises exchanging a series of user messages and bot messages via a messaging system to generate the user-request context and an inferred user-request action, the inferred user-request action defined based on an application program interface call, wherein one or more parameters of the application program interface call are defined based on the user-request context.

### Claim 13 (depends on 9)

The apparatus of claim 9, wherein one or more of the example user-to-bot interactions comprise developer-written user-to-bot hypothetical interactions, further comprising:
a developer console operative to receive the one or more developer-written user-to-bot interactions.

### Claim 14 (depends on 9)

The apparatus of claim 9, wherein one or more of the example user-to-bot interactions comprise usage-based user-to-bot interactions, further comprising:
a developer console operative to receive one or more production user-to-bot interactions generated from production-performed user-to-bot conversations; display the one or more production user-to-bot interactions via a developer console; receive one or more developer modifications for the one or more production user-to-bot interactions via the developer console to generate the usage-based user-to-bot interactions; receive developer validation of the one or more production user-to-bot interactions via the developer console to generate the usage-based user-to-bot interactions; and receive one or more developer annotations of the one or more production user-to-bot interactions via the developer console to generate the usage-based user-to-bot interactions, the one or more developer annotations comprising a context update annotation; and
the interaction processing component operative to include the one or more usage-based user-to-bot interactions in the example-interaction repository in response to receiving the developer validation of the one or more usage-based user-to-bot interactions; and include the one or more developer annotations with the one or more usage-based user-to-bot interactions in the example-interaction repository.

### 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;
submit the 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 example-interaction repository; and
perform a 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 16 (depends on 15)

The computer-readable storage medium of claim 15, performing the user-to-bot conversation comprising receiving a user message from a client device and generating a bot response based on the user message and the sequence model, the bot response comprising a bot action, comprising further instructions that, when executed, cause a system to:
transmit the bot action to a bot application, the bot action transmitted to the bot application in association with a user-request context; and
receive an updated user-request context from the bot application.

### Claim 17 (depends on 15)

The computer-readable storage medium of claim 15, performing the user-to-bot conversation comprising receiving a user message from a client device and generating a bot response based on the user message and the sequence model, comprising further instructions that, when executed, cause a system to:
generate an updated user-request context based on processing the user message with the sequence model in association with a current user-request context.

### Claim 18 (depends on 15)

The computer-readable storage medium of claim 15, wherein performing the user-to-bot conversation comprises exchanging a series of user messages and bot messages via a messaging system to generate the user-request context and an inferred user-request action, the inferred user-request action defined based on an application program interface call, wherein one or more parameters of the application program interface call are defined based on the user-request context

### Claim 19 (depends on 15)

The computer-readable storage medium of claim 15, wherein one or more of the example user-to-bot interactions comprise developer-written user-to-bot hypothetical interactions, comprising further instructions that, when executed, cause a system to:
receive the one or more developer-written user-to-bot interactions via a developer console.

### Claim 20 (depends on 15)

The computer-readable storage medium of claim 15, wherein one or more of the example user-to-bot interactions comprise usage-based user-to-bot interactions, comprising further instructions that, when executed, cause a system to:
receive one or more production user-to-bot interactions generated from production-performed user-to-bot conversations;
display the one or more production user-to-bot interactions via a developer console;
receive one or more developer modifications for the one or more production user-to-bot interactions via the developer console to generate the usage-based user-to-bot interactions;
receive developer validation of the one or more production user-to-bot interactions via the developer console to generate the usage-based user-to-bot interactions;
receive one or more developer annotations of the one or more production user-to-bot interactions via the developer console to generate the usage-based user-to-bot interactions, the one or more developer annotations comprising a context update annotation;
include the one or more usage-based user-to-bot interactions in the example-interaction repository in response to receiving the developer validation of the one or more usage-based user-to-bot interactions; and
include the one or more developer annotations with the one or more usage-based user-to-bot interactions in the example-interaction repository.
