Method and device for generating 5G message control flow

文档序号:1908714 发布日期:2021-11-30 浏览:25次 中文

阅读说明:本技术 一种生成5g消息控制流程的方法及装置 (Method and device for generating 5G message control flow ) 是由 蔡君 周平 王昌平 李发禹 詹奎 于 2021-08-27 设计创作,主要内容包括:本申请公开了一种生成5G消息控制流程的方法及装置,通过获取预设的画布及预设的控制组件集;在所述画布中插入所述开始组件;在所述预设版面中插入至少一个流程组件,根据目标需求确定所述流程组件的属性;通过所述连接组件连接所述开始组件和所述流程组件,生成目标控制流程。通过前端页面结合后端抽象的5G消息组件结构,将一个多轮会话场景抽象成一张画布,将多轮会话中的各5G消息组件封装成可视化的图标组件,通过带方向的连接组件将各5G消息组件连接起来体现整个控制流程,将数据提交到服务端保存后,当用户输入消息匹配进入场景后,就会按照定制的流程规则进行交互,这样就可以完成一个多轮会话场景的可视化流程控制。(The application discloses a method and a device for generating a 5G message control flow, which are implemented by acquiring a preset canvas and a preset control component set; inserting the start component in the canvas; inserting at least one flow assembly in the preset layout, and determining the attribute of the flow assembly according to target requirements; and connecting the starting component and the flow component through the connecting component to generate a target control flow. Through the combination of a front-end page and a rear-end abstract 5G message component structure, a multi-round conversation scene is abstracted into a canvas, each 5G message component in the multi-round conversation is encapsulated into a visual icon component, each 5G message component is connected through a connecting component with a direction to embody the whole control flow, after data is submitted to a server for storage, when a user inputs a message matched with the scene, interaction is carried out according to a customized flow rule, and thus, the visual flow control of the multi-round conversation scene can be completed.)

1. A method for generating a 5G message control flow, the method comprising:

acquiring a preset canvas and a preset control assembly set, wherein the control assembly set comprises a starting assembly, a connecting assembly and at least one flow assembly;

inserting the start component in the canvas;

inserting at least one flow assembly in the preset layout, and determining the attribute of the flow assembly according to target requirements;

and connecting the starting component and the flow component through the connecting component to generate a target control flow.

2. The method of generating a 5G message control flow of claim 1, wherein the flow component comprises: a keyword component, a message template component, a scenario component, a suggested reply component, a logical judgment component, and/or a condition component.

3. The method according to claim 2, wherein if the flow component inserted in the preset layout is a logic determination component, the logic determination component needs to connect the condition component through the connection component.

4. An apparatus for generating a 5G message control flow, the apparatus comprising:

the system comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring a preset canvas and a preset control assembly set, and the control assembly set comprises a starting assembly, a connecting assembly and at least one flow assembly;

a generating unit to insert the start component in the canvas;

inserting at least one flow assembly in the preset layout, and determining the attribute of the flow assembly according to target requirements;

and connecting the starting component and the flow component through the connecting component to generate a target control flow.

5. The apparatus of claim 4, wherein the flow component comprises: a keyword component, a message template component, a scenario component, a suggested reply component, a logical judgment component, and/or a condition component.

6. The apparatus of claim 5, wherein the generating unit is further configured to, if the flow component inserted in the preset layout is a logic determining component, connect the condition component through the connecting component by the logic determining component.

7. A display method of a 5G message control flow is characterized by comprising the following steps:

acquiring a user message, and determining whether a user instruction is a click menu;

if not, determining whether the current user cache is in a preset scene or not;

if not, determining whether the current scene can be found;

if not, determining whether the keyword can be found;

if so, the message template is pushed.

8. The method for displaying the 5G message control flow according to claim 7, further comprising:

if the current user cache is in a preset scene, acquiring a current node of the scene;

and circularly traversing the child nodes of the current node to determine whether the child nodes are matched with the preset message.

9. A display device for controlling the flow of 5G messages, which is characterized by comprising:

the information acquisition unit is used for acquiring the user information and determining whether the user instruction is a click menu;

the operation unit is used for judging whether the current user cache is in a preset scene or not;

if not, determining whether the current scene can be found;

if not, determining whether the keyword can be found;

if so, the message template is pushed.

10. The display device of 5G message control flow according to claim 7, wherein the execution unit is further configured to:

if the current user cache is in a preset scene, acquiring a current node of the scene;

and circularly traversing the child nodes of the current node to determine whether the child nodes are matched with the preset message.

Technical Field

The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for generating a 5G message control flow.

Background

In the application scenario of the existing 5G message of rich media communication, the message service is mainly provided for the user through the Chatbot robot. The Chatbot robot receives the uplink message of the user, matches the received message with the message processing logic written in advance, and sends the processing result to the user in the form of the message after the message matching is successful. And the user continues to send the uplink message, and the Chatbot robot continues to perform matching according to the message processing logic written in advance after receiving the message, so that the message interaction between the user and the Chatbot robot is realized. For different application scenarios or service logics, the corresponding message interaction can be performed only by writing the message processing logic in advance. But this hard-coded approach is not flexible enough and increases development and maintenance costs.

Disclosure of Invention

The application provides a method and a device for generating a 5G message control flow, which aim to solve the problem that the existing 5G message control flow hard coding is not flexible enough.

In a first aspect, to achieve the above object, the present application provides a method for generating a 5G message control flow, where the method includes:

acquiring a preset canvas and a preset control assembly set, wherein the control assembly set comprises a starting assembly, a connecting assembly and at least one flow assembly;

inserting the start component in the canvas;

inserting at least one flow assembly in the preset layout, and determining the attribute of the flow assembly according to target requirements;

and connecting the starting component and the flow component through the connecting component to generate a target control flow.

Further, the flow components include: a keyword component, a message template component, a scenario component, a suggested reply component, a logical judgment component, and/or a condition component.

Further, if the flow component inserted into the preset layout is a logic judgment component, the logic judgment component needs to be connected with the condition component through the connection component.

In a second aspect, to achieve the above object, the present application provides an apparatus for generating a 5G message control flow, where the apparatus includes:

the system comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring a preset canvas and a preset control assembly set, and the control assembly set comprises a starting assembly, a connecting assembly and at least one flow assembly;

a generating unit to insert the start component in the canvas;

inserting at least one flow assembly in the preset layout, and determining the attribute of the flow assembly according to target requirements;

and connecting the starting component and the flow component through the connecting component to generate a target control flow.

In a third aspect, to achieve the above object, the present application provides a method for displaying a 5G message control flow, where the method includes:

acquiring a user message, and determining whether a user instruction is a click menu;

if not, determining whether the current user cache is in a preset scene or not;

if not, determining whether the current scene can be found;

if not, determining whether the keyword can be found;

if so, the message template is pushed.

Further, the method further comprises: if the current user cache is in a preset scene, acquiring a current node of the scene; and circularly traversing the child nodes of the current node to determine whether the child nodes are matched with the preset message.

In a fourth aspect, to achieve the above object, the present application provides a medical named entity recognition apparatus, comprising:

the information acquisition unit is used for acquiring the user information and determining whether the user instruction is a click menu;

the operation unit is used for judging whether the current user cache is in a preset scene or not;

if not, determining whether the current scene can be found;

if not, determining whether the keyword can be found;

if so, the message template is pushed.

Further, the operation unit is further configured to:

if the current user cache is in a preset scene, acquiring a current node of the scene;

and circularly traversing the child nodes of the current node to determine whether the child nodes are matched with the preset message.

In a fifth aspect, to achieve the above object, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method for generating a 5G message control flow according to any one of the first aspect; the step of the display method of the 5G message control flow in any one of the third aspect.

In a sixth aspect, to achieve the above object, the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method for generating a 5G message control flow according to any one of the first aspect when executing the program; the step of the display method of the 5G message control flow in any one of the third aspect.

According to the technical scheme, the method and the device for generating the 5G message control flow provided by the embodiment of the application have the advantages that the preset canvas and the preset control assembly set are obtained, and the control assembly set comprises the starting assembly, the connecting assembly and at least one flow assembly; inserting the start component in the canvas; inserting at least one flow assembly in the preset layout, and determining the attribute of the flow assembly according to target requirements; and connecting the starting component and the flow component through the connecting component to generate a target control flow.

The application abstracts a multi-turn conversation scene into a canvas by combining a front-end page with a back-end abstracted 5G message component structure, encapsulates each 5G message component in the multi-turn conversation into a visual icon component, connecting the 5G message components through a connecting component with a direction, such as an arrow, selecting the 5G message component in the editing scene canvas, the attributes and parameters related to the 5G message components can be displayed, the attributes and parameters of the 5G message components can be modified, the storage button is clicked, the whole control flow can be embodied by the obtained 5G message component array and the link information array in the scene canvas, after the data is submitted to the server side for storage, and when the user inputs the message matched with the entering scene, the interaction is carried out according to the customized flow rule, so that the visual flow control of a multi-turn conversation scene can be completed.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.

Drawings

In order to more clearly describe the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.

Fig. 1 is a schematic flowchart of a method for generating a 5G message control flow according to an embodiment of the present application;

FIG. 2 illustrates a 5G message control flow in accordance with a preferred embodiment;

fig. 3 is a schematic flowchart of a display method of a 5G message control flow according to an embodiment of the present application;

fig. 4 is a schematic control flow diagram after entering a scene according to an embodiment of the present application;

fig. 5 is a schematic structural diagram of an apparatus for generating a 5G message control flow according to an embodiment of the present application;

fig. 6 is a schematic structural diagram of a display device of a 5G message control flow provided in an embodiment of the present application.

Detailed Description

The features and advantages of the present application will become more apparent and appreciated from the following detailed description of the application.

The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.

In the description of the present application, it should be noted that the terms "upper", "lower", "inner", "outer", "front", "rear", "left" and "right" and the like indicate orientations or positional relationships based on operational states of the present application, and are only used for convenience of description and simplification of description, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation and be operated, and thus, should not be construed as limiting the present application. Furthermore, the terms "first," "second," "third," and "fourth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.

The RCS is called as Rich media communication (Rich communication Suite), which is an upgraded version of the traditional short message, supports multiple instant communication functions such as picture, character, voice, video, group chat and file transmission, etc., and has no great difference with the general IM software, but the channel is based on IMS (IP multimedia subsystem). The RCS is different from the previous short message and multimedia message products.

Compared with IM social applications such as Whatsapp and Wechat and other applications such as search, payment and location, which are widely applied at present, the RCS does not need to perform operations such as downloading, registration and login. For the user, the RCS will be a WeChat + multifunctional set APP that does not require registration.

In the industry application scenario of RCS' 5G message, the industry application is to provide messaging services to the user through the Chatbot robot. Generally, a Chatbot robot can aim at different industry application scenes, after receiving a message of a user going upstream, the Chatbot robot matches the received message with a message processing logic written in advance, after the message matching is successful, a processing result is sent to the user in the form of the message, the user continues to go upstream, and after receiving the message, the Chatbot robot continues to match the message with the message processing logic written in advance, so that the message interaction between the user and the Chatbot robot is realized. For different industry application scenes or business logics, the processing and coding of the message logics are required to be carried out in advance so as to carry out corresponding message interaction. This hard-coded approach is not flexible enough and increases development and maintenance costs. There is a need to find a technical method to change message interaction into configurable, flow-controlled.

In order to solve the above problems, the present application provides a method and an apparatus for generating a 5G message control flow, and the following describes in detail a specific embodiment of the present application with reference to the accompanying drawings.

Fig. 1 is a schematic flowchart of a method for generating a 5G message control flow according to an embodiment of the present application, and as shown in fig. 1, the method includes steps S101 to S104.

S101: the method comprises the steps of obtaining a preset canvas and a preset control assembly set, wherein the control assembly set comprises a starting assembly, a connecting assembly and at least one flow assembly.

The method abstracts the process progress of the multi-round message conversation of the user and the Chatbot robot into various message interaction scenes; abstracting the message sent by the user in the 5G message and the message type replied by the Chatbot into flow components, such as a message template component, a suggested reply component, a keyword component, a scene component and the like; the association relation among the message components is abstracted into a starting component, a logic judgment component, a condition component, a connection component and the like, and other components can be added according to specific requirements.

During specific implementation, specific attributes of the canvas and the control component set are set in advance in the configuration module according to specific requirements.

S102: inserting the start component in the canvas.

S103: inserting at least one flow assembly in the preset layout, and determining the attribute of the flow assembly according to target requirements.

S104: and connecting the starting component and the flow component through the connecting component to generate a target control flow.

The message template of the 5G message mainly comprises the message types of pictures, videos, keywords, cards, suggested operations, suggested replies and the like, the server side encapsulates the message template and the flow control elements of the 5G message after analysis, the messages in the message template and the elements of the control flow are uniformly abstracted into 5G message components, the flow control of one multi-round conversation becomes the realization of the combination of a plurality of components, and the association among the components is realized through a tree structure.

A start component: each scene must begin with a start component that determines the start of a multi-turn session.

Connecting components: the components are connected as shown by the arrows.

Keyword component: the user input of the keyword can trigger a 5G message multi-turn conversation scene. There can only be one keyword component in a scene.

A message template component: the message template component is a message template which configures a 5G message and replies to the user when the messages sent by the user are matched.

The suggestion reply component: the user selects a button when the user selects the suggested reply message, and pushes the corresponding message template after matching different suggested replies. The suggestion reply component can only be followed by the message template component.

And (3) scene component: the scenario component is used to configure to jump to other scenarios.

A logic judgment component: the logic judgment component is used for distributing flow control, and the logic judgment can be followed only by the condition component. That is, after the message input by the user is matched with the condition, the logic operation corresponding to the corresponding condition component is executed.

Condition components: used for matching the messages selected by the user and executing different flow logics.

In specific implementation, the main data structure of the 5G message component is as follows:

FIG. 2 is a diagram illustrating a 5G message control flow according to a preferred embodiment, the control component set of which as shown in FIG. 2 can include a start component, a message template component, a suggested reply component, a scenario component, a keyword component, a logical judgment component, and a condition component.

Clicking a starting component button, dragging the canvas to generate a starting component, then dragging the canvas to generate a keyword component after clicking the keyword component, editing and setting the keyword component according to requirements, if the keyword is an intelligent guide, then generating a connecting component through drawing an arrow, connecting the starting component and the keyword component, and further setting attributes such as color, shape and the like of the component. Further, a message template component is selected and set as an inquiry, a suggested reply component is connected behind the message template component, and the number of the suggested reply components is set and edited according to specific requirements, such as the head, the back, the legs and the like in the figure; the message template component is set after the reply component is proposed, then a logic judgment component 'logic judgment' is set, a condition component is required to be connected after the logic judgment component, for example, two alternative conditions of A/B are set in the figure, and then the setting is further carried out according to the requirement.

In specific implementation, the node structure of the 5G message in the front-end page is as follows:

directed arrow link data structure between components of 5G messages in front pages:

the application abstracts a multi-turn conversation scene into a canvas by combining a front-end page with a back-end abstracted 5G message component structure, encapsulates each 5G message component in the multi-turn conversation into a visual icon component, connecting the 5G message components through a connecting component with a direction, such as an arrow, selecting the 5G message component in the editing scene canvas, the attributes and parameters related to the 5G message components can be displayed, the attributes and parameters of the 5G message components can be modified, the storage button is clicked, the whole control flow can be embodied by the obtained 5G message component array and the link information array in the scene canvas, after the data is submitted to the server side for storage, and when the user inputs the message matched with the entering scene, the interaction is carried out according to the customized flow rule, so that the visual flow control of a multi-turn conversation scene can be completed.

The present application further provides a method for displaying a 5G message control flow, and fig. 3 is a flowchart of the method for displaying a 5G message control flow, according to a preferred embodiment, which specifically includes:

acquiring a user message, and determining whether a user instruction is a click menu;

if not, determining whether the current user cache is in a preset scene or not;

if not, determining whether the current scene can be found;

if not, determining whether the keyword can be found;

if so, the message template is pushed.

In specific implementation, the pre-made 5G message control flow is stored in the server, and interaction can be performed according to the customized flow after the user inputs the message into the scene. As shown in fig. 3, after receiving the message, the server determines whether the message is a click menu, if not, the message is a text message, determines that the current user cache has a hand in a preset scene, and if so, enters the scene.

As shown in fig. 4, for a control flow diagram after entering a scene, a current scene node is obtained, child nodes of the current node are traversed in a circulating manner, if the child nodes exist, whether the child nodes are matched with a preset message is determined, if the child nodes are matched with the preset message, whether the child nodes are message templates is judged, if the child nodes are matched with the preset message, the message is sent, and the current node is set as the child node of the matched node. If the child node is not the message template, judging whether the child node is a sub scene, if not, ending the scene, if so, entering the scene, and entering the control flow after the scene again. And after the scene is finished, clearing cache information related to the user scene, including data of a scene flow structure, node information of a current component and the like, and releasing the space.

In specific implementation, as shown in fig. 2, if it is determined that the user command is a click menu, it is determined whether the user command is of a normal type, if so, the message template is pushed, and if not, server processing is performed.

The Chatbot robot server side analyzes data and relations of the related message components and the control components, matches uplink messages of the user, executes relative actions, and then downloads corresponding messages to the user to realize control of a 5G message process.

Corresponding to the embodiment of the method for generating the 5G message control flow provided by the present application, the present application also provides an embodiment of a device for generating the 5G message control flow. Referring to fig. 5, a schematic structural diagram of an apparatus for generating a 5G message control flow provided in an embodiment of the present application is shown, where the apparatus includes:

an obtaining unit 100, configured to obtain a preset canvas and a preset control component set, where the control component set includes a starting component, a connecting component, and at least one flow component;

a generating unit 200 for inserting the start component in the canvas;

inserting at least one flow assembly in the preset layout, and determining the attribute of the flow assembly according to target requirements;

and connecting the starting component and the flow component through the connecting component to generate a target control flow.

Corresponding to the embodiment of the display method of the 5G message control flow provided by the application, the application also provides an embodiment of a display device of the 5G message control flow. Referring to fig. 6, a schematic structural diagram of a display device for controlling a flow of a 5G message provided in an embodiment of the present application is shown, where the device includes:

an information obtaining unit 300, configured to obtain a user message, and determine whether a user instruction is a click menu;

the running unit 400 is configured to determine whether the current user cache is in a preset scene or not, if not;

if not, determining whether the current scene can be found;

if not, determining whether the keyword can be found;

if so, the message template is pushed.

Further, the operation unit 400 is further configured to:

if the current user cache is in a preset scene, acquiring a current node of the scene;

and circularly traversing the child nodes of the current node to determine whether the child nodes are matched with the preset message.

According to the method for generating the 5G message control flow, the embodiment of the application further provides a readable storage medium and a computer device. The readable storage medium stores executable program, and the program realizes the steps of the method for generating the 5G message control flow when being executed by the processor; the computer device comprises a memory, a processor and an executable program stored on the memory and capable of running on the processor, wherein the processor realizes the steps of the method for generating the 5G message control flow when executing the program.

The present application has been described in detail with reference to specific embodiments and illustrative examples, but the description is not intended to limit the application. Those skilled in the art will appreciate that various equivalent substitutions, modifications or improvements may be made to the presently disclosed embodiments and implementations thereof without departing from the spirit and scope of the present disclosure, and these fall within the scope of the present disclosure. The protection scope of this application is subject to the appended claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于5G消息的静默客服机器人

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类