# US 2021/0287260 A1 · Encoding conversational state and semantics in a dialogue tree to facilitate automated customer-support conversations

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

- Number: US 2021/0287260 A1
- Document ID: US20210287260A1
- Status: Published application
- Kind: A1
- Application number: 16/818,852
- Filed: 2020-03-13
- Published: 2021-09-16
- Earliest claimed: 2020-03-13
- Assignees: Zendesk, Inc.
- Applicants: Zendesk, Inc.
- Inventors: Soon-Ee Cheah; Dana Ma
- Web page: https://patentgrep.com/patent/US20210287260A1

## CPC

- G06Q 30/0281: {Customer communication at a business location, e.g. providing product or service information, consulting}
- G06F 16/3329: Natural language query formulation
- G06F 16/90332: {Natural language query formulation or dialogue systems}
- G06F 40/216: using statistical methods
- G06F 40/30: Semantic analysis
- G06F 40/35: Discourse or dialogue representation
- G06Q 30/016: After-sales
- H04L 51/02: using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The disclosed embodiments relate to a system that automatically interacts with a customer during an automated customer-support conversation. The system first receives a textual input from the customer during the automated customer-support conversation, wherein the conversation relates to an issue the customer has with a product or a service used by the customer. Next, the system calculates a semantic embedding in a vector space for the textual input. The system then determines a new position in a predefined dialogue tree based on the calculated semantic embedding and a current position of the conversation in the dialogue tree, wherein the dialogue tree defines a structure for the conversation, including dialogue text, and predefined responsive customer-support actions for various customer inputs. Finally, the system navigates to the new position in the dialogue tree and performs a responsive customer-support action associated with the new position.

## Claims

### Claim 1

A method for automatically interacting with a customer during an automated customer-support conversation, the method comprising:
receiving a textual input from the customer during the automated customer-support conversation, wherein the conversation relates to an issue the customer has with a product or a service used by the customer;
calculating a semantic embedding in a vector space for the textual input;
determining a new position in a predefined dialogue tree based on the calculated semantic embedding and a current position of the conversation in the dialogue tree, wherein the dialogue tree defines a structure for the conversation, including dialogue text, and predefined responsive customer-support actions for various customer inputs; and
navigating to the new position in the dialogue tree and performing a responsive customer-support action associated with the new position.

### Claim 2 (depends on 1)

The method of claim 1, wherein the responsive customer-support action comprises presenting one or more helpful articles to the customer to facilitate resolving the customer's issue.

### Claim 3 (depends on 1)

The method of claim 1, wherein the responsive customer-support action comprises putting the customer in touch with a human customer-support agent to help resolve the customer's issue.

### Claim 4 (depends on 1)

The method of claim 1, wherein the responsive customer-support action comprises triggering a predefined workflow to help resolve the customer's issue.

### Claim 5 (depends on 4)

The method of claim 4, wherein the predefined workflow can be associated with one or more of the following:
obtaining status information for an order;
changing a delivery address for an order;
issuing a refund for an order;
issuing an exchange for an order;
resetting the customer's password;
updating details of the customer's account; and
canceling the customer's account.

### Claim 6 (depends on 1)

The method of claim 1, wherein calculating the semantic embedding for the textual input involves calculating a Doc2Vec embedding for the textual input.

### Claim 7 (depends on 1)

The method of claim 1, wherein the method further comprises calculating a semantic embedding and a positional embedding for each node in the dialogue tree, which involves, for each node:
calculating a semantic embedding for the node based on dialogue text associated with the node;
if the node is a root node, calculating the positional embedding for the node to be equal to the node's semantic embedding; and
otherwise, calculating the positional embedding for the node to be a weighted average of the semantic embedding for the node and a positional embedding for a parent node of the node.

### Claim 8 (depends on 7)

The method of claim 7, wherein determining the new position in the dialogue tree involves:
retrieving a positional embedding associated with a current position of the conversation in the dialogue tree;
calculating a new positional embedding by taking a weighted average of the semantic embedding for the textual input and the retrieved positional embedding;
comparing the new positional embedding against previously calculated positional embeddings for all positions in the dialogue tree; and
selecting a position in the dialogue tree associated with a best-matching positional embedding to be the new position.

### Claim 9 (depends on 1)

The method of claim 1, wherein a weighting parameter is used while taking the weighted average of the semantic embedding for the textual input and the positional embedding, wherein the weighting parameter controls a propensity of the method to keep the conversation within a current branch of the dialogue tree.

### Claim 10 (depends on 1)

The method of claim 1, wherein determining the new position in the dialogue tree additionally involves biasing the determination of the new position based on context information and/or status information associated with the customer.

### Claim 11

A non-transitory computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for automatically interacting with a customer during an automated customer-support conversation, the method comprising:
receiving a textual input from the customer during the automated customer-support conversation, wherein the conversation relates to an issue the customer has with a product or a service used by the customer;
calculating a semantic embedding in a vector space for the textual input;
determining a new position in a predefined dialogue tree based on the calculated semantic embedding and a current position of the conversation in the dialogue tree, wherein the dialogue tree defines a structure for the conversation, including dialogue text, and predefined responsive customer-support actions for various customer inputs; and
navigating to the new position in the dialogue tree and performing a responsive customer-support action associated with the new position.

### Claim 12 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the responsive customer-support action comprises presenting one or more helpful articles to the customer to facilitate resolving the customer's issue.

### Claim 13 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the responsive customer-support action comprises putting the customer in touch with a human customer-support agent to help resolve the customer's issue.

### Claim 14 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the responsive customer-support action comprises triggering a predefined workflow to help resolve the customer's issue.

### Claim 15 (depends on 14)

The non-transitory computer-readable storage medium of claim 14, wherein the predefined workflow can be associated with one or more of the following:
obtaining status information for an order;
changing a delivery address for an order;
issuing a refund for an order;
issuing an exchange for an order;
resetting the customer's password;
updating details of the customer's account; and
canceling the customer's account.

### Claim 16 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein calculating the semantic embedding for the textual input involves calculating a Doc2Vec embedding for the textual input.

### Claim 17 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the method further comprises calculating a semantic embedding and a positional embedding for each node in the dialogue tree, which involves, for each node:
calculating a semantic embedding for the node based on dialogue text associated with the node;
if the node is a root node, calculating the positional embedding for the node to be equal to the node's semantic embedding; and
otherwise, calculating the positional embedding for the node to be a weighted average of the semantic embedding for the node and a positional embedding for a parent node of the node.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein determining the new position in the dialogue tree involves:
retrieving a positional embedding associated with a current position of the conversation in the dialogue tree;
calculating a new positional embedding by taking a weighted average of the semantic embedding for the textual input and the retrieved positional embedding;
comparing the new positional embedding against previously calculated positional embeddings for all positions in the dialogue tree; and
selecting a position in the dialogue tree associated with a best-matching positional embedding to be the new position.

### Claim 19 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein a weighting parameter is used while taking the weighted average of the semantic embedding for the textual input and the positional embedding, wherein the weighting parameter controls a propensity of the method to keep the conversation within a current branch of the dialogue tree.

### Claim 20 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein determining the new position in the dialogue tree additionally involves biasing the determination of the new position based on context information and/or status information associated with the customer.

### Claim 21

A system that automatically interacts with a customer during an automated customer-support conversation, comprising:
at least one processor and at least one associated memory; and
a customer-support system, which executes on the at least one processor, wherein during operation, the customer-support system:
receives a textual input from the customer during the automated customer-support conversation, wherein the conversation relates to an issue the customer has with a product or a service used by the customer;
calculates a semantic embedding in a vector space for the textual input;
determines a new position in a predefined dialogue tree based on the calculated semantic embedding and a current position of the conversation in the dialogue tree, wherein the dialogue tree defines a structure for the conversation, including dialogue text, and predefined responsive customer-support actions for various customer inputs; and
navigates to the new position in the dialogue tree and performs a responsive customer-support action associated with the new position.

### Claim 22 (depends on 21)

The system of claim 21, wherein while performing the responsive customer-support action, the customer-support system presents one or more helpful articles to the customer to facilitate resolving the customer's issue.

### Claim 23 (depends on 21)

The system of claim 21, wherein while performing the responsive customer-support action, the customer-support system puts the customer in touch with a human customer-support agent to help resolve the customer's issue.

### Claim 24 (depends on 21)

The system of claim 21, wherein while performing the responsive customer-support action, the customer-support system triggers a predefined workflow to help resolve the customer's issue.

### Claim 25 (depends on 24)

The system of claim 24, wherein the predefined workflow can be associated with one or more of the following:
obtaining status information for an order;
changing a delivery address for an order;
issuing a refund for an order;
issuing an exchange for an order;
resetting the customer's password;
updating details of the customer's account; and
canceling the customer's account.

### Claim 26 (depends on 21)

The system of claim 21, wherein while calculating the semantic embedding for the textual input, the customer-support system calculates a Doc2Vec embedding for the textual input.

### Claim 27 (depends on 21)

The system of claim 21, wherein the customer-support system additionally calculates a semantic embedding and a positional embedding for each node in the dialogue tree, wherein for each node, the customer-support system:
calculates a semantic embedding for the node based on dialogue text associated with the node;
if the node is a root node, calculates the positional embedding for the node to be equal to the node's semantic embedding; and
otherwise, calculates the positional embedding for the node to be a weighted average of the semantic embedding for the node and a positional embedding for a parent node of the node.

### Claim 28 (depends on 27)

The system of claim 27, wherein while determining the new position in the dialogue tree, the customer-support system:
retrieves a positional embedding associated with a current position of the conversation in the dialogue tree;
calculates a new positional embedding by taking a weighted average of the semantic embedding for the textual input and the retrieved positional embedding;
compares the new positional embedding against previously calculated positional embeddings for all positions in the dialogue tree; and
selects a position in the dialogue tree associated with a best-matching positional embedding to be the new position.

### Claim 29 (depends on 21)

The system of claim 21, wherein a weighting parameter is used while taking the weighted average of the semantic embedding for the textual input and the positional embedding, wherein the weighting parameter controls a propensity of the method to keep the conversation within a current branch of the dialogue tree.

### Claim 30 (depends on 21)

The system of claim 21, wherein while determining the new position in the dialogue tree, the customer-support system additionally biases the determination of the new position based on context information and/or status information associated with the customer.
