CN106371905B - Application program operation method and device and server - Google Patents

Application program operation method and device and server Download PDF

Info

Publication number
CN106371905B
CN106371905B CN201610756398.0A CN201610756398A CN106371905B CN 106371905 B CN106371905 B CN 106371905B CN 201610756398 A CN201610756398 A CN 201610756398A CN 106371905 B CN106371905 B CN 106371905B
Authority
CN
China
Prior art keywords
application program
service
script file
service request
script
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.)
Expired - Fee Related
Application number
CN201610756398.0A
Other languages
Chinese (zh)
Other versions
CN106371905A (en
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.)
Quick-Witted Information Technology Co Ltd Of Beijing Singular Point
Original Assignee
Quick-Witted Information Technology Co Ltd Of Beijing Singular Point
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 Quick-Witted Information Technology Co Ltd Of Beijing Singular Point filed Critical Quick-Witted Information Technology Co Ltd Of Beijing Singular Point
Priority to CN201610756398.0A priority Critical patent/CN106371905B/en
Publication of CN106371905A publication Critical patent/CN106371905A/en
Application granted granted Critical
Publication of CN106371905B publication Critical patent/CN106371905B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides an application program operation method, an application program operation device and a server, wherein the method comprises the following steps: responding to a service request sent by a first application program, and acquiring a script file corresponding to the service request, wherein the script file comprises an operation action sequence required to be carried out when the service request is realized in a second application program; and sending the script file to the first application program so that the first application program operates the second application program according to the script file to realize the service request. The first application program is used as a service entrance, the corresponding script file is obtained from the server based on different service requests of the user, the second application program capable of responding to the service request is automatically operated based on the script file to meet the service requirement of the user, the processing efficiency of the service requirement of the user is improved, and the operation mode of the second application program is expanded by the mode that the first application program operates the second application program.

Description

application program operation method and device and server
Technical Field
The invention relates to the technical field of internet, in particular to an application program operation method, an application program operation device and a server.
Background
With the development of emerging technologies such as smart phones and networks, various application software or application programs (apps) are generally installed in smart phone terminals of people to meet different use requirements, such as applications for instant messaging, applications for taxi taking, applications for listening to music, applications for watching videos, and the like.
At present, generally, the way of using these applications is to manually operate, that is, according to the service requirement of the user, the user manually clicks the icon of the corresponding application to open the application, and then operates the application step by step until the service requirement of the user is completed.
The operation mode of the application program is completely based on manual operation of a user, the operation mode of the application program is single, meanwhile, the user needs to completely manually operate a certain application program to complete the service requirement of the application program, and the processing efficiency of the service requirement is low due to the fact that the user is limited by the familiarity degree of the application program, the operation speed and other factors.
Disclosure of Invention
the embodiment of the invention provides an application program operation method, an application program operation device and a server, which are used for overcoming the defects that in the prior art, a user can only manually operate an application program, so that the operation mode of the application program is single, and the processing efficiency of user service requirements is low.
The embodiment of the invention provides an application program operation method, which is applied to a server side and comprises the following steps:
Responding to a service request sent by a first application program, and acquiring a script file corresponding to the service request, wherein the script file comprises an operation action sequence required to be carried out when the service request is realized in a second application program;
and sending the script file to the first application program so that the first application program operates the second application program according to the script file to realize the service request.
the embodiment of the invention provides an application program operation method, which is applied to a first application program side and comprises the following steps:
Responding to a service request of a user, and acquiring a script file corresponding to the service request, wherein the script file comprises an operation action sequence required to be carried out when the service request is realized in a second application program;
And operating the second application program according to the script file to realize the service requirement.
An embodiment of the present invention provides a server, including:
The acquisition module is used for responding to a service request sent by a first application program and acquiring a script file corresponding to the service request, wherein the script file comprises an operation action sequence required to be carried out when the service request is realized in a second application program;
And the sending module is used for sending the script file to the first application program so that the first application program operates the second application program according to the script file to realize the service request.
an embodiment of the present invention provides an application operating apparatus, implemented in a first application, including:
The acquisition module is used for responding to a service request of a user and acquiring a script file corresponding to the service request, wherein the script file comprises an operation action sequence required to be carried out when the service request is realized in a second application program;
and the operation processing module is used for operating the second application program according to the script file to realize the service request.
according to the application program operation method, device and server provided by the embodiment of the invention, when the server receives a service request sent by a first application program, based on the service request, the server obtains a corresponding script file, wherein the script file comprises an operation action sequence required to be carried out when a service requirement corresponding to the service request is realized in a second application program. And then, the server sends the obtained script file to the first application program, and the first application program operates the second application program according to the script file, namely according to the operation action sequence contained in the script file, so as to realize the service request. In the scheme, each service request initiated by a user according to the requirement of the user can be received by a first application program, namely the first application program is used as a service inlet, the first application program obtains a corresponding script file from a server based on different service requests of the user, and automatically operates a second application program capable of responding to the service request based on the script file to meet the service requirement of the user, so that the operation of the second application program is not manually operated by the user, but is automatically operated and executed by the first application program based on the obtained script file, the operation modes of the different second application programs are expanded, meanwhile, the first application program automatically operates the second application program to realize the service request of the user, and the processing efficiency of the service requirement of the user is also improved.
drawings
In order to more clearly illustrate the embodiments of the present invention 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 that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
fig. 1 is a flowchart of a first embodiment of an application operating method according to the present invention;
fig. 2 is a flowchart of a second embodiment of an application operating method according to the present invention;
fig. 3 is a flowchart of a third embodiment of an application program operating method according to the present invention;
fig. 4 is a flowchart of a fourth embodiment of an application program operating method according to the present invention;
Fig. 5 is a schematic structural diagram of a first server according to an embodiment of the present invention;
Fig. 6 is a schematic structural diagram of a second server according to an embodiment of the present invention;
Fig. 7 is a schematic structural diagram of a third server according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a first embodiment of an application operating device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe XXX in embodiments of the present invention, these XXX should not be limited to these terms. These terms are only used to distinguish XXX from each other. For example, a first XXX may also be referred to as a second XXX, and similarly, a second XXX may also be referred to as a first XXX, without departing from the scope of embodiments of the present invention.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
fig. 1 is a flowchart of a first embodiment of an application program operating method according to an embodiment of the present invention, where the application program operating method provided in this embodiment may be executed by a server. As shown in fig. 1, the method comprises the steps of:
Step 101, responding to a service request sent by a first application program, obtaining a script file corresponding to the service request, wherein the script file comprises an operation action sequence required to be performed when the service request is realized in a second application program.
And 102, sending the script file to the first application program so that the first application program operates the second application program according to the script file to realize the service request.
In this embodiment, the first application program may also be referred to as first application software, a first client, and the like. The first application is installed in a terminal device of a user, such as a smart phone, a tablet computer, and the like. Meanwhile, a plurality of different second applications, such as WeChat, QQ, drip delivery, hundred degree takeaway, and the like, are installed in the terminal device of the user.
The relationship between the first application program and each second application program installed in the same terminal device, and the core idea of the embodiment of the present invention is: the first application program can be regarded as a uniform service entrance, and a user can trigger a service request of the user through the service entrance; each second application is an application that provides one or more functions, or otherwise can satisfy different service requests; the first application program can simulate the operation of a person to automatically operate the corresponding second application program based on the service request triggered by the user, so that the service request of the user is completed.
In this embodiment, in order to enable the first application to determine how to operate the second application to respond based on the service request triggered by the user, first, a corresponding relationship between different service requests or service requirements and the script file is established in advance. For example, a script file corresponding to a certain type of service request a is preset as a, and a script file corresponding to another type of service request B is preset as B.
The script file includes an operation action sequence required to be performed when the corresponding service requirement is realized in the second application program. That is, each script file contains at least two main contents, one is what the corresponding second application is, for example, a certain script file corresponds to a wechat program; the second is what operation should be performed in the corresponding second application program in order to complete the service request of the user, that is, what operation action the user performs if the user performs the manual operation, that is, the script file further includes an operation action sequence for completing the corresponding service request in the corresponding second application program.
Each script file may be generated in advance, for example, for a certain second application program, the second application program may provide a plurality of different functions, and optionally, the script file corresponding to each function may be generated in advance for an operation action that a user needs to perform on the second application program when using each function. Therefore, when the service request of the user needs to use a certain function of the second application program, the corresponding script file is acquired.
On the basis of the above description of the main idea of the present embodiment and the concept of the related script file, in practical applications, how a user can trigger a service request and if the service request is processed, the following procedures are performed:
Optionally, the manner in which the user triggers the service request may be triggered based on voice or based on user interface operation. In the voice-based mode, that is, the first application may provide a voice capture function, for example, after the first application is started, a voice button is displayed on the user interface, and the user may directly speak a service request by voice by pressing the button, for example, the user may speak: the speech of "playing music" is such that the first application learns of the user's service request based on the speech uttered by the user. The mode of operation based on the user interface may be that after the user starts the first application program, a selection interface including a plurality of service requests is displayed, the user may select one service request required by the user from the selection interface, and the first application program obtains the service request of the user based on the selection operation of the user.
after receiving a service request of a user, the first application program can directly forward the service request to the server side, and a preset corresponding relation between the service request and the script file can be stored in the server, so that the server inquires and obtains the script file corresponding to the service request and feeds the script file back to the first application program based on the received service request, and then the first application program operates the corresponding second application program according to the script file to realize the service request of the user.
the interaction between the first application program and the second application program can be realized based on the Accessibility (auxiliary function) of the operating system of the terminal device, that is, the first application program sequentially inputs an operation instruction to the second application program according to an operation action sequence contained in the script file, and simultaneously, a user interface after each operation action is executed by the second application program can also be acquired.
In this embodiment, each time the server receives a service request sent by the first application program, based on the service request, the server obtains a corresponding script file, where the script file includes an operation action sequence that needs to be performed when the service requirement corresponding to the service request is implemented in the second application program. And then, the server sends the obtained script file to the first application program, and the first application program operates the second application program according to the script file, namely according to the operation action sequence contained in the script file, so as to realize the service request. In the scheme, each service request initiated by a user according to the requirement of the user can be received by a first application program, namely the first application program is used as a service inlet, the first application program obtains a corresponding script file from a server based on different service requests of the user, and automatically operates a second application program capable of responding to the service request based on the script file to meet the service requirement of the user, so that the operation of the second application program is not manually operated by the user, but is automatically operated and executed by the first application program based on the obtained script file, the operation modes of the different second application programs are expanded, meanwhile, the first application program automatically operates the second application program to realize the service request of the user, and the processing efficiency of the service requirement of the user is also improved.
As mentioned above, the triggering of the service request by the user may be implemented by voice or by a user interface operation. When triggered by voice, the manual operation of the user can be further simplified, and in some cases, the user experience is better, for example, when the user is inconvenient to operate the mobile phone, so the detailed processing procedure of the voice-triggered service request will be described below with reference to the embodiments shown in fig. 2 and 3.
Fig. 2 is a flowchart of a second embodiment of an application program operating method according to the present invention, where an execution subject in this embodiment is still a server. As shown in fig. 2, the method comprises the steps of:
step 201, responding to the service request voice sent by the first application program, performing semantic analysis processing on the service request voice, and obtaining service requirement information, where the service requirement information includes a service type and a service execution parameter.
step 202, determining a script file corresponding to the service type, where the script file includes an operation action sequence that needs to be performed when the service request is implemented in the second application program.
Step 203, sending the script file and the service execution parameter to the first application program, so that the first application program operates the second application program according to the script file and the service execution parameter to realize the service request.
For step 201, performing semantic analysis on the service request voice to obtain service requirement information corresponding to the service request, which may be implemented as follows:
carrying out voice recognition on the service request voice to obtain corresponding service request characters;
Carrying out similarity analysis on the service request words and a plurality of preset word example samples, and determining target word example samples with similarity greater than a preset threshold value, wherein each word example sample is a sample reflecting an expression mode of a service requirement;
And acquiring the service type according to the target text example sample, and extracting service execution parameters from the service request text according to the target text example sample.
In the above implementation manner, the voice recognition is performed on the service request voice, which is equivalent to converting the service request voice sent by the user into corresponding service request text, where the voice recognition manner may be implemented by using an existing manner, and is not described in detail in this embodiment.
in practical applications, users may have different expressions for the same service requirement, for example: the song put on zhou jieren and the song listen to zhou jieren express the same meaning, but in different ways. Although the two expressions in the above examples are not exactly the same, they are close to each other, and in practical applications, there may be cases where the same service needs are expressed but the expressions are distinct. Therefore, in order to accurately understand the purpose of the service request of the user, in this embodiment, one or more text example samples may be preset in the server for each service requirement. When a service requirement corresponds to a plurality of different text sample samples, each text sample is an expression mode of the service requirement.
therefore, the target text sample with similarity greater than the preset threshold value to the service request text can be determined based on similarity analysis of the service request text obtained through voice recognition and each text sample corresponding to each service requirement stored in the server. The principle of similarity analysis can be implemented by taking part in the existing method for measuring whether two sentences are similar, and mainly relates to the processes of word segmentation processing, creating the context of each word segmentation, comparing the coincidence probability between the contexts of the words of the two sentences and the like, and the detailed process is not repeated in this embodiment.
It should be noted that, a form of presentation of a service requirement in the server may be a service type, and optionally, may also correspond to related parameters and parameter types. In practical application, for a service requirement, corresponding service requirement information may be generated and stored in advance in a server, where the service requirement information may generally include a service type and a service execution parameter. The service requirement information may be a structured representation, such as: [ service type, service execution parameter, text sample 1, text sample 2 ]. Wherein the service type reflects which type of requirement the corresponding service requirement is, such as music, video, messaging, taxi, etc. The service execution parameter refers to a parameter required for realizing the service requirement, that is, an input parameter required for operating a second application program when the service requirement is realized by the second application program in the following.
it can be understood that, for the same service requirement, the service execution parameter corresponding to the service requirement comes from each literal sample, and is the same, that is, the multiple literal samples corresponding to the service requirement contain the same service execution parameter. The service execution parameters in the above example may be default in some application scenarios, for example, when the service requirement of the user is to play music, the service execution parameters may be default.
the above-mentioned structural expression is only an example, and may also be expressed in other ways, such as: [ service type, service execution parameter ]: literal instance sample 1, literal instance sample 2, meaning that this certain service requirement, expressed in terms of service type and service execution parameter, may correspond to literal instance sample 1 and literal instance sample 2.
As can be seen from the above description, in practical applications, structured service requirement information corresponding to each service requirement may be generated and stored in the server in advance for a possible service requirement of a user, so that, after the server obtains the service request text through voice recognition, similarity analysis may be performed on the service request text and text example samples corresponding to each service requirement information, so as to obtain similarity between each text example sample and the service request text, and then a text example sample with the similarity greater than a preset threshold is selected as a target text example sample. The target text sample corresponds to corresponding service requirement information, so that the target text sample is called target service requirement information for convenient differentiation, and the target service requirement information contains a service type, so that the service type can be used as a service type corresponding to service request voice triggered by a user, namely the service type corresponding to the actual service requirement of the user.
In addition, for the service execution parameters, based on the similarity analysis result between the service request text and the target text sample, each word in the service request text and each word in the target text sample can be correspondingly equivalent, so that based on the correspondence between the target text sample and the service execution parameters in the target service requirement information, the service execution parameters corresponding to the service requirement actually triggered by the user can be extracted from the service request text.
and the service type and the service execution parameter which are obtained form service demand information corresponding to the service request actually triggered by the user. Thus, based on the above-described determination process of the service type and the service execution parameter, the server also determines what the service demand actually required by the user is.
For step 202, a corresponding relationship between the service requirement information and the script file may be pre-established in the server, and specifically, the corresponding relationship is mainly embodied as a correspondence between a service type in the service requirement information and the script file. Therefore, after the service requirement information containing the service type and the service execution parameter is obtained, the corresponding script file can be matched and determined based on the service type and the corresponding relation.
and then, the server sends the obtained script file and the service execution parameters to the first application program, so that the first application program operates the second application program according to the script file and the service execution parameters to realize a service request, namely the first application program operates the second application program according to the script file, and in the operation process, based on the monitoring of an execution result interface of the second application program, corresponding service execution parameters are input in a corresponding interface until the execution of the script file is completed.
In addition, it should be noted that, when determining a target text example sample corresponding to a service request text based on similarity between the service request text and each text example sample, similarity between the same service request text and at least two text example samples may be greater than a preset threshold due to similarity between expression manners of different text example samples, and at this time, in order to ensure validity and accuracy of service request processing, processing may be performed in the following manner:
If the number of the target text sample with the similarity larger than the preset threshold value to the service request text is at least two, determining preset parameter types corresponding to the at least two target text sample respectively;
Extracting the service execution parameters from the service requirement words according to at least two target word example samples;
Inquiring a preset knowledge base corresponding to each preset parameter type, and determining a target preset parameter type corresponding to a target preset knowledge base with service execution parameters;
And acquiring the service type according to the target text example sample corresponding to the target preset parameter type.
In this embodiment, when a text sample is preset, that is, when service requirement information including the text sample is constructed, in addition to defining a service type corresponding to the text sample and a service execution parameter included in the text sample, a parameter type corresponding to the service execution parameter may be defined.
it can be understood that, in the text example samples corresponding to different service requirement information or different service types, the parameter types corresponding to the service execution parameters are different. That is, even though the two literal sample samples may have relatively similar grammatical structures, the parameter types of the service execution parameters in the two literal sample samples are different.
For example, two text sample samples, namely, the out-of-thousand-mile service and the wisdom-weichi-mountain service, are played, and the out-of-thousand-mile service and the wisdom-weichi-mountain service are two service execution parameters respectively. Although the two text sample examples have similar syntactic structures, the parameter types of the two service execution parameters are different, one is the name of a song and one is the name of a movie.
Therefore, assuming that the service request text triggered by the user is playing western journey, and the similarity analysis result shows that the similarities with the two text example samples of the part outside the kilometer being played and the part outside the humilis wisdom being played are both greater than the preset threshold, it is determined that the part outside the kilometer being played and the part outside the humilis wisdom being played are two target text example samples. Thus, the service execution parameters in the two target text sample correspond to the parameter types of song name and movie title, respectively. Meanwhile, according to the similarity analysis process, the Western-style speech is determined to be equivalent to the Western-style speech except the thousand miles and the Wi' -Shake wisdom (equivalent grammatically), and therefore the service execution parameter Western-style speech is extracted from the Western-style speech.
after determining that the parameter types corresponding to the service execution parameters in the two target text sample samples are the song name and the movie name, querying preset knowledge bases corresponding to the two parameter types respectively, and determining the target preset parameter type corresponding to the target preset knowledge base of the service execution parameter-grand-telephone western-game in the service request text.
that is, in this embodiment, a plurality of knowledge bases are pre-established in the server, and each knowledge base corresponds to one parameter type, such as a song knowledge base, a movie and television play knowledge base, an singer knowledge base, and the like. After two parameter types of song names and movie and television series names are obtained, knowledge bases corresponding to the two parameter types are respectively inquired, which knowledge base stores the western-style mobile phone is seen, the knowledge base storing the western-style mobile phone is determined as a target knowledge base, the parameter type corresponding to the target knowledge base is the target parameter type, therefore, the target text sample corresponding to the target parameter type is the selected target text sample corresponding to the service request text, and the service type corresponding to the target text sample is the service type corresponding to the service request text.
In this embodiment, the user may trigger the service request voice to the first application program in a voice manner, so that the server determines actual service requirement information of the user based on recognition and semantic analysis processing of the service request voice, and then determines and feeds back the corresponding script file to the first application program according to a preset correspondence between different service requirement information and different script files, so that the first application program automatically operates a corresponding second application program based on the script file, the service requirement of the user is completed, the processing efficiency of the service requirement is improved, and the user experience is improved.
similar to the foregoing embodiments, there may be a plurality of text sample samples which may be similar to the text of the service request, and when determining the script file, there may be a plurality of script files which may be used to fulfill the service requirement of the user, for example, for a service request for playing music provided by the user, two music applications may be installed in the terminal device of the user, and both of the two music applications may be used to fulfill the service request. At this point, it should be possible if a script file is selected for use by the first application.
Therefore, in the embodiment of the present invention, after the service type corresponding to the service request of the user is determined, if there are at least two script files corresponding to the service type, one script file is selected from the at least two script files according to a preset recommendation policy, and optionally, the scheme processing in the embodiment shown in fig. 3 may be referred to.
Fig. 3 is a flowchart of a third embodiment of an operating method of an application program according to an embodiment of the present invention, and as shown in fig. 3, a process of selecting a script file from at least two script files may include the following steps:
Step 301, if the second application programs respectively corresponding to the at least two script files are different, acquiring installation information of the terminal device corresponding to the first application program to each second application program.
Step 302, selecting a script file from at least two script files according to the installation information and a preset application program recommendation strategy.
Since the script file represents an operation action sequence required to implement a certain service requirement of a corresponding service type in a certain second application program, the script file corresponds to the second application program. Thus, in practical applications, optionally, a corresponding relationship between the service type, the identifier of the second application program, and the script file may be established in the server. Wherein the correspondence between the service type and the second application identification and the script file may be one-to-many. For example, the service type a may correspond to the second application a1 and the script file b1, and may also correspond to the second application a2 and the script file b 2.
therefore, when a corresponding script file is determined according to the service type a, there are a script file b1 and a script file b2 corresponding thereto, and the two script files respectively correspond to different second applications: second application a1, second application a 2.
Furthermore, the server selects one script file from the script file b1 and the script file b2 according to the installation information of the second application a1 and the second application a2 and a preset application recommendation policy of the terminal device corresponding to the first application which sends the service request.
it can be understood that the terminal device may communicate the second application installed by itself to the server through information interaction, and the server stores therein installation information of the second applications of the plurality of terminal devices. The server may determine the priority of the second application program of one type based on the configuration of the user, or the server may determine the priority of each second application program based on the installation amount of different second application programs of the same type in the plurality of terminal devices. The priority setting manner of each second application program of the same class is not limited to this.
optionally, the server selects one script file from the at least two script files according to the installation information and a preset application program recommendation policy, and may be implemented in the following manner:
if the installation information indicates that at least two second application programs of the second application programs are installed in the terminal equipment, selecting a script file corresponding to the second application program with the highest priority from the at least two script files according to the preset application program priority;
If the number of the script files corresponding to the second application program with the highest priority is at least two, acquiring the installation version number of the second application program with the highest priority in the terminal equipment;
And selecting the script file with the corresponding version number matched with the installation version number from the at least two script files corresponding to the second application program with the highest priority.
Still by way of example, if the server finds that the terminal device has the second application a1 and the second application a2 installed at the same time, and the second application a1 has a higher priority than the second application a2, the script file targeted by the script file b1 corresponding to the second application a1 is determined and fed back to the first application.
In practical applications, although the second application program is continuously developed and developed, the second application program is continuously updated and upgraded, so that the same second application program may have a plurality of different version numbers, and different versions of the same second application program may be installed in terminal devices of different users. Therefore, optionally, the server may further store a corresponding relationship among the service type, the second application identifier, the version number of the second application, and the script file, in addition to the corresponding relationship among the service type, the second application identifier, and the script file.
therefore, after a certain second application z1 is determined according to the priority of the second application, it is assumed that the second application z1 corresponds to two versions, i.e., a version number 1.0 and a version number 2.0, and the two versions correspond to script files j1 and j2, respectively. It is determined that the number of script files corresponding to the second application z1 of the highest priority is at least two, and the server may determine the installation version number of the second application z1, assuming the version number is 2.0, based on the installation situation information of the second application z1 by the terminal device saved in advance locally. Further, a script file j2 whose corresponding version number matches the installation version number is selected from the two script files j1 and j2 based on the installation version number.
the above-described method of selecting one script file from among the plurality of script files is to select the script file based on the priority and version information of the second application program when the second application programs corresponding to the plurality of script files are different.
Optionally, in an actual application, the script file corresponding to the service type may correspond to the same second application program, but correspond to a different version number of the second application program. Therefore, for this case, the selecting one script file from at least two script files according to the preset recommendation policy is implemented as follows:
if the at least two script files correspond to the same second application program, acquiring an installation version number of the second application program in the terminal equipment corresponding to the first application program; and selecting the script file with the corresponding version number matched with the installation version number from the at least two script files.
in this embodiment, the server may select, for the user, a script file corresponding to the second application program that the user needs to complete the user service based on the obtained installation information (including whether to install the second application program, an installed version number) of each second application program in the terminal device and a certain recommendation policy, so as to provide the first application program with the script file, and improve the intelligent degree of service requirement processing.
Fig. 4 is a flowchart of a fourth embodiment of an application program operation method according to an embodiment of the present invention, where an execution subject of the method in this embodiment is a first application program on a terminal device side, as shown in fig. 4, the method includes the following steps:
step 401, in response to the service request of the user, obtaining a script file corresponding to the service request, where the script file includes an operation action sequence that needs to be performed when the service request is implemented in the second application program.
And step 402, operating the second application program according to the script file to realize the service request.
In the embodiment, the description is performed from the perspective of the first application program, and for the acquisition of the script file, optionally, the script file may be acquired from a server in the embodiment shown in fig. 1. It should be noted that, in an alternative implementation manner, the first application side stores the corresponding relationship between the service request and the script file, so that the first application may obtain the corresponding script file without interacting with the server.
optionally, when the first application obtains the script file through the server, the interaction with the server mainly includes:
Receiving service request voice sent by a user, and forwarding the service request voice to a server so as to enable the server to perform semantic analysis processing on the service request voice and obtain service requirement information, wherein the service requirement information comprises a service type and a service execution parameter, and the service type is used for enabling the server to obtain a script file;
receiving a script file and service execution parameters fed back by a server;
and operating the second application program according to the script file and the service execution parameter to realize the service request.
The detailed processing procedure of the server may refer to the description of the above embodiments, which is not described in detail in this embodiment.
fig. 5 is a schematic structural diagram of a server according to a first embodiment of the present invention, and as shown in fig. 5, the server includes: the device comprises an acquisition module 11 and a sending module 12.
the obtaining module 11 is configured to, in response to a service request sent by a first application, obtain a script file corresponding to the service request, where the script file includes an operation action sequence that needs to be performed when the service request is implemented in a second application.
a sending module 12, configured to send the script file to the first application program, so that the first application program operates the second application program according to the script file, and the service request is realized.
the server shown in fig. 5 may execute the method in the embodiment shown in fig. 1, and the implementation principle and the technical effect refer to the embodiment shown in fig. 1 and are not described again.
fig. 6 is a schematic structural diagram of a second server embodiment provided in the embodiment of the present invention, and as shown in fig. 6, on the basis of the embodiment shown in fig. 5, the obtaining module 11 includes: a semantic processing sub-module 111 and a determining sub-module 112.
the semantic processing sub-module 111 is configured to, in response to a service request voice sent by a first application, perform semantic analysis on the service request voice to obtain service requirement information, where the service requirement information includes a service type and a service execution parameter.
A determining sub-module 112, configured to determine the script file corresponding to the service type.
the sending module 12 is specifically configured to: and sending the script file and the service execution parameters to the first application program so that the first application program operates the second application program according to the script file and the service execution parameters to realize the service request.
Optionally, the semantic processing sub-module 111 includes: a voice recognition unit 1111, a similarity analysis unit 1112, and a first acquisition unit 1113.
the voice recognition unit 1111 is configured to perform voice recognition on the service request voice to obtain a corresponding service request text.
A similarity analysis unit 1112, configured to perform similarity analysis on the service request text and a plurality of text sample samples set in advance, and determine a target text sample with similarity greater than a preset threshold to the service request text, where each text sample is a sample reflecting an expression manner of a service requirement.
A first obtaining unit 1113, configured to obtain the service type according to the target text sample, and extract the service execution parameter from the service request text according to the target text sample.
optionally, the first obtaining unit 1113 is specifically configured to:
if the number of the target text example samples is at least two, determining preset parameter types corresponding to the at least two target text example samples respectively; extracting the service execution parameters from the service request words according to the at least two target word example samples respectively; querying preset knowledge bases corresponding to the preset parameter types respectively, and determining a target preset parameter type corresponding to a target preset knowledge base with the service execution parameter; and acquiring the service type according to the target text example sample corresponding to the target preset parameter type.
the server shown in fig. 6 may execute the method in the embodiment shown in fig. 2, and the implementation principle and the technical effect refer to the embodiment shown in fig. 2 and are not described again.
fig. 7 is a schematic structural diagram of a third embodiment of a server according to an embodiment of the present invention, as shown in fig. 7, based on the embodiment shown in fig. 5 or fig. 6, the server further includes: script selection module 21
And the script selection module 21 is configured to select one script file from the at least two script files according to a preset recommendation policy if the number of the script files corresponding to the service type is at least two.
Optionally, the script selecting module 21 includes: a first acquisition submodule 211 and a first selection submodule 212.
the first obtaining sub-module 211 is configured to obtain, if the second application programs respectively corresponding to the at least two script files are different, installation information of the terminal device corresponding to the first application program to each second application program.
and the first selecting submodule 212 is configured to select one script file from the at least two script files according to the installation information and a preset application program recommendation policy.
Optionally, the first selection sub-module 212 includes: a first selection unit 2121, a second acquisition unit 2122, and a second selection unit 2123.
A first selecting unit 2121, configured to select, if the installation information indicates that at least two second applications in the second applications are installed in the terminal device, a script file corresponding to the second application with the highest priority from the at least two script files according to a preset application priority.
a second obtaining unit 2122, configured to obtain, if the number of the script files corresponding to the second application program with the highest priority is at least two, an installation version number of the second application program with the highest priority in the terminal device.
A second selecting unit 2123, configured to select, from the at least two script files corresponding to the second application program with the highest priority, a script file whose corresponding version number matches the installation version number.
Optionally, the first selection sub-module 212 includes: a third acquiring unit 2124 and a third selecting unit 2125.
A third obtaining unit 2124, configured to obtain, if the at least two script files all correspond to a same second application program, an installation version number of the second application program in the terminal device corresponding to the first application program;
a third selecting unit 2125, configured to select a script file, of which a corresponding version number matches the installation version number, from the at least two script files.
the server shown in fig. 7 may execute the method in the embodiment shown in fig. 3, and the implementation principle and the technical effect refer to the embodiment shown in fig. 3 and are not described again.
Fig. 8 is a schematic structural diagram of a first embodiment of an application operating device according to an embodiment of the present invention, where the application operating device is implemented in a first application, as shown in fig. 8, and includes: an acquisition module 31 and an operation processing module 32.
The obtaining module 31 is configured to, in response to a service request of a user, obtain a script file corresponding to the service request, where the script file includes an operation action sequence that needs to be performed when the service request is implemented in a second application program.
and the operation processing module 32 is configured to operate the second application program according to the script file to implement the service request.
Optionally, the obtaining module 31 includes: a receiving submodule 311 and a sending submodule 312.
The receiving submodule 311 is configured to receive a service request voice sent by a user.
The sending submodule 312 is configured to forward the service request voice to a server, so that the server performs semantic analysis on the service request voice to obtain service requirement information, where the service requirement information includes a service type and a service execution parameter, and the service type is used to enable the server to obtain the script file.
The receiving sub-module 311 is further configured to: and receiving the script file and the service execution parameters fed back by the server.
The operation processing module 32 is specifically configured to: and operating the second application program according to the script file and the service execution parameter to realize the service request.
The apparatus shown in fig. 8 may execute the method of the embodiment shown in fig. 4, and the implementation principle and the technical effect refer to the embodiment shown in fig. 4 and are not described again.
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 place, or may be distributed on a plurality of 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 can be implemented by adding a necessary general hardware platform, and certainly, the embodiments can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., which includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will 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 of the embodiments of the present invention.

Claims (12)

1. An application operating method, comprising:
responding to a service request sent by a first application program, and acquiring a script file corresponding to the service request, wherein the script file comprises an operation action sequence required to be carried out when the service request is realized in a second application program;
Sending the script file to the first application program so that the first application program operates the second application program according to the script file to realize the service request;
The obtaining of the script file corresponding to the service request in response to the service request sent by the first application program includes:
Responding to service request voice sent by a first application program, performing semantic analysis processing on the service request voice, and obtaining service requirement information, wherein the service requirement information comprises a service type and a service execution parameter;
Determining the script file corresponding to the service type;
After determining the script file corresponding to the service type, the method further includes:
If the number of the script files corresponding to the service types is at least two, selecting one script file from the at least two script files according to a preset recommendation strategy;
The selecting one script file from the at least two script files according to a preset recommendation strategy comprises the following steps:
If the at least two script files correspond to the same second application program, acquiring the installation version number of the second application program in the terminal equipment corresponding to the first application program;
and selecting the script file with the corresponding version number matched with the installation version number from the at least two script files.
2. The method of claim 1, wherein sending the script file to the first application program to enable the first application program to operate a second application program according to the script file to implement the service request comprises:
and sending the script file and the service execution parameters to the first application program so that the first application program operates the second application program according to the script file and the service execution parameters to realize the service request.
3. The method according to claim 2, wherein the performing semantic analysis processing on the service request speech to obtain the service requirement information comprises:
Carrying out voice recognition on the service request voice to obtain corresponding service request characters;
carrying out similarity analysis on the service request words and a plurality of preset word example samples, and determining target word example samples with similarity greater than a preset threshold value, wherein each word example sample is a sample reflecting an expression mode of a service requirement;
and acquiring the service type according to the target text sample, and extracting the service execution parameter from the service request text according to the target text sample.
4. The method of claim 3, wherein obtaining the service type according to the target text example sample and extracting the service execution parameter from the service request text according to the target text example sample comprises:
If the number of the target text example samples is at least two, determining preset parameter types corresponding to the at least two target text example samples respectively;
Extracting the service execution parameters from the service request words according to the at least two target word example samples respectively;
Querying preset knowledge bases corresponding to the preset parameter types respectively, and determining a target preset parameter type corresponding to a target preset knowledge base with the service execution parameter;
and acquiring the service type according to the target text example sample corresponding to the target preset parameter type.
5. The method according to claim 1, wherein the selecting one script file from the at least two script files according to a preset recommendation policy comprises:
If the second application programs respectively corresponding to the at least two script files are different, acquiring installation information of the terminal equipment corresponding to the first application program to each second application program;
And selecting one script file from the at least two script files according to the installation information and a preset application program recommendation strategy.
6. The method of claim 5, wherein selecting one script file from the at least two script files according to the installation information and a preset application recommendation policy comprises:
if the installation information indicates that at least two second application programs of the second application programs are installed in the terminal equipment, selecting a script file corresponding to the second application program with the highest priority from the at least two script files according to the preset application program priority;
If the number of the script files corresponding to the second application program with the highest priority is at least two, acquiring the installation version number of the second application program with the highest priority in the terminal equipment;
And selecting a script file with a corresponding version number matched with the installation version number from the at least two script files corresponding to the second application program with the highest priority.
7. a server, comprising:
The acquisition module is used for responding to a service request sent by a first application program and acquiring a script file corresponding to the service request, wherein the script file comprises an operation action sequence required to be carried out when the service request is realized in a second application program;
the sending module is used for sending the script file to the first application program so that the first application program operates the second application program according to the script file to realize the service request;
the acquisition module includes:
the semantic processing submodule is used for responding to service request voice sent by a first application program, performing semantic analysis processing on the service request voice and obtaining service requirement information, wherein the service requirement information comprises a service type and service execution parameters;
The determining submodule is used for determining the script file corresponding to the service type;
further comprising: the script selection module is used for selecting one script file from the at least two script files according to a preset recommendation strategy if the number of the script files corresponding to the service type is at least two;
The script selection module comprises: a first selection submodule; the first selection submodule includes:
a third obtaining unit, configured to obtain an installation version number of a second application program in a terminal device corresponding to a first application program if the at least two script files both correspond to a same second application program;
And the third selecting unit is used for selecting the script file of which the corresponding version number is matched with the installation version number from the at least two script files.
8. The server according to claim 7,
the sending module is specifically configured to: and sending the script file and the service execution parameters to the first application program so that the first application program operates the second application program according to the script file and the service execution parameters to realize the service request.
9. the server according to claim 8, wherein the semantic processing sub-module comprises:
The voice recognition unit is used for carrying out voice recognition on the service request voice to obtain corresponding service request characters;
The similarity analysis unit is used for carrying out similarity analysis on the service request words and a plurality of preset word example samples and determining target word example samples with similarity larger than a preset threshold value, wherein each word example sample is a sample reflecting an expression mode of a service requirement;
and the first acquisition unit is used for acquiring the service type according to the target word example sample and extracting the service execution parameter from the service request word according to the target word example sample.
10. The server according to claim 9, wherein the first obtaining unit is specifically configured to:
If the number of the target text example samples is at least two, determining preset parameter types corresponding to the at least two target text example samples respectively;
Extracting the service execution parameters from the service request words according to the at least two target word example samples respectively;
Querying preset knowledge bases corresponding to the preset parameter types respectively, and determining a target preset parameter type corresponding to a target preset knowledge base with the service execution parameter;
and acquiring the service type according to the target text example sample corresponding to the target preset parameter type.
11. the server according to claim 7, wherein the script selection module comprises:
the first obtaining submodule is used for obtaining the installation information of the terminal equipment corresponding to the first application program to each second application program if the second application programs respectively corresponding to the at least two script files are different;
And the first selection submodule is used for selecting one script file from the at least two script files according to the installation information and a preset application program recommendation strategy.
12. the server according to claim 11, wherein the first selection submodule comprises:
a first selecting unit, configured to select, if the installation information indicates that at least two second applications in the second applications are installed in the terminal device, a script file corresponding to a second application with a highest priority from the at least two script files according to a preset application priority;
A second obtaining unit, configured to obtain an installation version number of the highest-priority second application program in the terminal device if the number of the script files corresponding to the highest-priority second application program is at least two;
And the second selection unit is used for selecting the script file of which the corresponding version number is matched with the installation version number from the at least two script files corresponding to the second application program with the highest priority.
CN201610756398.0A 2016-08-29 2016-08-29 Application program operation method and device and server Expired - Fee Related CN106371905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610756398.0A CN106371905B (en) 2016-08-29 2016-08-29 Application program operation method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610756398.0A CN106371905B (en) 2016-08-29 2016-08-29 Application program operation method and device and server

Publications (2)

Publication Number Publication Date
CN106371905A CN106371905A (en) 2017-02-01
CN106371905B true CN106371905B (en) 2019-12-17

Family

ID=57901231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610756398.0A Expired - Fee Related CN106371905B (en) 2016-08-29 2016-08-29 Application program operation method and device and server

Country Status (1)

Country Link
CN (1) CN106371905B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110610089B (en) * 2019-08-16 2023-02-28 创新先进技术有限公司 User behavior simulation method and device and computer equipment
CN111192578B (en) * 2019-12-28 2023-04-07 惠州Tcl移动通信有限公司 Application control method and device, storage medium and electronic equipment
CN113032042A (en) * 2021-03-17 2021-06-25 中国工商银行股份有限公司 Target file processing method and device and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102510426A (en) * 2011-11-29 2012-06-20 安徽科大讯飞信息科技股份有限公司 Personal assistant application access method and system
CN102520788A (en) * 2011-11-16 2012-06-27 歌尔声学股份有限公司 Voice identification control method
CN104486417A (en) * 2014-12-16 2015-04-01 上海斐讯数据通信技术有限公司 Account security management system and method based on cloud service
CN104599669A (en) * 2014-12-31 2015-05-06 乐视致新电子科技(天津)有限公司 Voice control method and device
CN105653709A (en) * 2015-12-30 2016-06-08 广东顺德中山大学卡内基梅隆大学国际联合研究院 Intelligent home voice text control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520788A (en) * 2011-11-16 2012-06-27 歌尔声学股份有限公司 Voice identification control method
CN102510426A (en) * 2011-11-29 2012-06-20 安徽科大讯飞信息科技股份有限公司 Personal assistant application access method and system
CN104486417A (en) * 2014-12-16 2015-04-01 上海斐讯数据通信技术有限公司 Account security management system and method based on cloud service
CN104599669A (en) * 2014-12-31 2015-05-06 乐视致新电子科技(天津)有限公司 Voice control method and device
CN105653709A (en) * 2015-12-30 2016-06-08 广东顺德中山大学卡内基梅隆大学国际联合研究院 Intelligent home voice text control method

Also Published As

Publication number Publication date
CN106371905A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
US20160275952A1 (en) Communicating metadata that identifies a current speaker
US9734828B2 (en) Method and apparatus for detecting user ID changes
CN112700769B (en) Semantic understanding method, semantic understanding device, semantic understanding equipment and computer readable storage medium
CN111949240A (en) Interaction method, storage medium, service program, and device
CN109979450B (en) Information processing method and device and electronic equipment
CN106371905B (en) Application program operation method and device and server
WO2015192447A1 (en) Method, device and terminal for data processing
JP2014513828A (en) Automatic conversation support
KR102198424B1 (en) Method for managing information of voice call recording and computer program for the same
CN110418181B (en) Service processing method and device for smart television, smart device and storage medium
WO2015188454A1 (en) Method and device for quickly accessing ivr menu
KR101379405B1 (en) Method of processing voice communication and mobile terminal performing the same
CN111063348A (en) Information processing method, device and equipment and computer storage medium
US20210065708A1 (en) Information processing apparatus, information processing system, information processing method, and program
CN106485520B (en) Cross-channel communication control method and server
EP2913822B1 (en) Speaker recognition
CN109727597A (en) The interaction householder method and device of voice messaging
CN111225115B (en) Information providing method and device
US10291766B2 (en) Information processing method and apparatus
CN109388695B (en) User intention recognition method, apparatus and computer-readable storage medium
WO2022213943A1 (en) Message sending method, message sending apparatus, electronic device, and storage medium
CN111158838B (en) Information processing method and device
CN115134466A (en) Intention recognition method and device and electronic equipment
CN113852835A (en) Live broadcast audio processing method and device, electronic equipment and storage medium
CN112632241A (en) Method, device, equipment and computer readable medium for intelligent conversation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191217

CF01 Termination of patent right due to non-payment of annual fee