CN115016693A - Method, device and equipment for constructing application and computer readable storage medium - Google Patents

Method, device and equipment for constructing application and computer readable storage medium Download PDF

Info

Publication number
CN115016693A
CN115016693A CN202110737953.6A CN202110737953A CN115016693A CN 115016693 A CN115016693 A CN 115016693A CN 202110737953 A CN202110737953 A CN 202110737953A CN 115016693 A CN115016693 A CN 115016693A
Authority
CN
China
Prior art keywords
command
application
configuration message
workflow configuration
session interface
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
CN202110737953.6A
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202110737953.6A priority Critical patent/CN115016693A/en
Publication of CN115016693A publication Critical patent/CN115016693A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The present disclosure relates to a method, an apparatus, an electronic device, and a computer-readable storage medium for constructing an application by acquiring at least one workflow configuration message at a session interface, and constructing the application based on the workflow configuration message. The workflow configuration message comprises commands, namely the workflow configuration message can be obtained by flexibly combining the commands, so that the application construction mode is more flexible, and the application is constructed in a chat mode in a session interface, so that the convenience and the interestingness of the construction of the application are improved.

Description

Method, device and equipment for constructing application and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer communication technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for constructing an application.
Background
With the rapid development of computer communication technology, people have more and more extensive application requirements, more and more comprehensive functions needing application coverage, and higher and more high requirements on the development efficiency of applications.
In the prior art, some basic functions are packaged into a graphical basic module, and an application is constructed in a building platform in an interactive mode of dragging the basic module.
However, with the prior art approach, the threshold for building applications is low, but the approach for building applications is not flexible enough.
Disclosure of Invention
To solve the technical problem or at least partially solve the technical problem, the present disclosure provides a method, an apparatus, a device, and a computer-readable storage medium for building an application.
In a first aspect, an embodiment of the present disclosure provides a method for constructing an application, including:
acquiring at least one workflow configuration message through a session interface, wherein the workflow configuration message comprises at least one command;
building an application based on the at least one workflow configuration message.
Optionally, the method further includes:
and in response to receiving the operation of triggering the application, running the application and acquiring a running result.
Optionally, the receiving the operation of triggering the application includes:
acquiring a message for running the application through the session interface;
alternatively, the first and second electrodes may be,
and receiving an operation of clicking the icon of the application.
Optionally, the conversation interface is a conversation interface of a specific conversation robot.
Optionally, the obtaining at least one workflow configuration message through the session interface includes:
acquiring at least one workflow configuration message input through a text input box on the session interface;
or when a voice input control on the conversation interface is activated, acquiring an input voice signal, and analyzing the voice signal to acquire at least one workflow configuration message;
or when a gesture input control on the conversation interface is activated, acquiring an input gesture signal, and analyzing the gesture signal to acquire at least one workflow configuration message.
Optionally, the at least one command includes: one or more of the following:
an atomic command;
a first envelope command; the first packaging command is a command obtained by packaging at least one atomic command;
a second envelope command; the second encapsulated command is a command obtained by encapsulating at least one first encapsulated command, or a command obtained by encapsulating at least one atomic command and at least one first encapsulated command.
Optionally, the atomic command satisfies the following rule:
the downstream atomic command may use the output result of the immediately upstream atomic command;
data can be written into the global dictionary object;
data that can use global dictionary objects;
data can be durably written;
readable persistent data;
other commands may be encapsulated.
Optionally, the atomic command includes at least one of:
a command for sending a hypertext transfer protocol, HTTP, request;
the command is used for carrying out JSON query and recombination;
a command for returning the input content;
a command for writing data into the global dictionary object;
commands for defining and viewing persistent data;
a command for executing a piped command;
a command for setting a timing task;
a command for sending a message in the instant messaging software;
a command to read or write an online form in instant messaging software;
the system is used for converting the user identifier into an open identifier in the instant communication client;
commands defining command names.
Optionally, the method further includes:
and acquiring a query instruction through the session interface, and querying workflow configuration messages respectively corresponding to all applications established through the session interface based on the query instruction.
Optionally, the method further includes:
and acquiring a message for configuring the operation authority of the application through the session interface, wherein the operation authority is used for limiting a user for operating the application.
Optionally, the method further includes:
and acquiring a modification instruction through the session interface, and modifying the workflow configuration message of the constructed application according to the modification instruction.
Optionally, the message for running the application includes: the name of the application.
Optionally, the at least one command includes: a command for defining an application name, a command for transmitting a data source address, and a command for configuring a display format of target data; wherein the command to send a data source address is used to obtain target data from the data source address; the command for configuring the display format of the target data is used for controlling the display format of the target data in the session interface;
the running the application and the obtaining of the running result comprises the following steps:
acquiring target data according to the data source address;
and displaying the target data in the session interface according to the display format of the target data.
Optionally, the at least one command includes: the command of the mark of the defined instant communication group, the command of the trigger operation of the configuration instant communication group and the command of the configuration response mode;
the running the application and obtaining a running result comprises the following steps:
and responding to the trigger operation of the instant messaging group in the instant messaging group according to the response mode.
In a second aspect, an embodiment of the present disclosure provides an apparatus for building an application, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring at least one workflow configuration message through a session interface, and the workflow configuration message comprises at least one command;
a processing module for constructing an application based on the at least one workflow configuration message.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor for executing a computer program stored in a memory, the computer program, when executed by the processor, implementing the steps of the method of any of the first aspects.
In a fourth aspect, the present disclosure provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method according to any one of the first aspect.
In the technical scheme provided by the embodiment of the invention, at least one workflow configuration message is acquired on a session interface, and an application is constructed based on the workflow configuration message. The workflow configuration message comprises commands, namely the workflow configuration message can be obtained by flexibly combining the commands, so that the application construction mode is more flexible, rich applications can be constructed, the applications are constructed in a chatting mode in a session interface, and the convenience and interestingness of construction of the applications are improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic flow chart diagram of a method of building an application provided by the present disclosure;
FIG. 2 is a schematic interface diagram of a build application provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an interface of another build application provided by an embodiment of the present disclosure;
FIG. 4 is a schematic interface diagram of yet another build application provided by an embodiment of the present disclosure;
FIG. 5 is a schematic flow diagram of another method of building an application provided by the present disclosure;
FIG. 6 is a flow diagram illustrating yet another method of building an application provided by the present disclosure;
FIG. 7 is a schematic interface diagram of yet another build application provided by an embodiment of the present disclosure;
FIG. 8 is a schematic interface diagram of yet another build application provided by an embodiment of the present disclosure;
FIG. 9 is a schematic flow chart diagram of yet another method of building an application provided by the present disclosure;
FIG. 10 is a schematic flow chart diagram of yet another method of building an application provided by the present disclosure;
FIG. 11 is a schematic flow chart diagram of yet another method of building an application provided by the present disclosure;
FIG. 12 is a schematic interface diagram of yet another build application provided by an embodiment of the present disclosure;
FIG. 13 is a schematic interface diagram of yet another build application provided by an embodiment of the present disclosure;
FIG. 14 is a schematic interface diagram of yet another build application provided by an embodiment of the present disclosure;
fig. 15 is a schematic structural diagram of an apparatus for constructing an application according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
The method for building an application of the present disclosure is performed by an electronic device. The electronic device may be a tablet computer, a mobile phone, a wearable device, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), a smart television, a smart screen, a high definition television, a 4K television, a smart speaker, a smart projector, and the like, and the specific type of the electronic device is not limited in this disclosure.
The present disclosure does not limit the type of operating system of the electronic device. For example, Android systems, Linux systems, Windows systems, iOS systems, etc.
The electronic equipment is provided with the instant messaging software, can configure workflow configuration information through a session interface of the instant messaging software, and constructs application based on the workflow configuration information.
According to the method and the device, the workflow configuration message is obtained by flexibly combining the commands, the application is constructed based on the workflow configuration message, the flexibility of the application construction mode is improved, rich applications can be constructed, the application is constructed in a chat mode in a session interface, and the convenience and interestingness of the application construction are improved.
Wherein the workflow configuration message includes a command: may be an atomic command; or packaging one or more atomic commands to obtain a command, which is described as a first packaged command by the present disclosure; the atomic command and the packed command may be packed again to obtain the command, or a plurality of packed commands may be packed to obtain the command, which is described as a second packed command in this disclosure.
The atomic command can be understood as a unit realizing a single function, the first encapsulation command is a unit realizing more functions, the second encapsulation command is a unit realizing more functions, and the atomic command, the first encapsulation command and the second encapsulation command are freely combined to construct applications realizing various functions. For the convenience of understanding, the atomic command can be compared with a building block of 2X2, the first packaging unit can be compared with a building block of 2X4, and the second packaging unit can be compared with a building block of 2X6 or 4X4, and due to the fact that building blocks with various specifications exist, abundant shapes can be freely assembled and spliced.
Wherein the atomic command satisfies the following rules:
rule 1: the downstream atomic command may use the output result of the immediately upstream atomic command.
Illustratively, if the obtained workflow configuration message is: "/cmd set XX journal/sh curr https:// news-at.zhihu.com/API/3/stores/latest | jq-r '. stories | map (" [ \\ title) ] (\ url) }) j oil ("\ n")'/msg $ blue XX journal \ n { { resp } ", when the commands/cmd,/sh, curl, jq and/g in the workflow configuration message are atomic commands, when the/cmd command defines a" journal "command, the/XX command defines the contents of the current command as a piped command, the pipe commands are sequentially combined of 3 commands, the first XX is a curl to obtain data from the journal Open API, the second is a jq, and a specific string of data is assembled to generate a specified character format, the third is/msg, which is used to assemble the message card and send it to the user. Then, in the atomic commands corresponding to the workflow configuration message, the jq command and the curl command are two commands next to each other, the curl command is an upstream command of the jq command, the jq command is a downstream command of the curl command, and assembling the specified field in the data by the jq command refers to assembling the specified field in the data acquired by the curl command from the XX japanese report Open API, that is, the downstream atomic command jq uses the output result of the upstream atomic command curl.
Rule 2: data may be written to the global dictionary object.
If it is desired that the downstream atomic command not only use the output result of the immediately adjacent upstream atomic command, the data may be written to the global dictionary object via the tee command, and when the downstream atomic command obtains the output result of the upstream atomic command, the output result of the upstream atomic command may be obtained from the global dictionary.
Rule 3: data for a global dictionary object may be used.
Illustratively, if the acquired workflow configuration message is: the homology/sh curl ' http:// bot.aped.apps.bytedand.net/filebed ═ jinshu & as _ bot ═ 1& url ═ https:// bytedand.feishu.cn/sheets/shtcnD 9MKpNfr1 ajbwv 9y3EbQP ' | jq '. data sheets [0]. valueare. value range. map ([ 0 ]?. token) | join (",") ' |/uid2oid | jq '. join (",") ' | fistul | 294512f16f | 27 | 22| d | j-q ' | j-o n ("," "" "" "", "| finish | hat | i _ int _ ine _6 ebode 6 cfo 294512f16f [ 27 | 2722 } me }," { (m } is "{ (r/{" work { "call \\\\\\\\\\\\\\\\\ m { }," { -mesh { } m { }, "(" work { -m ' { -j \\\\\\\\ m ' { -j \\\\\\ m ' { -j \\ m ' { -j \\\\\ m ' { -j \\\ m ' } j \, which is a. The method comprises the steps of/cmd,/sh, curl, jq, uid2oid, tee, chat _ info,/comm,/msg, wherein the/cmd command defines a command of 'classmate for filling a table',/sh command defines that the content of the current command is a command with a pipeline, the curl command is a command for obtaining data of a flybook online form, a user uid (token) in a first column is found and converted into a character string separated by a comma, the/uid 2oid command is converted into an open id list, the jq command is converted into a character string separated by a comma, the tee command stores the result character string into a global variable finished, the chat _ info command is used for obtaining information of a designated group chat, the chat comprises a group member list, the jq command is used for obtaining a group member open list and converted into a character string separated by a comma, and the result character string is stored into a global variable, the/comm command is used to calculate the complement of the two strings list, returning the complement JSON, the jq command is used to convert the JSON to a string of a particular format, and the/msg command is used to assemble a message card and send it to the user.
The first tee command in the workflow configuration message stores the result character string into the global variable finished, so that the process of acquiring the group member open id list by the jq command can be acquired from the global variable finished, and the jq command can use the output result of not only the adjacent upstream atomic command but also other upstream atomic commands which are not adjacent to the jq command.
It should be noted that, after data is written into the global dictionary object through the tee command, in the process of using the data of the global dictionary object, other commands in the same workflow configuration message as the tee command must be used to obtain the data written into the global dictionary object by the tee command, and the commands in other workflow configuration messages cannot obtain the data written into the global dictionary object by the tee command.
Rule 4: the write data may be persisted.
In order to ensure that the downstream atomic command in different workflow configuration messages can acquire the data acquired by the upstream atomic command, the output result of the upstream atomic command is written into the disk, so that persistent data writing is realized.
Rule 5: the persistent data can be read.
After the data of the upstream atomic command in the different workflow configuration messages is written into the disk, the downstream atomic command can acquire the data of the upstream atomic command in the different workflow configuration messages, which is written into the disk, from the disk.
Rule 6: other commands may be encapsulated.
For example: the cmd atomic command can encapsulate a combination of other atomic commands into one command that implements more functionality.
Optionally, the atomic command includes, but is not limited to, the following:
atomic command 1: a command for sending a hypertext transfer protocol, HTTP, request.
Illustratively,/curr HTTPs:// news-at.zhihu.com/api/3/stores/latest, i.e., sending a Hypertext Transfer Protocol (HTTP) request using a curr atomic command.
Atomic command 2: and the command is used for carrying out JSON query and recombination.
Illustratively,/jq '. data. members | map (. open _ id) | join (",")', i.e., a group member open id list is obtained using a jq command.
Atomic command 3: a command for returning the content of the input.
Exemplary,/echo [ Beijing, 25 ℃ ], i.e., the content of the return input by echo atomic command is Beijing, 25 ℃.
Atomic command 4: a command to write data into the global dictionary object.
Illustratively, the/tee finished, ie-atom command, is to write data into the global dictionary finished.
Atomic command 5: commands for defining and viewing persistent data.
Illustratively, a/var hello world, or var atomic command, defines a hello world.
Atomic command 6: commands for executing commands with pipes.
Illustratively,/cmd set XX daily/sh, i.e., cmd atomic command defines a command of "XX daily", and/sh atomic command defines that the content of the current command is a command with a pipe.
Atomic command 7: commands for setting timed tasks.
For example, schedule, a message card is sent, that is, a schedule atom command defines a set timing task, and a task of sending the message card can be executed when the task is triggered.
Atomic command 8: a command to send a message in the instant messaging software.
Illustratively,/msg [ body of brocade ], i.e., msg atomic command, defines sending a body of brocade message in instant messaging software.
Atomic command 9: a command to read or write an online form in instant messaging software.
Illustratively,/sheet update or insert https:// byte address. feishu. cn/sheets/sheet ydmqet8jXyAS1DByziAd7csheet ═ 4a2648 set status ═ 1 'Doing' where id ═ 1, i.e. data is obtained in the flybook online table.
Atomic command 10: the method is used for converting the user identifier into the open identifier in the instant messaging client.
The user identification is the unique identification of the user in the open platform, the open identification is the unique identification of the user in each application, the corresponding open identifications of the same user in different applications may be different, and the corresponding user identifications of the same user in all applications are the same; the user identifier can realize cross-application operation, and the open identifier can improve safety, so that conversion between the user identifier and the open identifier can be carried out according to requirements.
Illustratively, a/uid 2oid, that is, a uid2oid atomic command, turns uid to an open id list.
Atomic command 11: commands defining command names.
Illustratively, the/cmd set XX journal, i.e., cmd atom commands, defines a "XX journal" command.
Atomic commands may also continue to expand as development continues to achieve more functionality.
The technical solution of the present disclosure is described below in several specific examples.
Fig. 1 is a schematic flow chart of a method for constructing an application according to the present disclosure, and as shown in fig. 1, the method of this embodiment is as follows:
and S10, acquiring at least one workflow configuration message through the session interface.
Wherein the workflow configuration message comprises at least one command.
As shown in fig. 2, the session interface 100 may be a session interface with a specific session robot, for example, the specific session robot in the session interface 100 in fig. 2 is a first robot.
Retrieving at least one workflow configuration message in the conversational interface with the particular conversational robot includes retrieving at least one workflow configuration message entered in a text entry box of the conversational interface with the particular robot, exemplary, with continued reference to fig. 2, retrieving a workflow configuration message entered in a text entry box of the conversational interface with the first robot. Alternatively, when a voice input control on a conversation interface with a specific robot is activated, an input voice signal is acquired, the voice signal is parsed to acquire at least one workflow configuration message, and for example, as shown in fig. 3, when a voice control 101 on a conversation interface with a first robot is activated, a voice signal is acquired through a microphone of an electronic device, and the voice signal is parsed to acquire at least one workflow configuration message. Still alternatively, when a gesture input control on the session interface with the specific robot is activated, an input gesture signal is acquired, and the gesture signal is parsed to acquire at least one workflow configuration message, for example, as shown in fig. 4, when a gesture input control 102 on the session interface with the first robot is activated, an input gesture signal is acquired through a camera of the electronic device, and at least one workflow configuration message is acquired through parsing of the gesture signal.
Illustratively, when a workflow configuration message entered at a text entry box input of a session interface with the first robot is "/cmd set XX daily $ curl https:// news-at.zhihu.com/api/3/stories/latest | jq-r '. stories | map (" [ \ (.title) ] (\\ (.url) sidebar) ") | join (" \ n ")' |/msg $ blue XX daily \ n { { resp }" } } "", when the corresponding workflow configuration message includes the following commands: the system comprises a data processing module, a data processing module and a data processing module, wherein the data processing module is used for processing data, and the data processing module is used for processing data, generating a character string in a specific format, and processing the data.
S20, constructing the application based on the at least one workflow configuration message.
Illustratively, when the at least one workflow configuration message obtained is "/cmd set XX daily $ curl https:// news-at.zhihu.com/api/3/stories/latest | jq-r '. stories | map (" [ \\ (.title) ] (\ (.url) sidebar) ") | join (" \ n ")' |/msg $ blank XX daily \ n { { resp } } }" ", the application constructed from the workflow configuration message is now the XX daily application.
Optionally, after the application is built, the workflow configuration message corresponding to the application may be stored, an icon corresponding to the application may be generated and displayed at a preset position (for example, a desktop), or a link corresponding to the application may be generated, which is not limited in this disclosure.
In this embodiment, at least one workflow configuration message is obtained in the session interface, and the application is constructed based on the workflow configuration message. The workflow configuration message comprises commands, namely the workflow configuration message can be obtained by flexibly combining the commands, so that the application construction mode is more flexible, rich applications can be constructed, the applications are constructed in a chatting mode in a session interface, and the convenience and interestingness of construction of the applications are improved.
Fig. 5 is a schematic flowchart of another method for constructing an application according to an embodiment of the present disclosure, where on the basis of the foregoing embodiment, as shown in fig. 5, after step S20, the present embodiment further includes the following steps:
and S30, responding to the operation of the trigger application.
After the application is built based on the workflow configuration message, if the triggering operation of the application corresponding to the workflow configuration message is received, the operation of triggering the application is responded to be received. Illustratively, when the obtained at least one workflow configuration message is "/cmd set XX daily $ curr https:// news-at.zhihu.com/api/3/stories/latest | jq-r'. story | map (" [ \\ (. title) ] (\.. url) sidebar) ") | join ("/msg $ journal \ n { { resp } } } "", an application constructed according to the workflow configuration message is the XX journal application, and when the XX journal application is triggered to be operated correspondingly, the XX journal application is operated, and an operation result of the XX journal application is obtained, that is, data in the application is obtained from the XX journal application.
Embodiments as step S30 include, but are not limited to, the following possible implementations:
one possible implementation manner, as shown in fig. 6, includes:
s301, responding to the information of the running application acquired through the session interface.
Wherein the message for running the application comprises: application name.
Illustratively, when entering a workflow configuration message "/cmd set XX daily $ curl https:// news-at.zhihu.com/api/3/stores/latest | jq-r '. stores | map (" [ \\ (.title) ] (\ (.url) sidebar) ") | join (" \\ n ")' |/msg $ blue XX daily \ n { { { resp }" } } is entered at a text entry box of a session interface with the first robot and triggers the sending of a workflow configuration message entered at the text entry box, the workflow configuration message entered at the text entry box is sent to the session interface with the first robot, as shown in fig. 7. The application constructed based on the workflow configuration message in the session interface with the first robot is the XX daily report, after the XX daily report is constructed, the XX daily report is input in a text input box of the session interface with the first robot and is sent, at this time, the message corresponding to the running application is the XX daily report sent in the session interface with the first robot, the XX daily report application is run according to the message of the running application, and the running result is obtained from the XX daily report application, as shown in FIG. 8, that is, the content in the XX daily report is obtained.
According to the method and the device, the message for running the application is obtained through the session interface, the application is run, the running result is obtained, the application constructed by the workflow configuration message is run in the interactive session interface, the interactive interface is more natural and intelligent, and more anthropomorphic interaction can be realized by matching with an intelligent sound box, an entity robot and the like.
Another possible implementation, as shown in fig. 9, includes:
s302, responding to the operation of receiving and clicking the icon of the application.
For example, after an application is built based on workflow configuration information, for example, an XX daily report application is built, an icon corresponding to the XX daily report may be generated and displayed at a preset position (for example, a desktop), and if the icon of the XX daily report application is triggered and clicked, the built XX daily report application is run according to an operation of triggering and clicking the icon of the XX daily report application, and content in the XX daily report is acquired.
And S40, running the application to obtain a running result.
Specifically, the obtaining of the operation result includes displaying the target data in the session interface, or responding to a trigger operation of the instant messaging group in the instant messaging group.
Fig. 10 is a schematic flowchart of another method for building an application according to an embodiment of the present disclosure, where on the basis of the embodiment corresponding to fig. 5, when at least one command in step S10 includes: a command for defining an application name, a command for transmitting a data source address, and a command for configuring a display format of target data; the command for sending the data source address is used for acquiring target data from the data source address; a command for configuring the display format of the target data is used to control the display format of the target data in the session interface, and one possible implementation of step S40 is shown below and includes:
s401, target data are obtained according to the data source address.
Illustratively, the workflow configuration message obtained is "/cmd set XX daily $ cur https: the workflow configuration message contains a command to define an application name as/cmd set XX diary, a command to send a data source address as curl https: the command to configure the display format of the target data is/msg $ blxx daily \ n { { resp }. After the workflow configuration message is acquired, target data is acquired according to a data source address in the workflow configuration message, namely data with a storage field in a field is acquired from an https:// news-at.zhihu.com/api/3/stores/late address.
S402, displaying the target data in the session interface according to the display format of the target data.
After the destination data is acquired according to the data source address, the destination data is displayed in the session interface according to the display format of the destination data, and illustratively, the data with the fields of the fields being the fields of the destinations acquired from the https:// news-at.zhihu.com/api/3/stories/latest addresses are displayed in a link form, and the XX daily report is displayed in a blue background.
It should be noted that, in the above embodiments, the display format is exemplarily displayed in a linked form as blue ground color, and in other possible embodiments, the display format includes displaying in a card form, displaying in a linked display, displaying in a line feed display, and the like, but is not limited to the above display format.
According to the method for constructing the application, the target data are obtained according to the data source address, then the target data are displayed in the session interface according to the display format of the target data, running of the application is achieved, the running result is obtained and displayed in the session interface according to the display format of the target data format, and visual and diversified display of the running result is achieved.
When at least one command in step S10 includes: when the command defining the identity of the instant messaging group, the command configuring the trigger operation of the instant messaging group, and the command configuring the response mode are executed, as shown in fig. 11, another possible implementation manner of step S40 includes:
and S403, responding to the trigger operation of the instant messaging group in the instant messaging group according to the response mode.
Specifically, the command for defining the identifier of the instant messaging group is as follows:
/chat create [ group chat name ] @ user 1@ user 2: a group chat is created.
The command for triggering the operation of the configured instant messaging group comprises the following commands:
add _ user _ to _ chat users enter the group;
revoke _ add _ user _ from _ chat, namely revoking the invited user to enter the group;
remove _ user _ from _ chat users go out of group;
add _ bot, robot entering group;
remove _ bot, the robot is moved out of the group;
p2p _ chat _ create the first time a session of the user and the robot is created.
The command for configuring the response mode includes:
the action set add _ user _ to _ chat/msg open _ chat _ id { { event, chat _ id } } } comes from a new classmate and welcomes;
action set removed _ user _ from _ chat/msg open _ chat id { { event, chat _ id } } } new classmate runs and cheers;
the operation set revoke _ add _ user _ from _ chat/msg open _ chat _ id { { event.chat _ id } } } cancels the operation of inviting users to the group, and is beautiful;
/action set remove_bot/msg{{{event.bot_event_info}}};
/action set remove_bot/msg{{{event.bot_event_info}}};
the/action set p2p _ chat _ create/msg you La and welcome.
Illustratively, as shown in FIG. 12, after the command of the identification of the instant communication Group creates a Group1, the Group1 includes 1 member user A. When the operation of adding friends is triggered in the instant communication Group1, that is, after the user a triggers the operation of adding friends in the Group1 Group, it is detected that a response mode corresponding to the user a adding friends in the Group1 Group is sent in the instant communication Group: the "new classmates in the group, welcome" message is shown in fig. 13.
According to the method for constructing the application, the triggering operation of the instant messaging group is responded in the instant messaging group according to the response mode, namely the different triggering operations are corresponded, and when the command corresponding to the workflow configuration message comprises the command of the identification of the instant messaging group, the triggering operation is responded in different corresponding modes, so that more natural and more intelligent human-computer interaction is realized.
It should be noted that, in the foregoing embodiment, an example is given by taking a command included in a workflow configuration message as an example, and in a specific implementation, the command in the workflow configuration message includes: the command encapsulation method comprises one or more of an atomic command, a first encapsulation command or a second encapsulation command, wherein the first encapsulation command is a command obtained by encapsulating at least one atomic command, and the second encapsulation command is a command obtained by encapsulating at least one first encapsulation command, or a command obtained by encapsulating at least one atomic command and at least one first encapsulation command.
Optionally, on the basis of the foregoing embodiment, the method for constructing an application further includes: and acquiring a query instruction through the session interface, and querying workflow configuration messages respectively corresponding to all applications built through the session interface based on the query instruction.
Illustratively, when a/cmd ls command is input in a text input box of a session interface with the first robot and is triggered to be sent to the session interface with the first robot, after the session interface acquires the/cmd ls command, workflow configuration messages respectively corresponding to all applications built through the session interface are queried based on the/cmd ls command, as shown in fig. 14.
Optionally, on the basis of the foregoing embodiment, the method for constructing an application further includes: and acquiring a modification instruction through the session interface, and modifying the workflow configuration message of the constructed application according to the modification instruction.
Illustratively, if the constructed workflow configuration message is: "/cmd set weather/sh current https:// api. sensory. com/v3/weather/now. json-G-d {" key ": SXbZ rrhzvdge 1SCU", "location": "{ (user. argv. [1] } }", "langage": zh-Hans "," unit ": c" } ' | jq '. results [0] ' |/msg { (reset. location. name } }, { (reset. new. text } }. temperature } }. c. }. application corresponding to the current workflow configuration message is run, and the run result obtained is "north", sunny, 14 ℃. If we want to return the result "the weather of Beijing is clear, 14 ℃", then we can modify the workflow configuration message of the constructed application by modifying the instruction, for example, modifying the workflow configuration message "jq '. results [0]' to"/cmd set weather/sh current https:// api. sensory. com/v3/weather/now. json. G-d '{ "key": SXbZ rrhzvdge 1SCU "," location "{ (user. argv. [1] }", "", "language": zh-Hans "," unit ": c" { (jq'. result [0 ]/{ (response. location } }. temperature. And after the workflow configuration message of the constructed application is modified according to the modification instruction, the obtained operation result is that the weather of Beijing is clear and the temperature is 14 ℃.
It should be noted that, the foregoing embodiment exemplifies a modification of a modification instruction, and in other possible implementations, the modification instruction may include multiple application scenarios, which are not specifically limited by the embodiment of the present disclosure. In addition, when the workflow configuration message of the constructed application is modified through the modification instruction, if the workflow configuration message is also configured by the user before, the workflow configuration message can be directly covered, and if the workflow configuration message is configured by other users, an error is reported or the name of the modification instruction is prompted.
An embodiment of the present disclosure further provides an apparatus for constructing an application, as shown in fig. 15, the apparatus for constructing an application includes:
the obtaining module 210 is configured to obtain at least one workflow configuration message through the session interface, where the workflow configuration message includes at least one command.
A processing module 220 for building an application based on the at least one workflow configuration message.
According to the device for constructing the application, the acquisition module acquires at least one workflow configuration message through the session interface, the processing module constructs the application based on the at least one workflow configuration message, and the flexible and rich workflow configuration message is realized by configuring the command in the workflow configuration message, so that the richness, the functional diversity and the like of the constructed application are ensured. And the application constructed according to the at least one workflow configuration message can realize more natural and intelligent human-computer interaction, and the follow-up cooperation with an intelligent sound box, an entity robot and the like can realize more anthropomorphic human-computer interaction. In addition, with the grasp of the user on the method for building the application and the accumulation of the custom commands, the efficiency of generating new commands in subsequent assembly is higher and higher, and the cost for building the application is reduced.
The apparatus of this embodiment may be correspondingly used to implement the technical solutions of the above method embodiments, and the implementation principle and technical effects are similar, which are not described herein again.
The present disclosure also provides an electronic device, comprising: a processor for executing a computer program stored in a memory, the computer program, when executed by the processor, implementing the steps of the above-described method embodiments.
The present disclosure also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
The present disclosure also provides a computer program product which, when run on a computer, causes the computer to perform the steps of implementing the above-described method embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (17)

1. A method of constructing an application, the method comprising:
acquiring at least one workflow configuration message through a session interface, wherein the workflow configuration message comprises at least one command;
building an application based on the at least one workflow configuration message.
2. The method of claim 1, further comprising:
and in response to receiving the operation of triggering the application, running the application and acquiring a running result.
3. The method of claim 2, wherein the receiving an operation that triggers the application comprises:
acquiring a message for running the application through the session interface;
alternatively, the first and second electrodes may be,
and receiving an operation of clicking the icon of the application.
4. The method of claim 1, wherein the conversational interface is a conversational interface of a specific conversational robot.
5. The method of claim 1, wherein the obtaining at least one workflow configuration message through a session interface comprises:
acquiring at least one workflow configuration message input through a text input box on the session interface;
or when a voice input control on the session interface is activated, acquiring an input voice signal, and analyzing the voice signal to acquire at least one workflow configuration message;
or when a gesture input control on the session interface is activated, acquiring an input gesture signal, and analyzing the gesture signal to acquire at least one workflow configuration message.
6. The method of claim 1, wherein the at least one command comprises: one or more of the following:
an atomic command;
a first envelope command; the first packaging command is a command obtained by packaging at least one atomic command;
a second pack command; the second encapsulated command is a command obtained by encapsulating at least one first encapsulated command, or a command obtained by encapsulating at least one atomic command and at least one first encapsulated command.
7. The method of claim 6, wherein the atomic command satisfies the following rule:
the downstream atomic command may use the output result of the immediately upstream atomic command;
data can be written into the global dictionary object;
data that can use a global dictionary object;
write data can be persisted;
readable persistent data;
other commands may be encapsulated.
8. The method of claim 6, wherein the atomic command comprises at least one of:
a command for sending a hypertext transfer protocol, HTTP, request;
the command is used for carrying out JSON query and recombination;
a command for returning the input content;
a command for writing data into the global dictionary object;
commands for defining and viewing persistent data;
a command for executing a piped command;
a command for setting a timing task;
a command for sending a message in the instant messaging software;
a command to read or write an online form in instant messaging software;
the system is used for converting the user identifier into an open identifier in the instant communication client;
commands for defining command names.
9. The method according to any one of claims 1-8, further comprising:
and acquiring a query instruction through the session interface, and querying workflow configuration messages respectively corresponding to all applications constructed through the session interface based on the query instruction.
10. The method according to any one of claims 1-8, further comprising:
and acquiring a message for configuring the operation authority of the application through the session interface, wherein the operation authority is used for limiting a user for operating the application.
11. The method according to any one of claims 1-8, further comprising:
and acquiring a modification instruction through the session interface, and modifying the workflow configuration message of the constructed application according to the modification instruction.
12. The method of claim 3, wherein the message to run the application comprises: application name.
13. The method of claim 2,
the at least one command comprises: a command for defining an application name, a command for transmitting a data source address, and a command for configuring a display format of target data; wherein the command to send a data source address is used to obtain target data from the data source address; the command for configuring the display format of the target data is used for controlling the display format of the target data in the session interface;
the running the application and the obtaining of the running result comprises the following steps:
acquiring target data according to the data source address;
and displaying the target data in the session interface according to the display format of the target data.
14. The method of claim 2,
the at least one command comprises: the command of the mark of the defined instant communication group, the command of the trigger operation of the configuration instant communication group and the command of the configuration response mode;
the running the application and obtaining a running result comprises the following steps:
and responding to the trigger operation of the instant messaging group in the instant messaging group according to the response mode.
15. An apparatus for building an application, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring at least one workflow configuration message through a session interface, and the workflow configuration message comprises at least one command;
a processing module for constructing an application based on the at least one workflow configuration message.
16. An electronic device, comprising: a processor for executing a computer program stored in a memory, the computer program, when executed by the processor, implementing the steps of the method of any of claims 1-14.
17. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 14.
CN202110737953.6A 2021-06-30 2021-06-30 Method, device and equipment for constructing application and computer readable storage medium Pending CN115016693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110737953.6A CN115016693A (en) 2021-06-30 2021-06-30 Method, device and equipment for constructing application and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110737953.6A CN115016693A (en) 2021-06-30 2021-06-30 Method, device and equipment for constructing application and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115016693A true CN115016693A (en) 2022-09-06

Family

ID=83064693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110737953.6A Pending CN115016693A (en) 2021-06-30 2021-06-30 Method, device and equipment for constructing application and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115016693A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103069444A (en) * 2010-03-24 2013-04-24 宝美瑞思网络公司 Workflow-based session management
US20140317595A1 (en) * 2013-04-23 2014-10-23 Kofax, Inc. Smart mobile application development platform
CN104216646A (en) * 2013-05-30 2014-12-17 华为软件技术有限公司 Method and device for creating application program based on gesture
US20160232013A1 (en) * 2013-09-24 2016-08-11 Cotham Technologies Limited Methods and Software for Creating Workflows
CN110244941A (en) * 2019-06-17 2019-09-17 三角兽(北京)科技有限公司 Task development approach, device, electronic equipment and computer readable storage medium
CN110377275A (en) * 2019-07-18 2019-10-25 中汇信息技术(上海)有限公司 Automatically create the method and storage medium of application program
CN111796945A (en) * 2020-06-12 2020-10-20 中国建设银行股份有限公司 Workflow construction method and device, electronic equipment and readable storage medium
CN112162843A (en) * 2020-10-19 2021-01-01 腾讯科技(深圳)有限公司 Workflow execution method, device, equipment and storage medium
CN112882700A (en) * 2021-02-09 2021-06-01 京东方科技集团股份有限公司 iOS application program construction method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103069444A (en) * 2010-03-24 2013-04-24 宝美瑞思网络公司 Workflow-based session management
US20140317595A1 (en) * 2013-04-23 2014-10-23 Kofax, Inc. Smart mobile application development platform
CN104216646A (en) * 2013-05-30 2014-12-17 华为软件技术有限公司 Method and device for creating application program based on gesture
US20160232013A1 (en) * 2013-09-24 2016-08-11 Cotham Technologies Limited Methods and Software for Creating Workflows
CN110244941A (en) * 2019-06-17 2019-09-17 三角兽(北京)科技有限公司 Task development approach, device, electronic equipment and computer readable storage medium
CN110377275A (en) * 2019-07-18 2019-10-25 中汇信息技术(上海)有限公司 Automatically create the method and storage medium of application program
CN111796945A (en) * 2020-06-12 2020-10-20 中国建设银行股份有限公司 Workflow construction method and device, electronic equipment and readable storage medium
CN112162843A (en) * 2020-10-19 2021-01-01 腾讯科技(深圳)有限公司 Workflow execution method, device, equipment and storage medium
CN112882700A (en) * 2021-02-09 2021-06-01 京东方科技集团股份有限公司 iOS application program construction method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106657370B (en) Data transmission method and device
TWI685228B (en) Information transmission method and device
CN107276864A (en) The method of intelligent sound equipment control household electrical appliances, apparatus and system
CN102393857B (en) Method and system for local call based on web page
CN103297325B (en) Method, device and equipment mutual with third-party application in instant communicating system
CN101557297B (en) Internet-based open telecommunication service generation system and method thereof
CN104023050A (en) Equipment cooperation multi-screen interactive system under equipment cloud environment and method thereof
CN106657521A (en) Smart device voice communication method, apparatus and system
CN104394191A (en) Method, control terminal, and system for remotely controlling mobile terminal
CN103974111B (en) By the method, apparatus of the data transfer on intelligent terminal to television terminal
TWI614612B (en) Method and apparatus for task based remote services
CN101980152A (en) Mobile middleware system and implementation method thereof
JP5441455B2 (en) Network-based service provision system
CN106372850A (en) Information reminding method and device based on intelligent robot
CN105493621A (en) Terminal, server, and terminal control method
CN101853152A (en) Method and system for generating graphical user interface
CN102799477A (en) Resource access method and apparatus
JP2018537777A (en) Internet of things information system
CN110933170A (en) Multi-device linkage control method and device of ZigBee gateway and storage medium
CN105704001A (en) WeChat server message distribution method and WeChat server message distribution system
CN104717131A (en) Information interaction method and server
CN103268541A (en) Mailbox interface interaction method and equipment
WO2018000623A1 (en) Webpage operating method and apparatus
CN103888297A (en) Interchanger network management method and system
CN115016693A (en) Method, device and equipment for constructing application and computer readable storage medium

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