CN112306572A - Information processing method, system and storage medium - Google Patents

Information processing method, system and storage medium Download PDF

Info

Publication number
CN112306572A
CN112306572A CN202011182171.2A CN202011182171A CN112306572A CN 112306572 A CN112306572 A CN 112306572A CN 202011182171 A CN202011182171 A CN 202011182171A CN 112306572 A CN112306572 A CN 112306572A
Authority
CN
China
Prior art keywords
instruction
chat robot
configuration information
execution module
instruction execution
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.)
Granted
Application number
CN202011182171.2A
Other languages
Chinese (zh)
Other versions
CN112306572B (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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202011182171.2A priority Critical patent/CN112306572B/en
Publication of CN112306572A publication Critical patent/CN112306572A/en
Application granted granted Critical
Publication of CN112306572B publication Critical patent/CN112306572B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides an information processing method, an information processing system and a storage medium. The method comprises the following steps: when instruction configuration information is received, wherein the instruction configuration information comprises instruction parameters and identification information of at least one chat robot, the instruction configuration information is stored as an instruction according to a preset data structure; when the instruction is called, searching an instruction execution module corresponding to the instruction, operating the instruction execution module to process the instruction parameter to obtain an instruction execution result, wherein each instruction execution module corresponds to at least one instruction; and searching and calling the chat robot through the identification information of the chat robot included by the instruction. The method provided by the embodiment of the application improves the flexibility of the instruction configuration of the chat robot based on the instant messaging tool and reduces the difficulty and complexity of the instruction configuration.

Description

Information processing method, system and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an information processing method, an information processing system and a storage medium.
Background
The chat robot based on the instant messaging tool is widely applied to various working and living scenes. After the chat robot is established, the target chat robot can be added into the target chat group, a friend relationship can also be established with the target user, and the target function is used by the chat robot in a conversation window of the target chat group or a chat window of the chat robot. For example, a user joins a chat group for obtaining a target resource (such as a picture and a text) in an instant messaging tool, and the target resource is obtained by triggering a chat robot in the chat group. For another example, the members of the research and development team work cooperatively through the chat robots in the instant messenger.
The above objective functions are realized by processing corresponding instructions, and in the prior art, a background and a code are required to be respectively built for each chat robot to realize the function of the corresponding instructions. Even if the instruction functions implemented by the two chat robots are the same or similar, the codes need to be written respectively to implement the corresponding functions. Taking the function of finding bugs as an example, assuming that both chat robot a and chat robot B need to implement the function, codes for implementing the function need to be written for chat robot a and chat robot B, the chat robot using the function is solidified in the codes, and the instruction configuration information corresponding to the function implementation is solidified. The instruction configuration flexibility of the existing chat robot is low, and the realization difficulty and complexity are high.
Disclosure of Invention
The embodiment of the application provides an information processing method, an information processing system and a storage medium, so as to achieve the purposes of improving the instruction configuration flexibility of a chat robot, reducing the complexity and realizing the difficulty.
In a first aspect, an embodiment of the present application provides an information processing method, where the method includes:
when instruction configuration information is received, wherein the instruction configuration information comprises instruction parameters and identification information of at least one chat robot, the instruction configuration information is stored as an instruction according to a preset data structure;
when the instruction is called, searching an instruction execution module corresponding to the instruction, operating the instruction execution module to process the instruction parameter to obtain an instruction execution result, wherein each instruction execution module corresponds to at least one instruction;
and searching and calling the chat robot through the identification information of the chat robot included by the instruction.
In the method provided by the embodiment of the application, the instruction is not written in a code solidification process in a code writing process of the instruction execution module, but is configured through the configuration information. The instruction is flexible and variable, when a new instruction needs to be added, an instruction execution module can be not separately developed for the new instruction, but the existing instruction execution module is multiplexed, only the required instruction configuration information is configured, and centralized management of a plurality of instructions with the same or similar functions is facilitated. In addition, by adopting the method provided by the embodiment of the application, each instruction can correspond to a plurality of robots and be multiplexed in different scenes. Therefore, the method provided by the embodiment of the application improves the flexibility of the instruction configuration of the chat robot based on the instant messaging tool and reduces the difficulty and complexity of the instruction configuration.
Optionally, the instruction configuration information indicates an instruction type, and the searching for the instruction execution module corresponding to the instruction includes:
and searching an instruction execution module corresponding to the instruction type.
The method provided by the embodiment of the application can divide different instructions into instruction types, and the instructions of the same instruction type correspond to the same instruction execution module, so that the multiplexing and centralized management of the instructions are realized.
Optionally, the instruction type includes at least one of: text instructions for text reminders, hypertext transfer protocol instructions for implementing hypertext transfer protocol (HTTP) -based requests and feedback, instructions for implementing customized functionality. Wherein the customization functions are distinguished by the name of the portal function.
Optionally, the instruction parameter includes an entry function name and an entry function parameter of the target entry function, the entry function name indicates an instruction type, and the target entry function is an entry function of an instruction execution module corresponding to the instruction.
Optionally, the instruction configuration information includes a code of an entry function of an instruction execution module corresponding to the instruction, and the method further includes:
and generating and storing the instruction execution module according to the code of the entry function.
Optionally, the method further includes:
and when receiving chat robot configuration information, adding the chat robot indicated by the chat robot configuration information into a chat robot set, wherein the identification information of the chat robot included in the instruction configuration information is the identification information of the chat robot in the robot set.
Optionally, the method further includes:
when receiving the grouping configuration information, adding the target user indicated by the grouping configuration information to a specified user group;
the instruction configuration information also comprises identification information of the specified user group, when the instruction is called according to user instructions, whether the user belongs to the user group corresponding to the identification information is judged, and the instruction execution module is operated only under the condition that the user belongs to the user group corresponding to the identification information.
Optionally, the method further includes:
and under the condition that the session link of the instant messaging tool corresponding to the chat robot is disconnected, feeding back the instruction execution result in the instant messaging tool corresponding to the chat robot through a specified callback interface.
In a second aspect, an embodiment of the present application provides an information processing system, including:
the instruction configuration module is used for storing the instruction configuration information as an instruction according to a preset data structure when the instruction configuration information is received, wherein the instruction configuration information comprises instruction parameters and identification information of at least one chat robot;
the instruction processing module is used for searching an instruction execution module corresponding to the instruction when the instruction is called, operating the instruction execution module to process the instruction parameter to obtain an instruction execution result, and each instruction execution module corresponds to at least one instruction;
and the execution result feedback module is used for searching and calling the chat robot according to the identification information of the chat robot included by the instruction.
In the system provided by the embodiment of the application, the instruction is not written in a code solidification process in a code writing process of the instruction execution module, but is configured through configuration information. The instruction is flexible and variable, when a new instruction needs to be added, an instruction execution module can be not separately developed for the new instruction, but the existing instruction execution module is multiplexed, only the required instruction configuration information is configured, and centralized management of a plurality of instructions with the same or similar functions is facilitated. In addition, by adopting the system provided by the embodiment of the application, each instruction can correspond to a plurality of robots and be multiplexed in different scenes. Therefore, the system provided by the embodiment of the application improves the flexibility of the instruction configuration of the chat robot based on the instant messaging tool and reduces the difficulty and complexity of the instruction configuration.
Optionally, the instruction configuration information indicates an instruction type, and the instruction processing module searches for an instruction execution module corresponding to the instruction, including:
and searching an instruction execution module corresponding to the instruction type.
Optionally, the instruction type includes at least one of: text instructions for text reminders, hypertext transfer protocol instructions for implementing hypertext transfer protocol based responses to requests and feedback, and instructions for implementing customized functionality. Wherein the customization functions are distinguished by the name of the portal function.
Optionally, the instruction parameters include an entry function name and an entry function parameter of the target function, the entry function name indicates an instruction type, and the target entry function is an entry function of an instruction execution module corresponding to the instruction.
Optionally, the instruction configuration information includes a code of an entry function of an instruction execution module corresponding to the instruction, and the instruction configuration module is further configured to:
and generating and storing the instruction execution module according to the code of the entry function.
Optionally, the system further includes a robot information configuration module, configured to:
and when receiving chat robot configuration information, adding the chat robot indicated by the chat robot configuration information into a chat robot set, wherein the identification information of the chat robot included in the instruction configuration information is the identification information of the chat robot in the robot set.
Optionally, the system further includes a grouping information configuration module, configured to:
when receiving the grouping configuration information, adding the target user indicated by the grouping configuration information to a specified user group;
the instruction configuration information also comprises identification information of the specified user group, when the instruction is called according to user instructions, whether the user belongs to the user group corresponding to the identification information is judged, and the instruction execution module is operated only under the condition that the user belongs to the user group corresponding to the identification information.
Optionally, the execution result feedback module is further configured to:
and under the condition that the session link of the instant messaging tool corresponding to the chat robot is disconnected, feeding back the instruction execution result in the instant messaging tool corresponding to the chat robot through a specified callback interface.
In a third aspect, embodiments of the present application provide an electronic system, including a processor and a memory;
the memory is used for storing programs for executing the methods of the embodiments of the method of the first aspect; the processor is configured to execute programs stored in the memory.
In the system provided by the embodiment of the application, the instruction is not written in a code solidification process in a code writing process of the instruction execution module, but is configured through configuration information. The instruction is flexible and variable, when a new instruction needs to be added, an instruction execution module can be not separately developed for the new instruction, but the existing instruction execution module is multiplexed, only the required instruction configuration information is configured, and centralized management of a plurality of instructions with the same or similar functions is facilitated. In addition, by adopting the system provided by the embodiment of the application, each instruction can correspond to a plurality of robots and be multiplexed in different scenes. Therefore, the system provided by the embodiment of the application improves the flexibility of the instruction configuration of the chat robot based on the instant messaging tool and reduces the difficulty and complexity of the instruction configuration.
In a fourth aspect, the present application provides a computer-readable storage medium storing a program for executing the method described in each embodiment of the first aspect.
In the program stored in the computer-readable storage medium provided by the embodiment of the present application, the instruction is not written in a code-solidified state in a code writing process of the instruction execution module, but configured by the configuration information. The instruction is flexible and variable, when a new instruction needs to be added, an instruction execution module can be not separately developed for the new instruction, but the existing instruction execution module is multiplexed, only the required instruction configuration information is configured, and centralized management of a plurality of instructions with the same or similar functions is facilitated. In addition, by adopting the method in the program, each instruction can correspond to a plurality of robots and be multiplexed in different scenes. Therefore, the method in the program improves the flexibility of the instruction configuration of the chat robot based on the instant messaging tool and reduces the difficulty and complexity of the instruction configuration.
Drawings
FIG. 1 is a flow chart of an information processing method according to an embodiment of the present application;
FIG. 2 is a diagram illustrating a text instruction configuration template according to an embodiment of the present application;
FIG. 3 is a diagram illustrating an HTTP command configuration template according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a built-in command configuration template according to an embodiment of the present application;
fig. 5 is a block diagram of a terminal device according to an embodiment of the present application;
FIG. 6 is a block diagram of an information handling system provided in one embodiment of the present application.
Detailed Description
In order to better understand the technical solutions described above, the technical solutions of the embodiments of the present application are described in detail below with reference to the drawings and the specific embodiments, and it should be understood that the specific features of the embodiments and the embodiments of the present application are detailed descriptions of the technical solutions of the embodiments of the present application, and are not limitations of the technical solutions of the present application, and the technical features of the embodiments and the embodiments of the present application may be combined with each other without conflict.
The embodiment of the application provides an information processing method, which is used for realizing related functions of injection project development progress inquiry, translation, vulnerability detection, timing reminding, target resource acquisition and the like through a chat robot based on an instant messaging tool.
Taking a project development scenario as an example, in the process of project development, all members of a project group use a common instant messaging tool to carry out work communication coordination. Based on an instant communication tool, a chat robot is created, a corresponding instruction execution module is preset for a required function, an instruction is created through instruction configuration, and work interaction is performed through the instruction. For example, a chat robot based on some instant messaging is customized, and a member can inquire the progress of the current project version by private chat with the chat robot or triggering a progress instruction in a chat group with the chat robot.
As shown in fig. 1, an information processing method provided in an embodiment of the present application includes the following operations:
step 101, when instruction configuration information is received, wherein the instruction configuration information comprises instruction parameters and identification information of at least one chat robot, and the instruction configuration information is stored as an instruction according to a preset data structure.
The method provided by the embodiment of the application supports the configuration of the same instruction to a plurality of chat robots.
The data structure of the instruction is not limited in the embodiments of the present application.
102, when the instruction is called, searching an instruction execution module corresponding to the instruction, operating the instruction execution module to process the instruction parameter to obtain an instruction execution result, wherein each instruction execution module corresponds to at least one instruction.
According to the method provided by the embodiment of the application, each instruction execution module realizes different functions, and the same instruction execution module can be multiplexed by the instructions corresponding to the same or similar functions.
The embodiment of the application comprises a triggered instruction and a timed task instruction. The user sends the chat message containing the instruction information to call the trigger type instruction in the instant communication tool through a conversation window of the chat robot or a conversation window of a chat group where the chat robot is located. The timed task instruction is called at a preset trigger moment (for example, a preset time point), and a message execution result is fed back in a conversation window through the chat robot in the instant messaging tool.
And 103, searching and calling the chat robot through the identification information of the chat robot included by the instruction.
Correspondingly, the instruction execution result is fed back to the instant messaging tool corresponding to the found chat robot.
The method shown in fig. 1 may be implemented on a server.
In the method provided by the embodiment of the application, the instruction is not written in a code solidification process in a code writing process of the instruction execution module, but is configured through the configuration information. The instruction is flexible and variable, when a new instruction needs to be added, an instruction execution module can be not separately developed for the new instruction, but the existing instruction execution module is multiplexed, only the required instruction configuration information is configured, and centralized management of a plurality of instructions with the same or similar functions is facilitated. In addition, by adopting the method provided by the embodiment of the application, each instruction can correspond to a plurality of robots and be multiplexed in different scenes. Therefore, the method provided by the embodiment of the application improves the flexibility of the instruction configuration of the chat robot based on the instant messaging tool and reduces the difficulty and complexity of the instruction configuration.
In the existing implementation scheme, each chat robot instruction does not have good permission isolation, and all users can use the corresponding instruction. In order to improve system security, the embodiment of the application performs permission isolation on the instruction, and permission isolation can be specifically realized through at least one of the following ways: the chat robot corresponding to the configuration instruction, the user group corresponding to the configuration instruction (the user group may be a chat group in an instant messaging tool, a project group for project development, etc.), and the user list configured with the authority invoking instruction.
The chat robot corresponding to the configuration instruction is realized in the following manner: and when receiving chat robot configuration information, adding the chat robot indicated by the chat robot configuration information into a chat robot set, wherein the chat robot included in the instruction configuration information is the chat robot in the robot set. By way of example and not limitation, the chat robot configuration information includes a robot name, identification information (e.g., ID) of the instant messenger, and the like.
The chat robot is used for receiving the instruction and returning the instruction execution result, the same project can share one robot, and some robots can be reused in a plurality of projects. The embodiment of the application can provide a uniform robot management interface, and the configuration, management and viewing of the chat robot can be realized through the robot management interface. It should be noted that the premise for configuring the bot through the bot management interface is that the chat bot has already been created.
The chat robot is added into the chat robot set through configuration, and only the chat robot in the chat robot set is allowed to be selected to participate in instruction processing, so that the safety and reliability of information processing can be ensured.
Correspondingly, in the instruction configuration stage, one or more chat robots are required to be configured to feed back instruction execution results, and for a trigger type instruction, the configured chat robot is also required to receive a chat message containing instruction information to realize instruction calling, so that in the instruction configuration stage, a chat robot is selected from the chat robots already added to the chat robot set.
In practical applications, the trigger-type instruction instructs the return result to the dialog window that issued the chat message, for example, if the chat message is sent through the dialog window of the chat group where the chat robot is located, the instruction instructs the execution result to return to the dialog window of the chat group, and if the chat message is sent through the private chat dialog window of the chat robot, the instruction instructs the execution result to return to the private chat dialog window. For the timed task instruction, in the instruction configuration stage, one or more chat groups need to be configured for the instruction so as to return an instruction execution result to the configured chat group, specifically, the chat group configured for the instruction is the chat group where the chat robot configured for the instruction is located.
The user list configured with the authority invoking instruction can be implemented in the instruction configuration stage.
Each instruction, although configured with a corresponding chat robot, should not be executable by all group members that can see the chat robot. Such as a restart server command, should be executed whenever several group members related to the server development have authority, so that it is necessary to configure an authority white list (i.e. a list of users having authority to call the command) for the command.
The implementation manner of the user group corresponding to the configuration instruction is as follows: when receiving the grouping configuration information, adding the target user indicated by the grouping configuration information to a specified user group; the instruction configuration information also comprises identification information of the specified user group, when the instruction is called according to user instructions, whether the user belongs to the user group corresponding to the identification information is judged, and the instruction execution module is operated only under the condition that the user belongs to the user group corresponding to the identification information.
Wherein the instruction further comprises identification information specifying the user group.
Relying only on the permission white list does not manage the instruction permission well. For example, a command should be that all members of a certain item group have corresponding permissions, and if it is very troublesome to add the command permission groups one by one through a permission white list, command permission groups (i.e., user groups) should be established, and each group has a corresponding group member.
For each grouping, a team member may be added so that each instruction may select an existing grouping.
Furthermore, two or more user groups may be configured for one instruction, and when the user calls the instruction through the chat message, the user group where the user is located can be searched, and then the instruction corresponding to the user group is searched, so that the instruction corresponding to the user can be accurately executed. In addition, the first and second substrates are,
when a user belongs to a plurality of user groups, if a certain instruction configures the plurality of user groups, an interactive interface needs to be popped up for interactive selection. For example: the item J1 and the item J2 both have a bug searching instruction, the user A has the permission of calling the bug searching instruction of the items J1 and J2, and the user A calls the instruction in the chat group, and then an interactive interface pops up to prompt the user to select the item J1 and the item J2, so that the corresponding instruction is selected to be executed, and the instruction is prevented from being executed mistakenly.
The method provided by the embodiment of the application can divide the instruction types for different instructions, and the instructions of the same instruction type correspond to the same instruction execution module, so that the multiplexing and centralized management of the instructions are realized. Correspondingly, the above instruction configuration information indicates the type of the instruction, and the searching for the instruction execution module corresponding to the instruction includes: and searching for the instruction execution modules corresponding to the instruction types, wherein the instruction types of the instructions corresponding to the same instruction execution module are the same.
By way of example and not limitation, instructions may be divided into the following types: text instructions, HTTP instructions, instructions to implement a certain customized function (where different customized functions are distinguished by the name of the portal function to which the customized function corresponds). And each class of instructions corresponds to an instruction execution module to realize corresponding functions.
The method provided by the embodiment of the application can realize the configuration of the instructions through the front-end configuration interface, and in practical application, the same configuration template can be used for various instructions, and different configuration templates can also be used for various instructions.
The text instruction is used for performing text reminding in the dialog window, and the text instruction can be a trigger type instruction or a timing task instruction. And the instruction execution module corresponding to the text instruction can realize the text reminding function. When a user needs to create a text instruction, the text instruction configuration template shown in fig. 2 is called, and the user inputs the following instruction configuration information through the text instruction configuration template: instruction name, text content, whether it is a timed task, timed execution time, selected chat robots, user white lists, notification objects, corresponding user groups.
Wherein the instruction parameters at least comprise text content.
The text content is the content that needs to be displayed in the dialog window.
If the timing task command is not the timing task command, the timing execution time does not need to be input.
Wherein, the selected robot is the chat robot included in the instruction configuration information.
The notification object may be a chat group or may be specific to a certain user.
The text instructions only perform fixed text reminders, typically for timed reminders. The configured text instructions can send the text content filled out by the user to a specific group and @ all by the @ robot or timed task. Although the text instruction is simple, the text instruction can be used very frequently in practice, such as regularly reminding a big family to claim the demand and follow up the bug, which is equivalent to a calendar reminder of group members combined with an instant messaging tool.
The HTTP instruction is used for sending a GET or POST request to the URL filled by the user and feeding back a request result, and the HTTP instruction may be a triggered instruction or a timed task instruction. The instruction execution module corresponding to the HTTP instruction can implement HTTP-based request and feedback. When a user needs to create an HTTP command, the HTTP command configuration template shown in fig. 3 is called, and the user inputs the following command configuration information through the HTTP command configuration template: instruction name, instruction description, request URL, request method (GET or POST), request header, request body parameters, user whitelist, timed task, timed execution time, selected chat bot, notification object, corresponding user group.
Unlike the text command, the HTTP command can configure the URL of the request, the request method (get/post), and if the request is a post request, the request header and parameters can be configured, so as to support the configuration of all HTTP requests, and of course, support the timing task.
Wherein, the instruction parameters at least comprise: instruction description, request URL, request method, request header, request body parameter.
The instruction for realizing a certain customized function may be an instruction in which an instruction execution module is created in advance, or an instruction in which an instruction execution module has not been created. In the embodiment of the present application, the former is referred to as an internal instruction, and the latter is referred to as an external instruction.
Text instructions and HTTP instructions can only be adapted to some very general situations, and more situations need to implement specific instruction logic and customize an instruction execution module. When a user needs to create an instruction for implementing a certain customized function, the instruction configuration template shown in fig. 4 is called, and the user inputs the following instruction configuration information through the HTTP instruction configuration template: instruction name, entry function name, instruction description, user white list, timed task, timed execution time, entry function parameter, selected chat robot, notification object, corresponding user group.
Wherein, the instruction parameters at least comprise: entry function name, instruction description, entry function parameters.
Each built-in instruction corresponds to an entry function that is part of the instruction execution module. The entry function name indicates the instruction type, and the same entry function name means that the instruction execution modules are the same and realize the same or similar functions. Different built-in instructions corresponding to the same entry function can be distinguished by configuring different entry function parameters, an instruction execution module does not need to be independently written for each instruction, and instructions with the same or similar functions can be combined and multiplexed to a certain extent. Taking a bug (bug) detection instruction as an example, the bug detection instructions of different items have similar functions, but the corresponding items are different, so that the bug detection instructions of different items can be distinguished through the entry function parameters.
The entry function of the instruction execution module corresponding to the built-in instruction is directly realized in the server background, although the existing functions can be abstracted and multiplexed as much as possible by means of function parameters, some functions always need to be newly customized, and the method is very inconvenient for realizing the corresponding specific instruction function in the server background or building a new instruction background to realize the corresponding function. The method provided by the embodiment of the application realizes the function corresponding to the function at the front end, and can be directly used after being stored. The external instruction basic flow is the same as other types of instructions, but provides instruction editing and instruction debugging functions at the front end. The instruction basic information edited by the front end and the detailed codes of the corresponding entry functions are stored in a background database. That is, the instruction configuration information further includes a code of an entry function of the instruction, and the instruction execution module is generated and stored according to the code of the entry function.
When a message request of the robot is received, the message analysis module informs the instruction access module to take out all instructions from the database for instruction matching, if the corresponding instructions are matched, the instruction access system takes out the corresponding instruction code character strings from the database and transmits the corresponding instruction code character strings to the instruction processing system, and the instruction processing system analyzes the instruction code character strings at the background, executes the corresponding instruction function and returns the result. In the program running process, the code character strings of the same or different languages are analyzed, execution is carried out, and results are received, so that the method is the key of external instruction processing. Currently, there are rich libraries of languages that can assist in this process. Such as: python can execute the character string of python grammar by exec method, can also introduce PyV8 library to execute the code character string of JavaScript grammar, and other libraries can analyze and execute more language code character strings.
Optionally, the feeding back the instruction execution result in the instant messaging tool corresponding to the chat robot includes:
and under the condition that the session link of the instant messaging tool corresponding to the chat robot is disconnected, feeding back the instruction execution result in the instant messaging tool corresponding to the chat robot through a specified callback interface.
In one implementation mode, each instruction can be marked to distinguish whether the corresponding instruction execution result is an instant feedback result, when the instruction execution result needs to be fed back, whether the instruction execution result is the instant feedback result is judged according to the corresponding mark, and for a non-instant feedback result, a session link of an instant communication tool corresponding to the chat robot is disconnected; in another implementation manner, when an instruction execution result needs to be fed back, whether a session link of an instant messaging tool corresponding to the chat robot is disconnected is checked.
In addition to configuring the instruction function at the front end, the robot may also provide a callback interface to handle asynchronous message calls. The REST API provided to call the robot send information is as follows:
Figure BDA0002750477670000091
when an instruction is executed asynchronously, execution may end by calling the http interface to return a message to the specified group.
The method provided by the embodiment of the present application is described below with reference to specific application scenarios. In the application scene, a B/S architecture, namely a web browser/web server structure, is adopted. As shown in fig. 5, a front-end configuration interface is displayed through a web browser, so as to implement front-end configuration such as chat robot configuration, instruction configuration, user grouping configuration, and the like, and an instruction of the front-end configuration is stored in a database through an instruction access module of a server. For the trigger type instruction, after the chat robot sends an instruction message, the information such as an instruction name, parameters and the like can be analyzed through the message analysis module of the server, then the information is sent to the instruction access module of the server for instruction matching, the matched result can be sent to the instruction processing module of the server for execution, and the instruction execution result is returned through the corresponding robot. For the timing task instruction, when the specified time is reached, the instruction access module can perform instruction matching, send the matched result to the instruction processing module for execution, and return the instruction execution result through the corresponding robot.
The user interacts through @ the specified robot + message, so that the problem that multiple robots are in a group and different robots have the same instruction, which causes confusion, can be solved.
The embodiment of the application combines the configuration modes of the two instructions, and the configuration of the trigger type instruction and the configuration of the timing task instruction can be realized through the same instruction configuration template.
According to the method provided by the embodiment of the application, all robots and the instructions share one background, and the new instructions can realize the functions of the corresponding instructions by directly configuring texts, HTTP requests at the front end, multiplexing built-in instructions or realizing external instructions at a front-end custom function. The robot, the instruction and the authority are completely divided, the instruction can be reused to the maximum extent, and a new robot can be freely configured. The execution authority of each instruction is jointly controlled through a white list and a group, and the safety of instruction execution is ensured. The instruction timing task is only directly configured at the front end, and time configuration modes of various formats are supported, so that the change is convenient. And an interface of the asynchronous callback is provided, so that the asynchronous message return can be conveniently processed.
Based on the same inventive concept as the method, an embodiment of the present application provides an information processing system, as shown in fig. 6, the system including:
the instruction configuration module 601 is configured to, when instruction configuration information is received, store the instruction configuration information as an instruction according to a predetermined data structure, where the instruction configuration information includes instruction parameters and identification information of at least one chat robot;
the instruction processing module 602 is configured to, when the instruction is called, search for an instruction execution module corresponding to the instruction, run the instruction execution module to process the instruction parameter, and obtain an instruction execution result, where each instruction execution module corresponds to at least one instruction;
and the execution result feedback module 603 is configured to search for and invoke the chat robot according to the identification information of the chat robot included in the instruction.
In the system provided by the embodiment of the application, the instruction is not written in a code solidification process in a code writing process of the instruction execution module, but is configured through configuration information. The instruction is flexible and variable, when a new instruction needs to be added, an instruction execution module can be not separately developed for the new instruction, but the existing instruction execution module is multiplexed, only the required instruction configuration information is configured, and centralized management of a plurality of instructions with the same or similar functions is facilitated. In addition, by adopting the system provided by the embodiment of the application, each instruction can correspond to a plurality of robots and be multiplexed in different scenes. Therefore, the system provided by the embodiment of the application improves the flexibility of the instruction configuration of the chat robot based on the instant messaging tool and reduces the difficulty and complexity of the instruction configuration.
Optionally, the instruction configuration information indicates an instruction type, and the instruction processing module searches for an instruction execution module corresponding to the instruction, including:
and searching an instruction execution module corresponding to the instruction type.
Optionally, the instruction type includes at least one of: text instructions for text reminders, hypertext transfer protocol instructions for implementing hypertext transfer protocol based responses to requests and feedback, and instructions for implementing customized functionality. Wherein the customization functions are distinguished by the name of the portal function.
Optionally, the instruction parameters include an entry function name and an entry function parameter of the target entry function, the entry function name indicates an instruction type, and the target entry function is an entry function of an instruction execution module corresponding to the instruction.
Optionally, the instruction configuration information includes a code of an entry function of an instruction execution module corresponding to the instruction, and the instruction configuration module is further configured to:
and generating and storing the instruction execution module according to the code of the entry function.
Optionally, the system further includes a robot information configuration module, configured to:
and when receiving chat robot configuration information, adding the chat robot indicated by the chat robot configuration information into a chat robot set, wherein the identification information of the chat robot included in the instruction configuration information is the identification information of the chat robot in the robot set.
Optionally, the system further includes a grouping information configuration module, configured to:
when receiving the grouping configuration information, adding the target user indicated by the grouping configuration information to a specified user group;
the instruction configuration information also comprises identification information of the specified user group, when the instruction is called according to user instructions, whether the user belongs to the user group corresponding to the identification information is judged, and the instruction execution module is operated only under the condition that the user belongs to the user group corresponding to the identification information.
Optionally, the execution result feedback module is further configured to:
and under the condition that the session link of the instant messaging tool corresponding to the chat robot is disconnected, feeding back the instruction execution result in the instant messaging tool corresponding to the chat robot through a specified callback interface.
The modules described above may be implemented as software components executing on one or more general-purpose processors, or as hardware such as a programmable logic device and/or application specific integrated circuits that perform certain functions, or a combination thereof. In some embodiments, the modules may be embodied in the form of a software product that may be stored in a non-volatile storage medium including instructions that cause a computer device (e.g., a personal computer, a server, a network device, a mobile terminal, etc.) to implement the methods described in embodiments of the present invention. In one embodiment, the modules described above may also be implemented on a single device or may be distributed across multiple devices. The functions of these modules may be combined with each other, or further divided into a plurality of sub-modules.
The system in the above embodiments may include a network device such as a server.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the modules of the system described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Based on the same inventive concept as the method, the embodiment of the application provides an electronic system, which comprises a processor and a memory;
the memory is used for storing programs for executing the methods of the various method embodiments; the processor is configured to execute programs stored in the memory. When the program instructions stored in the memory are executed by the processor, the processor executes the methods described in the above-mentioned respective method embodiments and is also used for implementing the corresponding modules in the terminal device according to the embodiments of the present invention. The processor may be a processor including a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. The memory may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium and executed by a processor to implement the functions of the embodiments of the disclosure described above and/or other desired functions.
In the system provided by the embodiment of the application, the instruction is not written in a code solidification process in a code writing process of the instruction execution module, but is configured through configuration information. The instruction is flexible and variable, when a new instruction needs to be added, an instruction execution module can be not separately developed for the new instruction, but the existing instruction execution module is multiplexed, only the required instruction configuration information is configured, and centralized management of a plurality of instructions with the same or similar functions is facilitated. In addition, by adopting the system provided by the embodiment of the application, each instruction can correspond to a plurality of robots and be multiplexed in different scenes. Therefore, the system provided by the embodiment of the application improves the flexibility of the instruction configuration of the chat robot based on the instant messaging tool and reduces the difficulty and complexity of the instruction configuration.
Based on the same inventive concept as the method, embodiments of the present application provide a computer-readable storage medium storing a program for executing the method according to each embodiment of the first aspect.
In the program stored in the computer-readable storage medium provided by the embodiment of the present application, the instruction is not written in a code-solidified state in a code writing process of the instruction execution module, but configured by the configuration information. The instruction is flexible and variable, when a new instruction needs to be added, an instruction execution module can be not separately developed for the new instruction, but the existing instruction execution module is multiplexed, only the required instruction configuration information is configured, and centralized management of a plurality of instructions with the same or similar functions is facilitated. In addition, by adopting the method in the program, each instruction can correspond to a plurality of robots and be multiplexed in different scenes. Therefore, the method in the program improves the flexibility of the instruction configuration of the chat robot based on the instant messaging tool and reduces the difficulty and complexity of the instruction configuration.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present specification have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all changes and modifications that fall within the scope of the specification.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present specification without departing from the spirit and scope of the specification. Thus, if such modifications and variations of the present specification fall within the scope of the claims of the present specification and their equivalents, the specification is intended to include such modifications and variations.

Claims (10)

1. An information processing method, characterized in that the method comprises:
when instruction configuration information is received, wherein the instruction configuration information comprises instruction parameters and identification information of at least one chat robot, the instruction configuration information is stored as an instruction according to a preset data structure;
when the instruction is called, searching an instruction execution module corresponding to the instruction, operating the instruction execution module to process the instruction parameter to obtain an instruction execution result, wherein each instruction execution module corresponds to at least one instruction;
and searching and calling the chat robot through the identification information included by the instruction.
2. The method of claim 1, wherein the instruction configuration information indicates an instruction type, and wherein searching for an instruction execution module corresponding to the instruction comprises:
searching an instruction execution module corresponding to the instruction type, wherein the instruction type comprises at least one of the following: text instructions for text reminders, hypertext transfer protocol instructions for implementing a hypertext transfer protocol based response to a request and feedback, instructions for implementing a custom function, the custom function being distinguished by a portal function name.
3. The method of claim 2, wherein the instruction parameters comprise an entry function name and an entry function parameter of an objective entry function, the entry function name indicating an instruction type, and wherein the objective entry function is an entry function of an instruction execution module to which the instruction corresponds.
4. The method of claim 1, wherein the instruction configuration information comprises code that instructs an entry function of a corresponding instruction execution module, and wherein the method further comprises:
and generating and storing the instruction execution module according to the code of the entry function.
5. The method of claim 1, further comprising:
and when receiving chat robot configuration information, adding the chat robot indicated by the chat robot configuration information into a chat robot set, wherein the identification information of the chat robot included in the instruction configuration information is the identification information of the chat robot in the robot set.
6. The method of claim 1, further comprising:
when receiving the grouping configuration information, adding the target user indicated by the grouping configuration information to a specified user group;
the instruction configuration information also comprises identification information of the specified user group, when the instruction is called according to user instructions, whether the user belongs to the user group corresponding to the identification information is judged, and the instruction execution module is operated only under the condition that the user belongs to the user group corresponding to the identification information.
7. The method of claim 1, further comprising:
and under the condition that the session link of the instant messaging tool corresponding to the chat robot is disconnected, feeding back the instruction execution result in the instant messaging tool corresponding to the chat robot through a specified callback interface.
8. An information processing system, the system comprising:
the instruction configuration module is used for storing the instruction configuration information as an instruction according to a preset data structure when the instruction configuration information is received, wherein the instruction configuration information comprises instruction parameters and identification information of at least one chat robot;
the instruction processing module is used for searching an instruction execution module corresponding to the instruction when the instruction is called, operating the instruction execution module to process the instruction parameter to obtain an instruction execution result, and each instruction execution module corresponds to at least one instruction;
and the execution result feedback module is used for searching and calling the chat robot through the identification information of the chat robot included in the instruction.
9. An electronic system comprising a processor and a memory;
the memory is used for storing a program for executing the method of any one of claims 1 to 7;
the processor is configured to execute programs stored in the memory.
10. A computer-readable storage medium in which a program for executing the method of any one of claims 1 to 7 is stored.
CN202011182171.2A 2020-10-29 2020-10-29 Information processing method, system and storage medium Active CN112306572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011182171.2A CN112306572B (en) 2020-10-29 2020-10-29 Information processing method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011182171.2A CN112306572B (en) 2020-10-29 2020-10-29 Information processing method, system and storage medium

Publications (2)

Publication Number Publication Date
CN112306572A true CN112306572A (en) 2021-02-02
CN112306572B CN112306572B (en) 2023-09-12

Family

ID=74331580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011182171.2A Active CN112306572B (en) 2020-10-29 2020-10-29 Information processing method, system and storage medium

Country Status (1)

Country Link
CN (1) CN112306572B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032467B (en) * 2023-10-08 2024-01-09 成都卓拙科技有限公司 Method, device, electronic equipment and storage medium for interaction with chat robot

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040004A (en) * 2018-01-29 2018-05-15 上海壹账通金融科技有限公司 Control method, device, equipment and the readable storage medium storing program for executing of virtual robot
CN108121221A (en) * 2016-11-26 2018-06-05 沈阳新松机器人自动化股份有限公司 A kind of robotic command interface control system and method
US20190236138A1 (en) * 2018-01-31 2019-08-01 Salesforce.Com, Inc. Temporary Slots for Storing Chat Data
CN110276594A (en) * 2019-06-21 2019-09-24 深圳前海微众银行股份有限公司 A kind of banking operational system and method based on Ansible
CN110609683A (en) * 2019-08-13 2019-12-24 平安国际智慧城市科技股份有限公司 Conversation robot configuration method and device, computer equipment and storage medium
US20190392822A1 (en) * 2018-06-26 2019-12-26 Hitachi, Ltd. Method of controlling dialogue system, dialogue system, and data storage medium
CN110647621A (en) * 2019-09-27 2020-01-03 支付宝(杭州)信息技术有限公司 Method and device for selecting dialogs in robot customer service guide conversation
CN111198790A (en) * 2019-12-23 2020-05-26 深圳市优必选科技股份有限公司 Robot testing method, robot testing device and robot
CN111339266A (en) * 2020-02-13 2020-06-26 深圳市人马互动科技有限公司 Development system of chat robot and chat robot module
CN111722840A (en) * 2020-06-30 2020-09-29 北京来也网络科技有限公司 Command library creating method, device, medium and equipment for RPA flow generating end

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108121221A (en) * 2016-11-26 2018-06-05 沈阳新松机器人自动化股份有限公司 A kind of robotic command interface control system and method
CN108040004A (en) * 2018-01-29 2018-05-15 上海壹账通金融科技有限公司 Control method, device, equipment and the readable storage medium storing program for executing of virtual robot
US20190236138A1 (en) * 2018-01-31 2019-08-01 Salesforce.Com, Inc. Temporary Slots for Storing Chat Data
US20190392822A1 (en) * 2018-06-26 2019-12-26 Hitachi, Ltd. Method of controlling dialogue system, dialogue system, and data storage medium
CN110276594A (en) * 2019-06-21 2019-09-24 深圳前海微众银行股份有限公司 A kind of banking operational system and method based on Ansible
CN110609683A (en) * 2019-08-13 2019-12-24 平安国际智慧城市科技股份有限公司 Conversation robot configuration method and device, computer equipment and storage medium
CN110647621A (en) * 2019-09-27 2020-01-03 支付宝(杭州)信息技术有限公司 Method and device for selecting dialogs in robot customer service guide conversation
CN111198790A (en) * 2019-12-23 2020-05-26 深圳市优必选科技股份有限公司 Robot testing method, robot testing device and robot
CN111339266A (en) * 2020-02-13 2020-06-26 深圳市人马互动科技有限公司 Development system of chat robot and chat robot module
CN111722840A (en) * 2020-06-30 2020-09-29 北京来也网络科技有限公司 Command library creating method, device, medium and equipment for RPA flow generating end

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117032467B (en) * 2023-10-08 2024-01-09 成都卓拙科技有限公司 Method, device, electronic equipment and storage medium for interaction with chat robot

Also Published As

Publication number Publication date
CN112306572B (en) 2023-09-12

Similar Documents

Publication Publication Date Title
US8539336B2 (en) System for linking to documents with associated annotations
EP3011442B1 (en) Method and apparatus for customized software development kit (sdk) generation
CA2915620C (en) Method and apparatus for code virtualization and remote process call generation
US20180365254A1 (en) Method and apparatus for processing information flow data
JP7317879B2 (en) METHOD AND DEVICE, ELECTRONIC DEVICE, STORAGE MEDIUM AND COMPUTER PROGRAM FOR RECOGNIZING VIDEO
US20130031457A1 (en) System for Creating and Editing Temporal Annotations of Documents
US20130031453A1 (en) System for Annotating Documents Served by a Document System without Functional Dependence on the Document System
US20130031454A1 (en) System for Programmatically Accessing Document Annotations
US11573990B2 (en) Search-based natural language intent determination
US20200106860A1 (en) Offline client replay and sync
CN106406844B (en) Method and device for realizing public number menu of communication interaction platform
US20170177171A1 (en) Web browser extension
US10506400B2 (en) Data download method and apparatus
CN108140174A (en) Dialogue and Version Control for object in communication
CN112732386A (en) Message processing method, device, terminal and storage medium
WO2014110929A1 (en) Method, device, and system for uploading data
CN109598001A (en) A kind of information display method, device and equipment
CN112306572B (en) Information processing method, system and storage medium
CN116541591A (en) Information processing method, device, electronic equipment and storage medium
Wilson Building Node Applications with MongoDB and Backbone
CN113946614A (en) iOS (Internet operating System) static library-based network data transmission method, device and system
US10891347B2 (en) Computer-implemented managed references in electronic document systems
US20140201233A1 (en) Method, device, and system for uploading data
CN112995259A (en) Business information pushing method, device, system, equipment and storage medium
US20240211107A1 (en) Method and apparatus for posting group voting and related product

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
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant