CN115766863A - Unified access method, device and system for skill flow and storage medium - Google Patents

Unified access method, device and system for skill flow and storage medium Download PDF

Info

Publication number
CN115766863A
CN115766863A CN202211295604.4A CN202211295604A CN115766863A CN 115766863 A CN115766863 A CN 115766863A CN 202211295604 A CN202211295604 A CN 202211295604A CN 115766863 A CN115766863 A CN 115766863A
Authority
CN
China
Prior art keywords
skill
current
url
gateway
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211295604.4A
Other languages
Chinese (zh)
Inventor
李勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202211295604.4A priority Critical patent/CN115766863A/en
Publication of CN115766863A publication Critical patent/CN115766863A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application discloses a uniform access method, a device, a system and a storage medium of skill flow, wherein the method comprises the following steps: the method comprises the steps of receiving a current skill request sent by an application server, wherein the current skill request is a skill request sent by the application server based on a current skill gateway URL, the current skill gateway URL is a skill gateway URL determined by the application server based on the current skill request and the corresponding relation between a prestored skill and the skill gateway URL, determining a current skill server URL corresponding to the current skill request based on the current skill request and the corresponding relation between the prestored skill, the skill gateway URL and the skill server URL, and forwarding the current skill request to the skill server based on the current skill server URL. The skill gateway can realize the uniform access to the skill request.

Description

Unified access method, device and system for skill flow and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, and a storage medium for unified access to skill flow.
Background
The skill is a high-level function of the cloud of the device, and the difference between the skill and the basic function of the device is as follows: the basic functions of the device are the functions of the device, and the skills are the cloud high-level functions developed based on the basic functions of the device. The intelligent household product can enrich the hard strength of the product by deploying various skills, and the core competitiveness and the market share of the product are improved.
The skills can be deployed in a cloud server (i.e., a skill server), wherein the skill server is a distributed server, and at present, an application server can send a skill request to the skill server, so that the skill server can complete processing of the skill request and return a response.
However, the skill requests sent by the application server may be distributed in each skill server, and uniform access to the skill requests cannot be realized.
Disclosure of Invention
The application provides a uniform access method, device, system and storage medium of skill flow, which are used for solving the defects that a skill server is down and cannot provide corresponding services under the condition of excessive skill requests in the prior art, realizing flow control of the skill requests and enhancing the stability of the skill server.
The application provides a uniform access method of skill flow, which is applied to a skill gateway and comprises the following steps:
receiving a current skill request sent by an application server, wherein the current skill request is a skill request sent by the application server based on a current skill gateway URL, and the current skill gateway URL is a skill gateway URL determined by the application server based on the current skill request and a corresponding relation between a prestored skill and the skill gateway URL;
determining a current skill server URL corresponding to the current skill request based on the current skill request and a corresponding relation of a pre-stored skill, a skill gateway URL and a skill server URL;
forwarding the current skill request to a skill server based on the current skill server URL.
According to the unified access method for skill traffic provided by the application, after forwarding the current skill request to a skill server, the method further comprises:
receiving a current control instruction sent by the skill server, wherein the current control instruction is obtained by the skill server based on the current skill request;
and forwarding the current control instruction to the application server.
According to the unified access method of skill flow provided by the application, before determining a current skill server URL corresponding to a current skill request based on the current skill request and a pre-stored correspondence relationship between a skill, a skill gateway URL and a skill server URL, the method further includes:
verifying whether the current skill request meets permission verification conditions;
and under the condition that the current skill request meets the permission verification condition, determining a current skill server URL corresponding to the current skill request based on the current skill request and a corresponding relation of a prestored skill, a skill gateway URL and a skill server URL.
According to the unified access method for skill traffic provided by the application, before receiving a current skill request sent by an application server, the method further comprises:
and for each skill, registering the information of the skill, generating a skill gateway URL of the skill, and sending the corresponding relation between the skill and the skill gateway URL of the skill to the application server.
According to the uniform access method of the skill flow, the generation of the skill gateway URL of the skill comprises the following steps:
acquiring a skill server URL of the skill;
and replacing the information to be replaced in the skill server URL of the skill with the domain name of the skill gateway to obtain the skill gateway URL of the skill.
According to the unified access method for the skill traffic provided by the application, after the skill gateway URL of the skill is generated, the method further includes:
the skill, the skill gateway URL for the skill, and the skill server URL for the skill are stored.
According to the unified access method of the skill flow, the corresponding relation between the skill and the skill gateway URL of the skill is sent to the application server, and the method comprises the following steps:
and sending the corresponding relation between the skill and the skill gateway URL of the skill to a message platform so that an application server monitors the message platform and acquires the corresponding relation between the skill and the skill gateway URL of the skill.
The application also provides a unified access device of skill flow, is applied to the skill gateway, the device includes:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a current skill request sent by an application server, the current skill request is a skill request sent by the application server based on a current skill gateway URL, and the current skill gateway URL is a skill gateway URL determined by the application server based on the current skill request and a pre-stored corresponding relationship between skills and the skill gateway URL;
the determining module is used for determining a current skill server URL corresponding to the current skill request based on the current skill request and the corresponding relationship among the pre-stored skill, a skill gateway URL and a skill server URL;
and the first forwarding module is used for forwarding the current skill request to the skill server based on the current skill server URL.
The present application further provides a unified access system for skill flow, the system including: the system comprises an application server, a skill gateway and a skill server;
the application server is used for determining a current skill gateway URL based on a current skill request and a corresponding relation between a pre-stored skill and the skill gateway URL, and sending the current skill request to the skill gateway based on the current skill gateway URL;
the skill gateway is configured to receive the current skill request sent by the application server, determine a current skill server URL corresponding to the current skill request based on the current skill request and a pre-stored correspondence between a skill, a skill gateway URL, and a skill server URL, and forward the current skill request to the skill server based on the current skill server URL;
and the skill server is used for receiving the current skill request sent by the skill gateway.
The present application further provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute a unified access method for implementing the technical flow according to any one of the above methods.
The present application also provides a computer-readable storage medium comprising a stored program, wherein the program when executed performs a unified access method for realizing a technical traffic as described in any of the above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements a unified access method to skills traffic as described in any of the above.
The application provides a skill flow unified access method, a device, a system and a storage medium, wherein the method comprises the following steps: the method comprises the steps of receiving a current skill request sent by an application server, wherein the current skill request is a skill request sent by the application server based on a current skill gateway URL, the current skill gateway URL is a skill gateway URL determined by the application server based on the current skill request and the corresponding relation between a prestored skill and the skill gateway URL, determining a current skill server URL corresponding to the current skill request based on the current skill request and the corresponding relation between the prestored skill, the skill gateway URL and the skill server URL, and forwarding the current skill request to a skill server based on the current skill server URL.
The skill gateway receives the current skill request, then determines a current skill server URL corresponding to the current skill request, and forwards the current skill request to the skill server, so that the skill gateway can uniformly access the skill request.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
Fig. 1 is a hardware environment diagram of a unified access method for skills traffic according to an embodiment of the present application;
fig. 2 is one of the flow diagrams of a unified access method for skills traffic provided in the present application;
FIG. 3 is one of the flow diagrams of current skill development and skill execution provided herein;
fig. 4 is a second flowchart of a unified access method for skills traffic according to the present application;
fig. 5 is a schematic structural diagram of a unified access device for skills traffic provided in the present application;
fig. 6 is a schematic structural diagram of a unified access system for skills traffic provided in the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a method, a device, a system and a storage medium for unified access of skill flow are provided. The unified access method, the device, the system and the storage medium of the skill flow are widely applied to full-House intelligent digital control application scenes such as intelligent homes (Smart Home), intelligent homes, intelligent household equipment ecology, intelligent residence (Intelligent House) ecology and the like. Optionally, in this embodiment, the above-mentioned unified access method, apparatus, system and storage medium for skills and traffic may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, provide a database on or independent of the server for providing a data storage service for the server 104, and configure a cloud computing and/or edge computing service on or independent of the server for providing a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In order to implement flow control on skill requests and enhance the stability of a skill server, the present application provides a method, an apparatus, a system, a computer-readable storage medium, an electronic apparatus, and a computer program product for uniform access of skill traffic, and the method for uniform access of skill traffic provided by the present application is described below with reference to fig. 2:
as shown in fig. 2, the unified access method for skills traffic provided in the present application is applied to a skills gateway, and the method includes:
s201, receiving a current skill request sent by an application server.
When a user wants to invoke a skill, the user can send a skill invoking request to the application server through the terminal device, and the application server can receive the skill invoking request, namely a current skill request. The application server is a server corresponding to an application program, and the application program is a program installed in terminal equipment such as a mobile phone, a computer and a tablet computer.
The application server stores a correspondence between skills and a gateway URL (Uniform Resource Locator). In order to be able to invoke the skill corresponding to the current skill request, the application server may determine a skill gateway URL corresponding to the current skill request based on the current skill request and a pre-stored correspondence between the skill and the skill gateway URL, and use the skill gateway URL corresponding to the current skill request as the current skill gateway URL. The application server may then forward the current skill request to the skill gateway based on the current skill gateway URL.
In an embodiment, the application server may determine whether the current skill gateway URL is stored based on the current skill request and a pre-stored correspondence between the skill and the skill gateway URL, and in a case that the current skill gateway URL is not stored, the current skill request is indicated to be unavailable, and the application server may return information indicating that the skill request fails to the terminal device.
Under the condition that the request stored with the current skill gateway URL indicates that the current skill request is available, after the application server determines the current skill gateway URL, the application server can forward the current skill request to the skill gateway based on the current skill gateway URL, and therefore the skill gateway can receive the current skill request sent by the application server.
And S202, determining a current skill server URL corresponding to the current skill request based on the current skill request and the corresponding relationship of the pre-stored skill, the skill gateway URL and the skill server URL.
After the skill gateway receives the current skill request, since the skill gateway stores the corresponding relationship between the skill, the skill gateway URL, and the skill server URL, the skill server URL corresponding to the current skill request may be determined as the current skill server URL based on the current skill request and the corresponding relationship between the pre-stored skill, skill gateway URL, and skill server URL.
And S203, forwarding the current skill request to a skill server based on the current skill server URL.
After determining the current skill server URL, the skill gateway may forward the current skill request to the skill server based on the current skill server URL, so that the skill server may receive the skill that the user thinks to invoke.
The skill server is a server corresponding to the skill, the skill server may store the skill developed by the developer, and the skill server may be a distributed server, in other words, the skill server may include a plurality of servers.
Therefore, the uniform access method of skill flow provided by the application can receive the current skill request through the skill gateway, then determine the current skill server URL corresponding to the current skill request, and forward the current skill request to the skill server, so that the skill gateway can perform uniform access on the skill request.
As an embodiment of the present application, after forwarding the current skill request to a skill server, the method may further include:
receiving a current control instruction sent by the skill server, wherein the current control instruction is obtained by the skill server based on the current skill request; and forwarding the current control instruction to the application server.
The skill server may receive a current skill request, and after receiving the current skill request, the skill server may obtain a current control instruction based on the current skill request, where the current control instruction may characterize an instruction executed by a skill that needs to be invoked by a user.
After the current control instruction is obtained, the current control instruction can be sent to the skill gateway, and the following three conditions can exist when the skill server sends the current control instruction to the skill gateway:
in the first case, the skill gateway may further send a current skill gateway URL to the skill server when sending the current skill request, so that the skill server may receive the current skill request and the current skill gateway URL, where the current skill request and the current gateway skill URL have a corresponding relationship. Further, after obtaining the current control instruction, the skill server may send the current control instruction to the skill gateway based on the current skill gateway URL.
In the second case, the current skill request carries a unique skill request identifier, the current control instruction acquired by the skill server also carries the unique skill request identifier, and the skill server may send the current control instruction carrying the unique skill request identifier to the skill gateway.
In a third situation, the skill server may send the current skill request and the current control instruction to the skill gateway together when obtaining the current control instruction corresponding to the current skill request.
After receiving the current control instruction, the skill gateway can forward the current control instruction to the application server so that the application server can forward the current control instruction to the terminal device, and thus, the terminal device can execute the current control instruction, and a user can see an interface, an effect and the like corresponding to the current control instruction executed by the terminal device, and thus, the skill can be called.
The technical gateway forwards the current control instruction to the application server, and the following three conditions exist:
in the first case, when receiving the current skill request, the skill gateway may record the corresponding relationship between the current skill request and the application server URL. And then after the skill gateway acquires the current control instruction corresponding to the current skill request, forwarding the current control instruction to the corresponding application server based on the corresponding relationship between the current skill request and the URL of the application server and the corresponding relationship between the current skill request and the current control instruction, so that the application server can acquire the current control instruction.
Further, the application server may store a corresponding relationship between the current skill request and the terminal device, and after the current control instruction corresponding to the current skill request is obtained, may forward the current control instruction to the corresponding terminal device based on the corresponding relationship between the current skill request and the terminal device and the corresponding relationship between the current skill request and the current control instruction.
In the second case, the current skill request carries a unique skill request identifier, the current control instruction obtained by the skill gateway also carries the unique skill request identifier, and the skill gateway can send the current control instruction carrying the unique skill request identifier to the application server, so that the application server can obtain the current control instruction and forward the current control instruction to the corresponding terminal device based on the unique skill request identifier.
In a third situation, the skill gateway may send the current skill request and the current control instruction to the application server together when obtaining the current control instruction corresponding to the current skill request. Further, the application server may store a corresponding relationship between the current skill request and the terminal device, and after the current control instruction corresponding to the current skill request is obtained, may forward the current control instruction to the corresponding terminal device based on the corresponding relationship between the current skill request and the terminal device and the corresponding relationship between the current skill request and the current control instruction.
Therefore, the technical ability flow unified access method provided by the application can receive the current control instruction sent by the technical ability server through the technical ability gateway, namely, the technical ability gateway realizes unified access to the current control instruction, so that flow control can be carried out on the received control instruction based on the technical ability gateway, and flow analysis can be conveniently realized subsequently.
As an embodiment of the present application, the skill gateway may perform flow control on the received skill request and/or control instruction based on technologies such as traffic limitation, traffic degradation, traffic shaping, and traffic proxy, and may enhance stability of the skill server compared to a method in which the skill server receives the skill request sent by the application server only.
Moreover, the skill gateway can also perform traffic analysis on the received skill request and/or control instruction, further perform operation analysis and other decisions based on the traffic analysis, and perform user behavior analysis, user portrait and the like based on the traffic analysis, thereby constructing strong skill data operation analysis.
As an embodiment of the present application, before determining a current skill server URL corresponding to the current skill request based on the current skill request and a pre-stored correspondence relationship between a skill, a skill gateway URL, and a skill server URL, the method may further include:
verifying whether the current skill request meets an authority verification condition; and under the condition that the current skill request meets the permission verification condition, determining a current skill server URL corresponding to the current skill request based on the current skill request and a corresponding relation of a prestored skill, a skill gateway URL and a skill server URL.
Upon receiving the current skill request, the skill gateway may verify whether the current skill request satisfies the permission verification condition. The permission verification condition can represent that the current skill request is available and can also represent that the current skill request is legal.
And under the condition that the current skill request meets the authority verification condition, the current skill request is available, so that the skill gateway can execute the step of determining the current skill server URL corresponding to the current skill request based on the current skill request and the corresponding relationship of the prestored skill, the skill gateway URL and the skill server URL. And under the condition that the current skill request does not meet the authority verification condition, the current skill request is not available, so that the skill gateway can return a message of skill request failure to the application server, and further the application server can return the message of skill request failure to the terminal equipment.
In one embodiment, the skill gateway may validate the current skill request based on the current skill request and the correspondence of the skill and skill gateway URL and the skill server URL.
And under the condition that the skill gateway verifies that the current skill request has a corresponding skill gateway URL, namely under the condition that the current skill request is available, the current skill request meets the authority verification condition. Therefore, the step of determining the current skill server URL corresponding to the current skill request based on the current skill request and the corresponding relationship among the pre-stored skills, skill gateway URL and skill server URL may be performed.
And under the condition that the skill gateway verifies that the current skill request does not have the corresponding skill gateway URL, namely under the condition that the current skill request is unavailable, the current skill request does not meet the authority verification condition. Thus, a message may be returned to the application server that the skill request failed.
In another embodiment, the current skill request may carry a first verification identifier, the application server may carry a second verification identifier when sending the current skill request, and the skill gateway may verify whether the first verification identifier and the second verification identifier have a correspondence when receiving the current skill request sent by the application server.
And under the condition that the first verification identification and the second verification identification have a corresponding relation, the condition that the current skill request meets the authority verification condition is indicated. Therefore, the step of determining the current skill server URL corresponding to the current skill request based on the current skill request and the corresponding relationship of the pre-stored skills, skill gateway URL and skill server URL may be performed.
And under the condition that the first verification identifier and the second verification identifier do not have the corresponding relationship, the current skill request does not meet the authority verification condition. Thus, a message may be returned to the application server that the skill request failed.
As an embodiment, the skill gateway stores a corresponding relationship between skills, an application server, and skill permissions, and the skill gateway may perform permission authentication on a current skill request sent by the application server by using a filter-related technology.
And under the condition that the authority corresponding to the current skill request meets the authority verification condition, determining the current skill server URL corresponding to the current skill request based on the current skill request and the corresponding relationship of the pre-stored skill, the skill gateway URL and the skill server URL. And under the condition that the authority corresponding to the current skill request does not meet the authority verification condition, returning a message of request failure to the application server.
Through the mode, the skill server can not verify the current skill request any more, which is equivalent to the fact that the verification of the current skill request needs to be performed by the skill server is preposed, and therefore the stability of the skill server can be further improved.
As an embodiment of the present application, before receiving the current skill request sent by the application server, the method may further include:
and for each skill, registering the information of the skill, generating a skill gateway URL of the skill, and sending the corresponding relation between the skill and the skill gateway URL of the skill to the application server.
After the developer develops the skill on the skill development platform, the developer may register the URL of the skill on the skill server on the skill development platform as the URL of the skill server of the skill, and further, the skill platform may store the basic information of the skill, in other words, the skill platform may persist the basic information of the skill. Wherein the basic information of the skill comprises a skill server URL of the skill.
In one embodiment, the skill platform may store the basic information of the skill to a database of the skill platform, i.e., store the skill and the skill server URL of the skill to a database of the skill platform. Thereby realizing the persistence of the basic information of the skill.
For convenience of flow control on the received skill request through the skill gateway in the following process, for each skill, basic information of the skill developed by a developer can be registered in the skill gateway, a skill gateway URL of the skill is generated, and the corresponding relation between the skill and the skill gateway URL of the skill is sent to the application server.
As an implementation manner, after the skill platform acquires the basic information of the skill, the basic information of the skill can be sent to the skill gateway, so that the skill gateway can register the basic information of the skill. That is, the skill platform may send the correspondence of the skill and the skill server URL of the skill to the skill gateway.
By the method, the application server can acquire the corresponding relation between the skill and the skill gateway URL of the skill, so that the current skill request can be forwarded to the skill gateway after the current skill request is received subsequently, and the flow control of the received skill request based on the skill gateway is realized.
As an embodiment of the present application, generating the skill gateway URL of the skill may include:
acquiring a skill server URL of the skill; and replacing the information to be replaced in the skill server URL of the skill with the domain name of the skill gateway to obtain the skill gateway URL of the skill.
For each skill, after the skill gateway acquires the skill server URL of the skill, in order to generate the skill gateway URL of the skill, the information to be replaced in the skill server URL of the skill may be replaced with the domain name of the skill gateway, so as to obtain the skill gateway URL of the skill. The information to be replaced may be preset according to actual requirements, and specifically may be a domain name of the skill server.
For example, the skill server URL of skill A can be https:// a. Kill. Com/kill/execute, the domain name of the skill server is a. Kill. Com, that is, the area to be replaced is a. Kill. Com, and the domain name of the skill gateway is kill. The information "a. Kill. Com" to be replaced in the skill server URL of the skill may be replaced with "kill. Gateway. Com" so that the skill gateway URL of the skill a, i.e., "https:// kill. Gateway. Com/kill/execute", may be obtained.
In this way, a skill gateway URL for a skill can be generated for subsequent implementation of flow control for a received skill request based on the skill gateway.
As an embodiment of the present application, after generating the skill gateway URL of the skill, the method may further include:
the skill, the skill gateway URL for the skill, and the skill server URL for the skill are stored.
For each skill, the skill gateway may send the correspondence of the skill, the skill gateway URL of the skill, and the skill server URL of the skill to the database of the skill gateway. Namely, the database of the skill gateway is used for persisting the corresponding relation of the skill, the skill gateway URL of the skill and the skill server URL of the skill.
In one embodiment, after the application server receives the correspondence between the skills and the skill gateway URLs of the skills, the correspondence between the skills and the skill gateway URLs of the skills may be stored in a database of the application server, that is, the correspondence between the skills and the skill gateway URLs of the skills is persisted in the database of the application server.
As an embodiment, after the database of the skills gateway persists the corresponding relationship of the skills, the skills gateway URL of the skills, and the skills server URL of the skills, the skills gateway may return a persistence success message to the development platform for the developer to know.
After the database persistence skill of the application server corresponds to the skill gateway URL of the skill, the application server can return a persistence success message to the skill gateway, so that the skill gateway can send the persistence success message of the application server to the development platform, and developers can know the persistence success message.
As an embodiment of the present application, the sending the correspondence between the skill and the skill gateway URL of the skill to the application server may include:
and sending the corresponding relation between the skill and the skill gateway URL of the skill to a message platform so that an application server monitors the message platform and acquires the corresponding relation between the skill and the skill gateway URL of the skill.
In some cases, the skill gateway does not need to send the corresponding relationship of the skill gateway URLs of the skills and the skills to the application server in real time, so that the subsequent application server can obtain the corresponding relationship of the skill gateway URLs of the skills and the skills conveniently.
For each skill, the skill gateway may send a correspondence of the skill and the skill gateway URL for the skill to the messaging platform. Namely, the skill gateway asynchronously sends the corresponding relation between the skill and the skill gateway URL of the skill to the message platform.
In one embodiment, after receiving the correspondence between the skill and the skill gateway URL of the skill, the message platform may store the correspondence between the skill and the skill gateway URL of the skill in a database of the message platform, so as to implement persistence of the correspondence between the skill and the skill gateway URL of the skill in a data path of the message platform.
For each skill, the application server may monitor the message platform and obtain a correspondence between the skill and the skill gateway URL of the skill. In an embodiment, the skill server may subscribe to the correspondence topic (topic) between the skill of the message platform and the skill gateway URL of the skill, and may further obtain the correspondence between the skill gateway URL of the skill and the skill after the message platform receives the correspondence between the skill gateway URL of the skill and the skill.
By the aid of the method, the corresponding relation of the skill gateway URL of the skill can be asynchronously sent to the message platform according to actual requirements, and then the application server can obtain the corresponding relation of the skill gateway URL of the skill.
In order to more conveniently understand the unified access method for skill traffic provided by the present application, the following describes, by taking fig. 3 and fig. 4 as an example, a comparison between the current process of skill development and skill execution and the unified access method for skill traffic of the present application. Fig. 3 is a schematic flow diagram of current skill development and skill execution, and fig. 4 is a schematic flow diagram of a unified access method for skill traffic provided by the present application.
As shown in fig. 3, the current skill development and skill execution system includes: the system comprises a skill platform, a message platform, a skill server, an application server and a terminal device. The current flow diagram for skill development and skill execution includes the following steps:
and S301, the skill platform acquires the skills and the skill server URL of the skills and stores the skills and the URL.
S302, the skill platform asynchronously forwards the corresponding relation of the skills and the skill server URL of the skills to the message platform.
And S303, storing the corresponding relation between the skills and the skill server URL of the skills by the message platform.
S304, the message platform sends the corresponding relation of the skills and the skill server URL of the skills to the application server.
S305, the application server stores the corresponding relation between the skills and the skill server URL of the skills.
And S306, the terminal equipment receives the current skill request sent by the user.
And S307, the terminal equipment sends the current skill request to an application server.
And S308, the application server acquires the current skill server URL based on the current skill request and the corresponding relation between the skills and the skill server URL of the skills.
S309, based on the current skill server URL, the application server sends the current skill request to the skill server.
And S310, the skill server acquires a current control instruction based on the current skill request.
And S311, the skill server returns the current control instruction to the application server.
And S312, the application server returns the current control instruction to the terminal equipment.
As shown in fig. 4, the unified access system for skill traffic may include a skill platform, a skill gateway, a message platform, a skill server, an application server, and a terminal device. The flow diagram of the unified access method for skill flow provided by the application comprises the following steps:
s401, the skill platform acquires skills and skill server URLs of the skills and stores the skills.
In one embodiment, the skill platform may store the correspondence of the skills and the skill server URLs of the skills to a database of the skill platform and receive a message of successful storage returned by the database of the skill platform.
S402, the skill gateway registers skill information, generates a skill gateway URL of the skill, and stores the corresponding relation between the skill and the skill gateway URL of the skill.
In one embodiment, after storing the correspondence between skills and skill gateway URLs of the skills in the database of the skill gateway, the skill gateway may receive a storage success message sent by the skill gateway server and forward the storage success message to the skill platform.
And S403, the skill gateway sends the corresponding relation between the skill and the skill gateway URL of the skill to a message platform.
S404, the message platform stores the corresponding relation of the skills and the skill gateway URL of the skills.
S405, the application server monitors the message platform, and acquires and stores the corresponding relation between skills and the skill gateway URL of the skills.
Specifically, the application server may monitor topic of the correspondence between skills and skill server URLs of the skills, so that after the correspondence between skills and skill server URLs of the skills is received by the message platform, the correspondence between skills and skill server URLs of the skills may be obtained.
S406, the terminal equipment receives the current skill request sent by the user.
And S407, the terminal equipment sends the current skill request to the application server.
And S408, the application server determines the current skill gateway URL based on the current skill request and the corresponding relation between the pre-stored skill and the skill gateway URL.
And S409, based on the URL of the current skill gateway, the application server sends a current skill request to the skill gateway.
And S410, the skill gateway determines the URL of the current skill server based on the current skill request and the corresponding relation of the prestored skill, the URL of the skill gateway and the URL of the skill server.
And S411, based on the URL of the current skill server, the skill gateway sends a current skill request to the skill server.
And S412, the skill server acquires the current control instruction based on the current skill request.
And S413, the skill server returns the current control instruction to the skill gateway.
And S414, the skill gateway returns the current control instruction to the application server.
And S415, the application server returns the current control instruction to the terminal equipment.
The comparison shows that the unified access method for the skill flow can receive the current skill request sent by the application server through the skill gateway and receive the current control instruction sent by the skill server, namely, the unified access to the current skill request and the current control instruction is realized through the skill gateway, so that the flow control of the received skill request and the received control instruction can be realized based on the skill gateway, the stability of the skill server can be improved, and the follow-up flow analysis can be conveniently realized.
The following describes the unified access device for skill traffic provided in the present application, and the unified access device for skill traffic described below and the unified access method for skill traffic described above may be referred to correspondingly.
As shown in fig. 5, the present application provides a uniform access device for skills traffic, which is applied to a skills gateway, and the device includes:
a first receiving module 510, configured to receive a current skill request sent by an application server.
The current skill request is a skill request sent by the application server based on a current skill gateway URL, and the current skill gateway URL is a skill gateway URL determined by the application server based on the current skill request and a corresponding relation between a prestored skill and the skill gateway URL.
A determining module 520, configured to determine, based on the current skill request and a pre-stored correspondence relationship between the skill, the skill gateway URL, and the skill server URL, a current skill server URL corresponding to the current skill request.
A first forwarding module 530 for forwarding the current skill request to a skill server based on the current skill server URL.
As an embodiment of the present application, the apparatus may further include:
and the second receiving module is used for receiving the current control instruction sent by the skill server after the current skill request is forwarded to the skill server.
And the current control instruction is obtained by the skill server based on the current skill request.
And the second forwarding module is used for forwarding the current control instruction to the application server.
As an embodiment of the present application, the apparatus may further include:
and the first verification module is used for verifying whether the current skill request meets the authority verification condition before the current skill server URL corresponding to the current skill request is determined based on the current skill request and the corresponding relation of the pre-stored skill, the skill gateway URL and the skill server URL.
And the second verification module is used for executing the step of determining the current skill server URL corresponding to the current skill request based on the current skill request and the corresponding relation of the prestored skill, the skill gateway URL and the skill server URL under the condition that the current skill request meets the permission verification condition.
As an embodiment of the present application, the apparatus may further include:
the registration module is used for registering the information of each skill before receiving the current skill request sent by the application server, generating a skill gateway URL of the skill, and sending the corresponding relation between the skill and the skill gateway URL of the skill to the application server.
As an embodiment of the present application, the registration module may include:
and the acquisition unit is used for acquiring the skill server URL of the skill.
And the replacing unit is used for replacing the information to be replaced in the skill server URL of the skill with the domain name of the skill gateway to obtain the skill gateway URL of the skill.
As an embodiment of the present application, the apparatus may further include:
and the storage module is used for storing the skill, the skill gateway URL of the skill and the skill server URL of the skill after the skill gateway URL of the skill is generated.
As an embodiment of the present application, the registration module may further include:
and the sending unit is used for sending the corresponding relation between the skill and the skill gateway URL of the skill to a message platform so that the application server monitors the message platform and acquires the corresponding relation between the skill and the skill gateway URL of the skill.
The technical traffic unified access system provided by the present application is described below, and the technical traffic unified access system described below and the technical traffic unified access method described above may be referred to in correspondence with each other.
As shown in fig. 6, the uniform access system for skills traffic provided by the present application may include an application server 610, a skills gateway 620, and a skills server 630.
The application server 610 is configured to determine a current skill gateway URL based on a current skill request and a pre-stored correspondence between a skill and the skill gateway URL, and send the current skill request to the skill gateway 620 based on the current skill gateway URL;
the skill gateway 620 is configured to receive the current skill request sent by the application server 610, determine a current skill server URL corresponding to the current skill request based on the current skill request and a pre-stored correspondence relationship between a skill, a skill gateway URL, and a skill server URL, and forward the current skill request to the skill server 630 based on the current skill server URL;
the skill server 630 is configured to receive the current skill request sent by the skill gateway 620.
As an embodiment of the present application,
the skill server 630 is further configured to obtain a current control instruction based on the current skill request, and send the current control instruction to the skill gateway 620.
The skill gateway 620 is further configured to receive the current control instruction sent by the skill server 630, and forward the current control instruction to the application server 610.
And the application server 610 is used for receiving the current control instruction.
As an embodiment of the present application,
the skill gateway 620 is further configured to verify whether the current skill request meets an authority verification condition before determining a current skill server URL corresponding to the current skill request based on the current skill request and a pre-stored correspondence between a skill, a skill gateway URL, and a skill server URL;
and under the condition that the current skill request meets the permission verification condition, determining a current skill server URL corresponding to the current skill request based on the current skill request and a corresponding relation of a prestored skill, a skill gateway URL and a skill server URL.
As an embodiment of the present application,
the skill gateway 620 is further configured to, before receiving the current skill request sent by the application server, register information of the skill for each skill, generate a skill gateway URL of the skill, and send a correspondence between the skill and the skill gateway URL of the skill to the application server 610.
The application server 610 is further configured to receive the correspondence between the skill and the skill gateway URL of the skill, which is sent by the skill gateway 620.
As an embodiment of the present application, a method,
the skill gateway 620 is specifically configured to obtain a skill server URL of the skill. And replacing the information to be replaced in the skill server URL of the skill with the domain name of the skill gateway to obtain the skill gateway URL of the skill.
As an embodiment of the present application,
the skill gateway 620 is further configured to store the skill, the skill gateway URL of the skill, and the skill server URL of the skill after generating the skill gateway URL of the skill.
As an embodiment of the present application, the unified access system for skills traffic further includes: a message platform;
the skill gateway 620 is specifically configured to send the correspondence between the skill and the skill gateway URL of the skill to the message platform.
And the message platform is used for receiving the corresponding relation between the skill and the skill gateway URL of the skill, which is sent by the skill gateway 620.
The application server 610 is further configured to monitor the message platform, and obtain a correspondence between the skill and the skill gateway URL of the skill.
Fig. 7 illustrates a physical structure diagram of an electronic device, and as shown in fig. 7, the electronic device may include: a processor (processor) 710, a communication Interface (Communications Interface) 720, a memory (memory) 730, and a communication bus 740, wherein the processor 710, the communication Interface 720, and the memory 730 communicate with each other via the communication bus 740. Processor 710 may invoke logic instructions in memory 730 to perform a unified access method of skills traffic, the method comprising: the method comprises the steps of receiving a current skill request sent by an application server, wherein the current skill request is a skill request sent by the application server based on a current skill gateway URL, the current skill gateway URL is a skill gateway URL determined by the application server based on the current skill request and the corresponding relation between a prestored skill and the skill gateway URL, determining a current skill server URL corresponding to the current skill request based on the current skill request and the corresponding relation between the prestored skill, the skill gateway URL and the skill server URL, and forwarding the current skill request to a skill server based on the current skill server URL.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present application further provides a computer program product, where the computer program product includes a computer program, the computer program can be stored on a computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the unified access method for technical traffic provided by the above methods, and the method includes: receiving a current skill request sent by an application server, wherein the current skill request is a skill request sent by the application server based on a current skill gateway URL, the current skill gateway URL is a skill gateway URL determined by the application server based on the current skill request and the corresponding relation between a prestored skill and the skill gateway URL, the current skill server URL corresponding to the current skill request is determined based on the current skill request and the corresponding relation between the prestored skill, the skill gateway URL and the skill server URL, and the current skill request is forwarded to the skill server based on the current skill server URL.
In another aspect, the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, where the program is executed to perform the method for unified access to technical traffic provided by the foregoing methods when executed, and the method includes: receiving a current skill request sent by an application server, wherein the current skill request is a skill request sent by the application server based on a current skill gateway URL, the current skill gateway URL is a skill gateway URL determined by the application server based on the current skill request and the corresponding relation between a prestored skill and the skill gateway URL, the current skill server URL corresponding to the current skill request is determined based on the current skill request and the corresponding relation between the prestored skill, the skill gateway URL and the skill server URL, and the current skill request is forwarded to the skill server based on the current skill server URL.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. A unified access method for skill flow is applied to a skill gateway, and is characterized in that the method comprises the following steps:
receiving a current skill request sent by an application server, wherein the current skill request is a skill request sent by the application server based on a current skill gateway URL, and the current skill gateway URL is a skill gateway URL determined by the application server based on the current skill request and a pre-stored corresponding relationship between skills and the skill gateway URL;
determining a current skill server URL corresponding to the current skill request based on the current skill request and a corresponding relationship among a pre-stored skill, a skill gateway URL and a skill server URL;
forwarding the current skill request to a skill server based on the current skill server URL.
2. The unified access method to skill traffic of claim 1, wherein after forwarding the current skill request to a skill server, the method further comprises:
receiving a current control instruction sent by the skill server, wherein the current control instruction is obtained by the skill server based on the current skill request;
and forwarding the current control instruction to the application server.
3. The unified access method of skill traffic of claim 1, wherein before determining a current skill server URL corresponding to the current skill request based on the current skill request and a pre-stored correspondence relationship between skills, skill gateway URLs and skill server URLs, the method further comprises:
verifying whether the current skill request meets an authority verification condition;
and under the condition that the current skill request meets the permission verification condition, determining a current skill server URL corresponding to the current skill request based on the current skill request and a corresponding relation of a prestored skill, a skill gateway URL and a skill server URL.
4. A unified access method to skills traffic according to any of claims 1-3 characterized in that before receiving a current skill request sent by an application server, the method further comprises:
and for each skill, registering the information of the skill, generating a skill gateway URL of the skill, and sending the corresponding relation between the skill and the skill gateway URL of the skill to the application server.
5. The unified access method for skill traffic of claim 4, wherein generating the skill gateway URL of the skill comprises:
acquiring a skill server URL of the skill;
and replacing the information to be replaced in the skill server URL of the skill with the domain name of the skill gateway to obtain the skill gateway URL of the skill.
6. The unified access method to skills traffic of claim 5, wherein after generating the skills gateway URL for that skill, the method further comprises:
the skill, the skill gateway URL for the skill, and the skill server URL for the skill are stored.
7. The unified access method for skill traffic as claimed in claim 4, wherein the sending the correspondence between the skill and the skill gateway URL of the skill to the application server comprises:
and sending the corresponding relation between the skill and the skill gateway URL of the skill to a message platform so that an application server monitors the message platform and acquires the corresponding relation between the skill and the skill gateway URL of the skill.
8. A unified access device for skills traffic, applied to a skills gateway, the device comprising:
the skill management system comprises a first receiving module, a first module and a second receiving module, wherein the first receiving module is used for receiving a current skill request sent by an application server, the current skill request is a skill request sent by the application server based on a current skill gateway URL, and the current skill gateway URL is a skill gateway URL determined by the application server based on the current skill request and a corresponding relation between a prestored skill and a skill gateway URL;
the determining module is used for determining a current skill server URL corresponding to the current skill request based on the current skill request and the corresponding relationship among the pre-stored skill, a skill gateway URL and a skill server URL;
a first forwarding module for forwarding the current skill request to a skill server based on the current skill server URL.
9. A unified access system for skill traffic, the system comprising: the system comprises an application server, a skill gateway and a skill server;
the application server is used for determining a current skill gateway URL based on the current skill request and the corresponding relation between the pre-stored skill and the skill gateway URL, and sending the current skill request to the skill gateway based on the current skill gateway URL;
the skill gateway is configured to receive the current skill request sent by the application server, determine a current skill server URL corresponding to the current skill request based on the current skill request and a pre-stored correspondence between a skill, a skill gateway URL, and a skill server URL, and forward the current skill request to the skill server based on the current skill server URL;
and the skill server is used for receiving the current skill request sent by the skill gateway.
10. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
11. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202211295604.4A 2022-10-21 2022-10-21 Unified access method, device and system for skill flow and storage medium Pending CN115766863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211295604.4A CN115766863A (en) 2022-10-21 2022-10-21 Unified access method, device and system for skill flow and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211295604.4A CN115766863A (en) 2022-10-21 2022-10-21 Unified access method, device and system for skill flow and storage medium

Publications (1)

Publication Number Publication Date
CN115766863A true CN115766863A (en) 2023-03-07

Family

ID=85354041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211295604.4A Pending CN115766863A (en) 2022-10-21 2022-10-21 Unified access method, device and system for skill flow and storage medium

Country Status (1)

Country Link
CN (1) CN115766863A (en)

Similar Documents

Publication Publication Date Title
CN103532946B (en) Based on without password or the mthods, systems and devices of the arbitrarily network authorization of password
CN104618312B (en) A kind of remote login methods, devices and systems of M2M application
CN103532715B (en) Based on without password or the mthods, systems and devices of the arbitrarily network authorization of password
CN111510425B (en) Intelligent household equipment management method, device, equipment and storage medium
US20200100111A1 (en) Connection establishment method, device, and system
CN106471465A (en) Service enabler function
CN112134866B (en) Service access control method, device and system and computer readable storage medium
CN110231965B (en) Cloud device, application processing method and electronic device
CN115380256A (en) Equipment state monitoring method, device, equipment and storage medium
CN111371615A (en) Online server, updating method and system of operation and maintenance tool and readable storage medium
CN113194012B (en) Multi-agent management method, device, equipment and storage medium based on Internet of things
CN114531462A (en) Data processing method and equipment for Internet of things equipment
EP2606682A1 (en) Mediation server, control method therefor, communication device, control method therefor, communication system, and computer program
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
CN115766863A (en) Unified access method, device and system for skill flow and storage medium
CN110572857A (en) Network connection processing method and device
CN115687806A (en) Method and device for determining target equipment list, storage medium and electronic device
CN102761625A (en) Method and system for registering domain name for video monitoring terminal
CN115314245B (en) Authority management method, system, storage medium and electronic device
CN110830305A (en) Method and device for accessing wireless device to WIFI network, electronic device and storage medium
CN115174383A (en) Device updating method, storage medium and electronic device
CN115348048B (en) Secure communication establishment method and device, storage medium and electronic device
CN114697345B (en) Information updating method and device, storage medium and electronic device
CN115174296A (en) Equipment function access method, device, storage medium and electronic device
CN115694913A (en) Method and apparatus for transmitting device information, storage medium, and electronic apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination