Service recommendation method and apparatus with intelligent assistant
AssigneeHuawei Technologies Co., Ltd.
InventorNan Jiang
Life of this patent
Estimating the term…
Abstract
A service recommendation method includes, when a user of a terminal requests a first service from an intelligent assistant, selecting, according to a name of the first service and by using a pre-established service relationship model, a potential service with a degree of relevance to the first service that meets a preset condition from multiple services that the intelligent assistant can provide, where names of the multiple services and degrees of relevance of the multiple services to each other are recorded in the service relationship model; and recommending the potential service to the user.
Claims20
A service recommendation method, comprising:
- receiving, by an intelligent assistant, a request for a first service;
- parsing, by the intelligent assistant, the request for the first service using natural language processing;
- extracting, by the intelligent assistant, a service name from the request after parsing the request, wherein the service name indicates a type of the first service;
- determining a type of service parameter for the first service based on the service name, wherein the type of service parameter for the first service is recorded in a pre-established service relationship model indicating a relationship between two or more services, wherein the pre-established service relationship model comprises a plurality of service names of a plurality of services provided by the intelligent assistant, corresponding degrees of relevance of the plurality of services to the first service, a plurality of corresponding trigger conditions of the plurality of services, and types of service parameters of the plurality of services, wherein each service parameter is a configuration parameter of a third-party application that provides a corresponding service, wherein each service parameter comprises a mandatory parameter and an optional parameter, wherein the mandatory parameter is a parameter that must be received to invoke the first potential service, and wherein the optional parameter is a parameter that is optionally received with the mandatory parameter;
- extracting, by the intelligent assistant, a service parameter for the first service from the request based on the type of service parameter indicated in the pre-established service relationship model after parsing the request;
- selecting, by the intelligent assistant, a first potential service with a first degree of relevance to the first service based on the service name, the service parameter, and the pre-established service relationship model indicating that a degree of relevance between the first potential service and the first service meets a threshold;
- generating, by the intelligent assistant, an instruction for requesting one of the third-party applications to provide the first potential service;
- detecting, by the intelligent assistant, whether a corresponding trigger condition for performing the first potential service, as indicated in the pre-established service relationship model, is met after generating the instruction;
- and
- determining, by the intelligent assistant, whether to store the instruction in a cache temporarily or send the instruction to the one of the third-party applications based on whether the corresponding trigger condition is met.
An apparatus with an intelligent assistant, comprising:
- a memory comprising instructions;
- and
- a processor coupled to the memory and configured to execute the instructions, which causes the processor to be configured to:
- receive a request for a first service by the intelligent assistant;
- parse the request for the first service using natural language processing;
- extract a service name from the request after parsing the request, wherein the service name indicates a type of the first service;
- determine a type of service parameter for the first service based on the service name, wherein the type of service parameter for the first service is recorded in a pre-established service relationship model, wherein the established service relationship model indicates a relationship between two or more services, wherein the pre-established service relationship model comprises a plurality of service names of a plurality of services provided by the intelligent assistant, corresponding degrees of relevance of the plurality of services to the first service, a plurality of corresponding trigger conditions of the plurality of services, and types of service parameters of the plurality of services, wherein each service parameter is a configuration parameter of a third-party application that provides a corresponding service, wherein each service parameter comprises a mandatory parameter and an optional parameter, wherein the mandatory parameter is a parameter that must be received to invoke the first potential service, and wherein the optional parameter is a parameter that is optionally received with the mandatory parameter;
- extract a service parameter for the first service from the request based on the type of service parameter indicated in the pre-established service relationship model after parsing the request;
- select a first potential service with a first degree of relevance to the first service based on the service name, the service parameter, and the pre-established service relationship model indicating that a degree of relevance between the first potential service and the first service meets a threshold;
- generate an instruction for requesting one of the third-party applications to provide the first potential service;
- detect whether a corresponding trigger condition for performing the first potential service, as indicated in the pre-established service relationship model, is met after generating the instruction;
- and
- determine whether to buffer the instruction in a cache or send the instruction to the one of the third-party applications based on whether the corresponding trigger condition is met.
Dependencies are inferred from the claim text.