CN115016693B - Method, apparatus, device and computer readable storage medium for constructing application - Google Patents

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

Info

Publication number
CN115016693B
CN115016693B CN202110737953.6A CN202110737953A CN115016693B CN 115016693 B CN115016693 B CN 115016693B CN 202110737953 A CN202110737953 A CN 202110737953A CN 115016693 B CN115016693 B CN 115016693B
Authority
CN
China
Prior art keywords
command
application
session interface
workflow configuration
configuration message
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.)
Active
Application number
CN202110737953.6A
Other languages
Chinese (zh)
Other versions
CN115016693A (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.)
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/CN115016693B/en
Publication of CN115016693A publication Critical patent/CN115016693A/en
Application granted granted Critical
Publication of CN115016693B publication Critical patent/CN115016693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to a method, apparatus, electronic device and computer-readable storage medium for building an application by obtaining at least one workflow configuration message at a session interface, 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 mode of constructing the application is more flexible, and the application is constructed in a chat mode in a session interface, thereby improving the convenience and the interestingness of constructing the application.

Description

Method, apparatus, device and computer readable storage medium for constructing application
Technical Field
The present disclosure relates to the field of computer communications technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for building an application.
Background
At any time, the computer communication technology rapidly develops, the demands of people on applications are wider and wider, the functions of application coverage are required to be more and more comprehensive, and the requirements on the development efficiency of the applications are higher and higher.
In the prior art, some basic functions are packaged into a patterned basic module, and an application is built in a platform building manner by interactively dragging the basic module.
However, with the prior art approach, the threshold for building applications is relatively low, but the manner in which applications are built is not flexible enough.
Disclosure of Invention
To solve or at least partially solve the above technical problems, the present disclosure provides a method, apparatus, device, and computer-readable storage medium for building an application.
In a first aspect, an embodiment of the present disclosure provides a method for building an application, including:
acquiring at least one workflow configuration message through a session interface, wherein the workflow configuration message comprises at least one command;
An application is built based on the at least one workflow configuration message.
Optionally, the method further comprises:
and responding to the received operation triggering the application, running the application and obtaining a running result.
Optionally, the receiving the operation triggering the application includes:
Acquiring a message for running the application through the session interface;
Or alternatively
And receiving an operation of clicking the icon of the application.
Optionally, the session interface is a session interface of a specific session 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 session interface is activated, acquiring an input voice signal, and analyzing the voice signal to acquire at least one workflow configuration message;
or when the 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.
Optionally, the at least one command includes: one or more of the following:
an atomic command;
a first pack command; wherein the first encapsulated command is a command obtained by encapsulating at least one atomic command;
a second package 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 of the global dictionary object may be used;
The data can be permanently written;
readable persistence 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;
commands for JSON query and reorganization;
a command for returning the input content;
a command to write data into the global dictionary object;
Commands for defining and viewing persistent data;
A command for executing the pipelined command;
A command to set a timed task;
a command to send a message in instant messaging software;
a command for reading or writing an online form in instant messaging software;
The method is used for converting the user identification into an open identification at the instant communication client;
a command defining a command name.
Optionally, the method further comprises:
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.
Optionally, the method further comprises:
And acquiring a message configuring the running authority of the application through the session interface, wherein the running authority is used for limiting a user running the application.
Optionally, the method further comprises:
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: application name.
Optionally, the at least one command includes: a command defining an application name, a command transmitting a data source address, and a command 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; 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 of the application, the obtaining of the running result comprises:
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: a command defining an identification of an instant messaging group, a command configuring a triggering operation of the instant messaging group and a command configuring a response mode;
The running of the application, obtaining a running result, includes:
And responding to the triggering 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;
and the processing module is used 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, which when executed by the processor implements the steps of the method of any of the first aspects.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the first aspects.
In the technical scheme provided by the embodiment of the invention, at least one workflow configuration message is acquired 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 mode of constructing the application is more flexible, rich applications can be constructed, and the application is constructed in a chat mode in a session interface, thereby improving the convenience and the interestingness of constructing the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flow diagram of a method of building an application provided by the present disclosure;
FIG. 2 is a schematic diagram of an interface for building an application provided by an embodiment of the present disclosure;
FIG. 3 is a schematic interface diagram of another build application provided by an embodiment of the present disclosure;
FIG. 4 is a schematic illustration of an interface for yet another build application provided by an embodiment of the present disclosure;
FIG. 5 is a flow diagram of another method of building an application provided by the present disclosure;
FIG. 6 is a flow diagram of yet another method of building an application provided by the present disclosure;
FIG. 7 is a schematic illustration of an interface for yet another build application provided by an embodiment of the present disclosure;
FIG. 8 is a schematic illustration of an interface for yet another build application provided by an embodiment of the present disclosure;
FIG. 9 is a flow diagram of yet another method of building an application provided by the present disclosure;
FIG. 10 is a flow diagram of yet another method of building an application provided by the present disclosure;
FIG. 11 is a flow diagram of yet another method of building an application provided by the present disclosure;
FIG. 12 is a schematic illustration of an interface for yet another build application provided by an embodiment of the present disclosure;
FIG. 13 is a schematic illustration of an interface for yet another build application provided by an embodiment of the present disclosure;
FIG. 14 is a schematic illustration of an interface for yet another build application provided by an embodiment of the present disclosure;
Fig. 15 is a schematic structural diagram of an apparatus for building 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, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments 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 otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
The method of 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, a vehicle-mounted device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personaldigital assistant, PDA), a smart television, a smart screen, a high definition television, a 4K television, a smart speaker, a smart projector, etc., and the present disclosure does not limit the specific type of the electronic device.
The type of operating system of the electronic device is not limited in this disclosure. For example, an Android system, a Linux system, a Windows system, an iOS system, and the like.
The electronic device is provided with instant messaging software, and can configure workflow configuration information through a session interface of the instant messaging software, and construct an application based on the workflow configuration information.
According to the method and the device, the workflow configuration information is obtained by flexibly combining the commands, the application is constructed based on the workflow configuration information, the flexibility of the mode of constructing the application is improved, rich applications can be constructed, the application is constructed in a chat mode in a session interface, and the convenience and the interestingness of constructing the application are improved.
Wherein the workflow configuration message includes a command to: may be an atomic command; it may also be that one or more atomic commands are encapsulated to get the command, which is described in this disclosure as a first encapsulated command; the atomic and packed commands may also be packed again to get the command, or multiple packed commands may be packed to get the command, which is described in this disclosure as a second packed command.
The atomic command can be understood as a unit for realizing more single functions, the first package command is a unit for realizing more functions, the second package command is a unit for realizing more functions, and the atomic command, the first package command and the second package command are freely combined, so that applications for realizing various functions can be constructed. For ease of understanding, the atomic commands may be compared to blocks of 2X2, the first encapsulation unit to blocks of 2X4, and the second encapsulation unit to blocks of 2X6 or 4X4, since there are blocks of various specifications, a rich build may be freely assembled and patched.
Wherein the atomic command satisfies the following rule:
Rule 1: the downstream atomic command may use the output result of the immediately upstream atomic command.
For example, if the obtained workflow configuration message is: "/cmd set XX DataDataDataDataDataDataDataDataDataDataDataDataDataIng \n { { { { { resp } } }" when commands/cmd,/sh, curl, jq and/msg in the workflow configuration message are all atomic commands, and when the command/cmd defines a command of "XX DataDataDataDataDataIng"/sh command defines that the content of the current command is a command with a pipeline, the pipeline command is formed by sequentially combining 3 commands, the first is a curl for acquiring data from the XX DataDataOpen API, the second is jq, designated fields in the data are assembled to generate a character string in a specific format, and the third is/msg for assembling a message card and issuing the message card to a user. Then, in the atomic commands corresponding to the workflow configuration message, the jq command and the curl command are two immediately adjacent commands, the curl command is an upstream command of the jq command, the jq command is a downstream command of the curl command, and the jq command assembles specified fields in the data, which means that the curl command is assembled from specified fields in the XX daily Open API acquired data, that is, the downstream atomic command jq uses an 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 uses the output result of the immediately upstream atomic command, data may be written to the global dictionary object by 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: the data of the global dictionary object may be used.
For example, if the obtained workflow configuration message is: "/cmd set of unfilled classmates /sh curl'http://bot.apps.bytedance.net/filebid=jinshu&as_bot=1&url=https://bytedance.feishu.cn/sheets/shtcnD9MKpNfr1aEJBWV9y3EbQP'|jq'.sheets[0].data.valueRange.values|map(.[0]?.token?)|join(",")'|/uid2oid|jq'join(",")'|tee finished|chat_info oc_6ebbde6cacf294512f16f8027456622|jq'.data.members|map(.open_id)|join(",")'|tee all|/comm{{{user.all}}}{{{user.finished}}}|jq'map("@\(.)")|join("")'|/msg# of unfilled classmates have { { { { resp } }", at this point, corresponding to the workflow configuration message, the atomic command includes: the command/cmd, sh, curl, jq, uid & lt 2oid, tee, chat & gtinfo, & lt/comm & ltmsg & gt, wherein the command/cmd defines a command of "table-filling classmates", the command/sh defines that the content of the current command is a pipelined command, the command curl is used for acquiring data of the online table of the flyer, the user uid (token) in the first column is found, the command/ui & lt2 & gt oid is used for converting the uid into an open id list, the command jq is used for converting the open id list into a character string separated by the comma, the command tee stores the result character string into a global variable final, the command chat & ltinfo & ltis used for acquiring information of the designated group chat, the command jq is used for acquiring a group member id list, the command curl is used for acquiring the character string separated by the comma, the result character string is stored into a global variable jsl, the command/com & ltmsq & gt is used for calculating two character strings, and the command jq is used for transmitting the complement command to the jsq to a specific jsq.
The first tee command in the workflow configuration message stores the result string in the global variable final, so that the jq command acquiring process of the group member open id list can be acquired from the global variable final, and the jq command can be implemented by using not only the output result of the immediately upstream atomic command but also the output result of other upstream atomic commands not adjacent to the jq command.
It should be noted that, after writing data into the global dictionary object by 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 required to obtain the data written into the global dictionary object by the tee command, and 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 commands in different workflow configuration messages can acquire the data acquired by the upstream atomic commands, the output results of the upstream atomic commands are written into the disk, so that the persistent write data is realized.
Rule 5: the persistent data may 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 written into the disk from the disk.
Rule 6: other commands may be encapsulated.
For example: the cmd atomic commands may encapsulate a combination of other atomic commands into one command that implements more functionality.
Optionally, the atomic commands include, but are not limited to, the following:
Atomic command 1: a command for sending a hypertext transfer protocol HTTP request.
Exemplary,/Curl HTTPs:// news-at.zhihu.com/api/3/stories/last, i.e., send hypertext transfer protocol (Hypertext Transfer Protocol, HTTP) requests using a Curl atomic command.
Atomic command 2: commands for JSON query and reorganization.
Illustratively,/jq '. Data.members|map (.open_id) |join (",")', i.e., the group member open id list is obtained with the jq command.
Atomic command 3: a command for returning the input content.
Illustratively,/echo [ Beijing, 25 ℃ C. ], i.e., the content returned to the input by the echo atomic command is Beijing, 25 ℃ C.
Atomic command 4: commands for writing data into the global dictionary object.
Illustratively,/TEE FINISHED, the tee atomic command is to write data into the global dictionary final.
Atomic command 5: commands for defining and viewing persistent data.
Illustratively, the/var hello world, i.e., var atomic command, defines a hello world.
Atomic command 6: a command for executing the pipelined command.
Illustratively,/cmd set XX daily/sh, i.e., cmd atomic commands define a command of "XX daily," and/sh atomic commands define the content of the current command as a pipelined command.
Atomic command 7: commands for setting timing tasks.
Illustratively,/schedule, send message card, i.e., schedule atomic command defines a set timing task that when triggered can perform the task of sending message card.
Atomic command 8: a command for sending a message in instant messaging software.
Illustratively,/msg [ brocade body ], i.e., msg atomic command defines sending a brocade body message in instant messaging software.
Atomic command 9: commands for reading or writing online forms in instant messaging software.
Exemplary ,/sheet update or inserthttps://bytedance.feishu.cn/sheets/shtcnYDMqet8jXyAS1DByziAd7csheet=4a2648 set status='Doing'where id=1, obtains data from the fly book online form.
Atomic command 10: for translating user identification into open identification at an instant messaging client.
The user identification is a unique identification of the user in the open platform, the open identification is a unique identification of the user in each application, the corresponding open identifications of the same user in different applications can be different, and the corresponding user identifications of the same user in all applications are the same; the user identification can realize cross-application operation, and the open identification can improve safety, so that conversion between the user identification and the open identification can be performed according to requirements.
Illustratively,/uid 2oid, the uid2oid atomic command, converts a uid to an open id list.
Atomic command 11: a command defining a command name.
Illustratively, the/cmd set XX daily, i.e., cmd atomic commands define a command of "XX daily".
Atomic commands may also continue to expand as development proceeds to achieve more functionality.
The technical solutions of the present disclosure are described below in several specific embodiments.
Fig. 1 is a flow chart of a method for constructing an application provided in the present disclosure, as shown in fig. 1, the method in this embodiment is as follows:
S10, acquiring at least one workflow configuration message through a session interface.
Wherein the workflow configuration message includes at least one command.
As shown in fig. 2, the session interface 100 may be a session interface with a specific session robot, and by way of example, the specific session robot in the session interface 100 in fig. 2 is the first robot.
Acquiring at least one workflow configuration message in a conversation interface with a particular conversation robot includes acquiring at least one workflow configuration message entered in a text entry box of the conversation interface with the particular robot, illustratively, with continued reference to fig. 2, acquiring a workflow configuration message entered in a text entry box of the conversation interface with the first robot. Or when the voice input control on the session interface with the specific robot is activated, the input voice signal is acquired, the voice signal is analyzed to acquire at least one workflow configuration message, and as shown in fig. 3, for example, after the voice control 101 on the session interface with the first robot is activated, the voice signal is acquired through the microphone of the electronic device, and the voice signal is analyzed to acquire at least one workflow configuration message. Or when the gesture input control on the session interface with the specific robot is activated, acquiring an input gesture signal, analyzing the gesture signal to acquire at least one workflow configuration message, and for example, as shown in fig. 4, when the gesture input control 102 on the session interface with the first robot is activated, acquiring the input gesture signal through a camera of the electronic device, and acquiring at least one workflow configuration message through analyzing the gesture signal.
For example, when the workflow configuration message input in the text input box of the 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$blueXX daily\n { { { { resp }", the corresponding workflow configuration message includes the following commands: the method comprises the steps of/cmd,/sh, curl, jq and/msg, wherein the/cmd command defines a command of 'XX daily report', the/sh command defines that the content of the current command is a command with a pipeline, the pipeline command is formed by sequentially combining 3 commands, the first command is a command for acquiring data from an XX daily report OpenAPI, the second command is jq for assembling specified fields in the data to generate a character string with a specific format, and the third command is/msg for assembling a message card and sending the message card to a user.
S20, constructing an application based on at least one workflow configuration message.
Illustratively, when the obtained at least one workflow configuration message 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$blueXX daily\n { { { { resp } }", the application built according to the workflow configuration message is an 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), and a link corresponding to the application may be generated.
In this embodiment, the application is built by acquiring at least one workflow configuration message at the session interface 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 mode of constructing the application is more flexible, rich applications can be constructed, and the application is constructed in a chat mode in a session interface, thereby improving the convenience and the interestingness of constructing the application.
Fig. 5 is a flowchart of another method for constructing an application according to an embodiment of the present disclosure, where, based on the foregoing embodiment, as shown in fig. 5, after step S20, the method further includes performing the following steps:
S30, responding to the received operation of triggering the application.
After the application is constructed 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 received in response. For example, when the obtained at least one workflow configuration message 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$blueXX daily\n { { { { resp }", the application constructed according to the workflow configuration message is an XX daily application, and after triggering the operation corresponding to the XX daily application, the XX daily application is operated, and the operation result of the XX daily application is obtained, namely, the data in the application is obtained from the XX daily application.
Embodiments as step S30 include, but are not limited to, the following possible implementations:
one possible implementation, as shown in fig. 6, includes:
S301, responding to the information of the running application obtained through the session interface.
Wherein the message for running the application comprises: application name.
For example, when a workflow configuration message "/cmd set XX daily $curl https://news-at.zhihu.com/api/3/stories/latest|jq-r'.stories|map("[\(.title)](\(.url)sidebar)")|join("\n")'|/msg$blueXX daily \n { { { { resp } }" is input in a text input box of a session interface with the first robot, the workflow configuration message input by the text input box is triggered to be sent, and then the workflow configuration message input by the text input box is sent to the session interface with the first robot, as shown in fig. 7. The method comprises the steps that an application constructed based on workflow configuration information in a session interface with a first robot is an 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 sent, at the moment, a message corresponding to the application running 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 application running, and a running result is obtained from the XX daily report application, and as shown in fig. 8, the content in the XX daily report is obtained.
According to the embodiment of the disclosure, the message of the running application is obtained through the session interface, the application is run, and the running result is obtained, so that 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 the icon of the click application.
For example, after the application is built based on the workflow configuration information, for example, after the 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), if the icon of the XX daily report application is triggered to be clicked, the built XX daily report application is operated according to the operation of triggering the icon of the XX daily report application, and the content in the XX daily report is obtained.
S40, running the application to obtain a running result.
Specifically, the obtaining of the running result includes displaying target data in the session interface or responding to a triggering operation of the instant messaging group in the instant messaging group.
Fig. 10 is a flowchart of another method for constructing an application according to an embodiment of the present disclosure, where the embodiment is based on the embodiment corresponding to fig. 5, and when at least one command in step S10 includes: a command defining an application name, a command transmitting a data source address, and a command configuring a display format of target data; wherein the command to send the data source address is used to obtain the target data from the data source address; the 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 in the following diagram, including:
S401, acquiring target data according to a data source address.
For example, the obtained workflow configuration message is "/cmd set XX daily report $curl https://news-at.zhihu.com/api/3/stories/latest|jq-r'.stories|map("[\(.title)](\(.url)sidebar)")|join("\n")'|/msg$blueXX \n { { { resp }" where the command defining the application name in the workflow configuration message is/cmd set XX daily report, and the command sending the data source address is curl https://news-at.zhihu.com/api/3/stories/latest|jq-r'.stories|map("[\(.title)](\(.url)sidebar)")|join("\n")'|, to configure the display format of the target data is/msg$ blueXX daily report\n { { { resp }. After the workflow configuration message is acquired, acquiring target data according to a data source address in the workflow configuration message, namely acquiring data with a field of stories from https:// news-at.
S402, displaying the target data in the session interface according to the display format of the target data.
After the target data is acquired according to the data source address, the target data is displayed in the session interface according to the display format of the target data, and the data with the field stories acquired from https:// news-at.
It should be noted that, in the foregoing embodiment, the display format is shown by way of example as a blue background in a link form, and in other possible embodiments, the display format includes a display in a card form, a display in a link form, a display in a line feed form, and the like, but is not limited to the foregoing display format.
According to the method for constructing the application, firstly, the target data is acquired according to the data source address, then the target data is displayed in the session interface according to the display format of the target data, so that the running application is realized, the acquired running result is displayed in the session interface according to the display format of the target data format, and the visual and diversified display of the running result is realized.
When the at least one command in step S10 includes: when defining the command of the identification of the instant messaging group, the command of the trigger operation of configuring the instant messaging group and the command of the configuration response mode, another possible implementation of step S40, as shown in fig. 11, includes:
s403, responding to the triggering operation of the instant messaging group in the instant messaging group according to the response mode.
Specifically, the command defining the identification of the instant messaging group is:
CHAT CREATE [ group chat ] @ user 1@ user 2: creating group chat.
The command of the triggering operation of the configured instant messaging group comprises:
add_user_to_chat, user enters group;
revoke add user from chat, cancel inviting users to enter group;
remove_user_from_chat, user out group;
add_bot, robot group entering;
remove_bot, robot is moved out of group;
p2p_chat_create: the session of the user and the robot was created for the first time.
The command for configuring the response mode comprises the following steps:
the/action set add_user_to_chat/msg open_chat_id= { { { { event. Chat_id } } } group has a new classmate, welcome;
Action set remove _user_from_chat/msg open_chat id= { { { { (event. Chat_id } } }) the new classmate runs, cheerful;
Action set revoke _add_user_from_chat/msg open_chat_id= { { { { event. Chat_id } } } "you have undone the operation of inviting users to get into a group, a dry, 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 coming welcome.
Illustratively, as shown in FIG. 12, when the command for the identification of the instant messaging Group creates Group1, group1 includes 1 member user A. When the instant communication Group1 triggers the friend adding operation, that is, after the user a triggers the friend adding operation in the Group1, it is detected that the response mode corresponding to the friend adding of the user a in the Group1 is that the user a sends in the instant communication Group: the "new classmates in group welcome" message, as shown in fig. 13.
According to the method for constructing the application, according to the response mode, the triggering operation of the instant messaging group is responded in the instant messaging group, namely, different triggering operations are corresponding, 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, and therefore more natural and intelligent man-machine interaction is achieved.
It should be noted that, in the foregoing embodiment, the command included in the workflow configuration message is exemplified as an example, and in a specific embodiment, the command in the workflow configuration message includes: one or more of an atomic command, a first encapsulated command, or a second encapsulated command, wherein the first encapsulated command is a command obtained by encapsulating at least one atomic command, and 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, 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 constructed through the session interface based on the query instruction.
For example, when a/cmd ls command is input in the text input box of the session interface with the first robot and triggers to send/cmd ls command to the session interface with the first robot, after the session interface obtains the/cmd ls command, the 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 workflow configuration message is constructed as follows: the "/cmd set weather /sh curl https://api.seniverse.com/v3/weather/now.json-G-d'{"key":"SXbZ rNrHZVDge1SCU","location":"{{user.argv.[1]}}","language":"zh-Hans","unit":"c"}'|jq'.results[0]'|/msg{{resp.location.name}},{{resp.now.text}},{{resp.now.temperature}}℃ text", is that the operation result obtained after the application corresponding to the current workflow configuration message is operated is" Beijing, qing, 14 ℃. If we want to return the result "Beijing weather is sunny, 14 ℃", then the workflow configuration message of the built application can be modified by modifying the instruction, for example, the modified workflow configuration message "jq '. Results [0]' is"/cmd set weather /sh curl https://api.seniverse.com/v3/weather/now.json-G-d'{"key":"SXbZ rNrHZVDge1SCU","location":"{{user.argv.[1]}}","language":"zh-Hans","unit":"c"}'|jq'.results[0]'|/msg{{resp.location.name}} weather is { { resp. Now. Text }, { resp. Now. Temperature }. Degree. Text). When the workflow configuration message of the constructed application is modified according to the modification instruction, the obtained operation result is' Beijing weather is sunny, 14 ℃.
It should be noted that, the foregoing embodiments are exemplified by modification of a modification instruction, and in other possible implementations, the modification instruction may include various application scenarios, which are not specifically limited by the embodiments of the present disclosure. In addition, when the workflow configuration message of the constructed application is modified by 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, the modification instruction name is reported in error or prompted.
The embodiment of the present disclosure further provides an apparatus for building an application, as shown in fig. 15, where the apparatus for building 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 constructing 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 workflow configuration message is flexibly enriched through the command in the configuration workflow configuration message, so that the richness, the functional diversity and the like of the constructed application are guaranteed. And the application constructed according to the at least one workflow configuration message can realize more natural and intelligent man-machine interaction, and can realize more anthropomorphic man-machine interaction by being matched with an intelligent sound box, an entity robot and the like. In addition, as the user grasps the method of building the application and the user-defined commands accumulate, the efficiency of generating new commands by subsequent assembly becomes higher and higher, and the cost of building the application is reduced.
The device of the present embodiment may be correspondingly used to execute the technical solutions of the above method embodiments, and its implementation principle and technical effects are similar, and are not repeated here.
The present disclosure also provides an electronic device, including: and a processor for executing a computer program stored in a memory, which when executed by the processor implements the steps of the method embodiments described above.
The present disclosure also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described 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 method embodiments described above.
It should be 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the 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 and described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (14)

1. A method of building 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; the session interface is a session interface of a specific session robot;
Constructing an application based on the at least one workflow configuration message;
The at least one command includes: one or more of the following:
An atomic command; 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 of the global dictionary object may be used; the data can be permanently written; readable persistence data; other commands may be encapsulated;
a first pack command; wherein the first encapsulated command is a command obtained by encapsulating at least one atomic command;
a second package 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.
2. The method as recited in claim 1, further comprising:
and responding to the received operation triggering the application, running the application and obtaining a running result.
3. The method of claim 2, wherein the receiving the operation triggering the application comprises:
Acquiring a message for running the application through the session interface;
Or alternatively
And receiving an operation of clicking the icon of the application.
4. The method of claim 1, wherein the obtaining at least one workflow configuration message via 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 the 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.
5. The method of claim 1, wherein the atomic command comprises at least one of:
a command for sending a hypertext transfer protocol HTTP request;
commands for JSON query and reorganization;
a command for returning the input content;
a command to write data into the global dictionary object;
Commands for defining and viewing persistent data;
A command for executing the pipelined command;
A command to set a timed task;
a command to send a message in instant messaging software;
a command for reading or writing an online form in instant messaging software;
The method is used for converting the user identification into an open identification at the instant communication client;
a command defining a command name.
6. The method of any one of claims 1-5, 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.
7. The method of any one of claims 1-5, further comprising:
And acquiring a message configuring the running authority of the application through the session interface, wherein the running authority is used for limiting a user running the application.
8. The method of any one of claims 1-5, 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.
9. A method according to claim 3, wherein the message to run the application comprises: application name.
10. The method of claim 2, wherein the step of determining the position of the substrate comprises,
The at least one command includes: a command defining an application name, a command transmitting a data source address, and a command 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; 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 of the application, the obtaining of the running result comprises:
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.
11. The method of claim 2, wherein the step of determining the position of the substrate comprises,
The at least one command includes: a command defining an identification of an instant messaging group, a command configuring a triggering operation of the instant messaging group and a command configuring a response mode;
The running of the application, obtaining a running result, includes:
And responding to the triggering operation of the instant messaging group in the instant messaging group according to the response mode.
12. 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; the session interface is a session interface of a specific session robot;
a processing module for constructing an application based on the at least one workflow configuration message;
The at least one command includes: one or more of the following:
An atomic command; 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 of the global dictionary object may be used; the data can be permanently written; readable persistence data; other commands may be encapsulated;
a first pack command; wherein the first encapsulated command is a command obtained by encapsulating at least one atomic command;
a second package 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.
13. An electronic device, comprising: a processor for executing a computer program stored in a memory, which when executed by the processor performs the steps of the method of any of claims 1-11.
14. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1-11.
CN202110737953.6A 2021-06-30 2021-06-30 Method, apparatus, device and computer readable storage medium for constructing application Active CN115016693B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

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

Family

ID=83064693

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN115016693B (en)

Citations (7)

* 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
CN104216646A (en) * 2013-05-30 2014-12-17 华为软件技术有限公司 Method and device for creating application program based on gesture
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140316841A1 (en) * 2013-04-23 2014-10-23 Kofax, Inc. Location-based workflows and services
GB201316948D0 (en) * 2013-09-24 2013-11-06 Cotham Technologies Ltd Methods and software for creating workflows

Patent Citations (7)

* 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
CN104216646A (en) * 2013-05-30 2014-12-17 华为软件技术有限公司 Method and device for creating application program based on gesture
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

Also Published As

Publication number Publication date
CN115016693A (en) 2022-09-06

Similar Documents

Publication Publication Date Title
TWI685228B (en) Information transmission method and device
CN103024503B (en) System and method for achieving remote control through mobile communication equipment terminal
US20190392395A1 (en) Worry-free meeting conferencing
US10394577B2 (en) Method and apparatus for automatic processing of service requests on an electronic device
EP3011442A1 (en) Method and apparatus for customized software development kit (sdk) generation
JP2014528198A (en) Mobile solution for signing and storing third-party documents
Rudolph Project oxygen: Pervasive, human-centric computing–an initial experience
CN104394191A (en) Method, control terminal, and system for remotely controlling mobile terminal
EP3011443A1 (en) Method and apparatus for code virtualization and remote process call generation
CN104468572A (en) Method for remote voice control over strain selecting instrument through Android mobile phone
CN106372850A (en) Information reminding method and device based on intelligent robot
CN106131133A (en) Browsing history information inspection method, Apparatus and system
CN102508650B (en) A kind of method, device and a kind of browser starting browser extension and apply
CN103268541A (en) Mailbox interface interaction method and equipment
CN115016693B (en) Method, apparatus, device and computer readable storage medium for constructing application
WO2018058895A1 (en) Terminal control method and apparatus based on rcs message
CN110493120B (en) Method and equipment for sending equipment operation instruction
CN106488269A (en) System and method to television equipment control is realized based on third-party application platform
CN103425473A (en) Implementation method and system of open micro-blog
CN103067464B (en) Intelligent terminal method for remote controlling computer and system
CN111031141B (en) Method and server for realizing customized configuration of voice skills
CN105306242B (en) Client monitoring method, client and monitoring system
CN116149639A (en) Method and device for developing components, electronic equipment and storage medium
CN103955515B (en) The processing method and processing device of double-core browser
CN113741862A (en) Communication system and method for mobile terminal expansion development

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
GR01 Patent grant