Message interaction method, device and storage medium

文档序号:1543594 发布日期:2020-01-17 浏览:8次 中文

阅读说明:本技术 消息交互方法、装置及存储介质 (Message interaction method, device and storage medium ) 是由 段雨洛 吴小山 孙蒙 于 2019-09-26 设计创作,主要内容包括:本发明公开了一种消息交互方法,包括:在监测收到消息时,若当前界面为接收到所述消息的界面,在当前界面上显示浮动交互窗口;根据所述消息生成交互提示,并根据所述交互提示生成相应数量的按钮控件,所述浮动交互窗口用于显示所述按钮控件,所述交互提示显示在所述按钮控件上;响应对所述按钮控件进行的交互操作指令,并在当前界面展示所述交互提示对应的功能窗口。本发明能够有效提高用户接收到的消息中可提供的交互服务的类型及数量,以进一步提高用户交互的丰富度与智能性。本发明还提供了一种消息交互装置和存储介质。(The invention discloses a message interaction method, which comprises the following steps: when monitoring that a message is received, if the current interface is the interface receiving the message, displaying a floating interaction window on the current interface; generating an interactive prompt according to the message, and generating a corresponding number of button controls according to the interactive prompt, wherein the floating interactive window is used for displaying the button controls, and the interactive prompt is displayed on the button controls; and responding to the interactive operation instruction of the button control, and displaying a function window corresponding to the interactive prompt on the current interface. The invention can effectively improve the type and the quantity of the interactive services provided in the messages received by the user so as to further improve the richness and the intelligence of the user interaction. The invention also provides a message interaction device and a storage medium.)

1. A message interaction method, comprising:

when monitoring that a message is received, if the current interface is the interface receiving the message, displaying a floating interaction window on the current interface;

generating an interactive prompt according to the message, and generating a corresponding number of button controls according to the interactive prompt, wherein the floating interactive window is used for displaying the button controls, and the interactive prompt is displayed on the button controls;

and responding to the interactive operation instruction of the button control, and displaying a function window corresponding to the interactive prompt on the current interface.

2. The message interaction method of claim 1, further comprising: when a new message is monitored, if the new message is a message which cannot generate an interaction prompt, removing a button control corresponding to a previous message displayed by the floating interaction window;

if the new message is a message capable of generating an interactive prompt, generating a new interactive prompt according to the new message, and generating a corresponding number of new button controls according to the new interactive prompt; and replacing the button control corresponding to the last message displayed by the floating interactive window with the new button control.

3. The message interaction method of claim 2, further comprising: and when monitoring that a message is received, if the current interface is not the interface for receiving the message, displaying the floating interaction window on the current interface when the message enters the interface for the first time after being received.

4. The message interaction method as claimed in claim 3, wherein if the interaction prompt is a one-time interaction prompt, after responding to a one-time interaction operation instruction for the button control corresponding to the one-time interaction prompt, the button control is cleared in the floating interaction window.

5. The message interaction method as claimed in claim 4, wherein the floating interaction window comprises a presentation window and a hidden window, when the total length of each of the button control arrangements is greater than the length of the presentation window, a part of the button controls are presented in the presentation window, and the rest of the button controls are hidden in the hidden window.

6. The message interaction method as claimed in claim 5, wherein when a window sliding instruction is received, the button control in the hidden window is slid to the presentation window for presentation.

7. A message interaction apparatus, comprising:

the window display module is used for displaying a floating interactive window on a current interface if the current interface is the interface for receiving the message when monitoring the received message;

the control display module is used for generating interactive prompts according to the messages and generating a corresponding number of button controls according to the interactive prompts, the floating interactive window is used for displaying the button controls, and the interactive prompts are displayed on the button controls;

and the interactive function module is used for responding to an interactive operation instruction carried out on the button control and displaying a function window corresponding to the interactive prompt on the current interface.

8. A message interaction device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the message interaction method of any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the message interaction method according to any one of claims 1 to 6.

Technical Field

The present invention relates to the field of mobile communications technologies, and in particular, to a message interaction method, an apparatus, and a storage medium.

Background

In the mobile communication industry, traditional short messages/multimedia messages and public number messages are main popularization approaches for enterprises to carry out advertising, activity marketing and the like on users. Businesses also typically provide business transactions, notification alerts, customer services to users in this manner.

However, the traditional short message/multimedia message/message is only sent to the user by a single party of the enterprise, and in the prior art of the user, the schemes for improving the interactivity between the user and the enterprise are as follows: through the intelligent short message and the RCS public number message provided with the button control, after the user receives the intelligent short message and the RCS public number message, the user can quickly jump to interactive operations such as a specified interface (for example, an active link page, an enterprise APP and the like), an uplink reply message, service handling (for example, service unsubscribe, order confirmation and the like) and the like through the button control, and the interactivity between the user and an enterprise is greatly improved.

The inventor finds that the following technical problems exist in the prior art in the process of implementing the invention:

button controls of intelligent short messages and RCS public number messages are usually in a message body and are limited by message content bearing and message body display which is not too large, so that the number of the button controls is limited, and the number and the types of service directions of the button controls are limited.

Disclosure of Invention

The embodiment of the invention provides a message interaction method, which can effectively improve the type and the number of interactive services provided in a message received by a user so as to further improve the richness and the intelligence of user interaction.

An embodiment of the present invention provides a message interaction method, including:

when monitoring that a message is received, if the current interface is the interface receiving the message, displaying a floating interaction window on the current interface;

generating an interactive prompt according to the message, and generating a corresponding number of button controls according to the interactive prompt, wherein the floating interactive window is used for displaying the button controls, and the interactive prompt is displayed on the button controls;

and responding to the interactive operation instruction of the button control, and displaying a function window corresponding to the interactive prompt on the current interface.

As an improvement of the above scheme, the method further comprises the following steps: when a new message is monitored, if the new message is a message which cannot generate an interaction prompt, removing a button control corresponding to a previous message displayed by the floating interaction window;

if the new message is a message capable of generating an interactive prompt, generating a new interactive prompt according to the new message, and generating a corresponding number of new button controls according to the new interactive prompt; and replacing the button control corresponding to the last message displayed by the floating interactive window with the new button control.

As an improvement of the above scheme, the method further comprises the following steps: and when monitoring that a message is received, if the current interface is not the interface for receiving the message, displaying the floating interaction window on the current interface when the message enters the interface for the first time after being received.

As an improvement of the above scheme, if the interaction prompt is a one-time interaction prompt, after a one-time interaction operation instruction is performed on the button control corresponding to the one-time interaction prompt, the button control is cleared in the floating interaction window.

As an improvement of the above scheme, the floating interactive window includes a display window and a hidden window, and when the total length of the arrangement of the button controls is greater than the length of the display window, a part of the button controls are displayed in the display window, and the rest of the button controls are hidden in the hidden window.

As an improvement of the above scheme, when a window sliding instruction is received, the button control in the hidden window is slid to the display window for displaying.

Correspondingly, an embodiment of the present invention provides a message interaction apparatus, including:

the window display module is used for displaying a floating interactive window on a current interface if the current interface is the interface for receiving the message when monitoring the received message;

the control display module is used for generating interactive prompts according to the messages and generating a corresponding number of button controls according to the interactive prompts, the floating interactive window is used for displaying the button controls, and the interactive prompts are displayed on the button controls;

and the interactive function module is used for responding to an interactive operation instruction carried out on the button control and displaying a function window corresponding to the interactive prompt on the current interface.

Correspondingly, the third embodiment of the present invention provides a message interaction apparatus, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the message interaction method according to the first embodiment of the present invention is implemented.

Correspondingly, an embodiment four of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the message interaction method according to the embodiment one of the present invention.

Compared with the prior art, the message interaction method provided by the embodiment of the invention has the following beneficial effects:

the floating interactive window is used as a display carrier of the button control, so that the button control is not necessarily displayed in a message body, and the interaction is more convenient and fast for a user; the button controls are displayed in the floating interactive window, the button controls can slide left and right according to the sliding operation of a user, more button controls can be borne in a limited space, the content of the message and the interactive service types and quantity provided by the button controls are enriched, and the service capability of an enterprise to the user is improved; the user can transmit new messages through the button control to realize multi-round conversation with an enterprise or a platform, the button space with one-time function disappears after the user clicks, and useless functions are not accumulated; and when a new message appears, a button control of the latest message can be displayed, so that the interaction is more flexible and intelligent, enterprise service, popularization and marketing appeal are better met, the quick, efficient and convenient experience requirements of users are better met, and the richness and the intelligence of the user interaction are further improved.

Drawings

Fig. 1 is a flowchart illustrating a message interaction method according to an embodiment of the present invention.

Fig. 2 is a schematic diagram illustrating a floating interaction window of a message interaction method according to an embodiment of the present invention.

Fig. 3 is a schematic diagram illustrating another floating interactive window of a message interaction method according to an embodiment of the present invention.

Fig. 4 is a schematic structural diagram of a message interaction apparatus according to a second embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1, an embodiment of the present invention provides a message interaction method, including:

s101, when monitoring that a message is received, if the current interface is the interface for receiving the message, displaying a floating interaction window on the current interface;

s102, generating interactive prompts according to the messages, and generating a corresponding number of button controls according to the interactive prompts, wherein the floating interactive window is used for displaying the button controls, and the interactive prompts are displayed on the button controls;

s103, responding to an interactive operation instruction of the button control, and displaying a function window corresponding to the interactive prompt on a current interface.

Further, the method also comprises the following steps: when a new message is monitored, if the new message is a message which cannot generate an interaction prompt, removing a button control corresponding to a previous message displayed by the floating interaction window;

if the new message is a message capable of generating an interactive prompt, generating a new interactive prompt according to the new message, and generating a corresponding number of new button controls according to the new interactive prompt; and replacing the button control corresponding to the last message displayed by the floating interactive window with the new button control.

Further, the method also comprises the following steps: and when monitoring that a message is received, if the current interface is not the interface for receiving the message, displaying the floating interaction window on the current interface when the message enters the interface for the first time after being received.

Further, if the interaction prompt is a one-time interaction prompt, after a one-time interaction operation instruction of the button control corresponding to the one-time interaction prompt is responded, the button control is cleared from the floating interaction window.

Furthermore, the floating interactive window comprises a display window and a hidden window, when the total length of the arrangement of the button controls is greater than the length of the display window, part of the button controls are displayed in the display window, and the rest of the button controls are hidden in the hidden window.

Further, when a window sliding instruction is received, sliding the button control in the hidden window to the display window for displaying.

In a specific embodiment, referring to fig. 2, when monitoring that a preferential activity push message of a certain platform is received, if an operation interface of a user is not a push interface of the message at this time, a floating interaction window is not displayed, and when the user enters the push interface of the message for the first time after receiving the message, the floating interaction window is displayed below the current message push interface. And generating interaction prompts according to the interaction information carried by the push message, wherein the interaction prompts such as 'online customer service' interacting with the customer service are displayed on each button control one by one, so that a user can select different button controls according to different interaction prompts, and a function window corresponding to the interaction prompt is displayed on the current interface, or text details are displayed on the current interface or a webpage is jumped.

When a user selects a button control corresponding to the 'online customer service', sending corresponding text details to a mobile terminal of the user, when a new message is monitored (the new message at this time is returned text details), judging the new message as a message capable of generating an interactive prompt, wherein the new interactive prompt is a coupon, a red packet, an activity description and the like, when the user selects the button control corresponding to the activity description, the new message at this time is the activity description sent by the user through the button control, judging the new message as the message capable of generating the interactive prompt, wherein the new interactive prompt at this time is the content in specific activities, such as '3-fold closed top', 'how the red packet is used' and the like, and the total length of the arrangement of each button control exceeds the length of a display window, so that only part of the button controls are displayed in the display window, when a leftward sliding instruction of a user is received, the buttons are sequentially slid leftward, and the button controls in the hidden window on the original right side are displayed, so that more selectable options of more interaction types are provided for the user, and the interaction experience is improved. Referring to fig. 3, when the user selects "how the red envelope uses" button control, the text details of the usage mode are displayed, and at this time, the interactive prompt displayed on the new button control is useful or not for evaluating whether the response provided by the customer service is useful, so that the enterprise or the platform can intuitively receive the first real feedback of the user, and the self-improvement efficiency of the enterprise or the platform is improved.

Compared with the prior art, the message interaction method provided by the embodiment of the invention has the following beneficial effects:

the floating interactive window is used as a display carrier of the button control, so that the button control is not necessarily displayed in a message body, and the interaction is more convenient and fast for a user; the button controls are displayed in the floating interactive window, the button controls can slide left and right according to the sliding operation of a user, more button controls can be borne in a limited space, the content of the message and the interactive service types and quantity provided by the button controls are enriched, and the service capability of an enterprise to the user is improved; the user can transmit new messages through the button control to realize multi-round conversation with an enterprise or a platform, the button space with one-time function disappears after the user clicks, and useless functions are not accumulated; and when a new message appears, a button control of the latest message can be displayed, so that the interaction is more flexible and intelligent, enterprise service, popularization and marketing appeal are better met, the quick, efficient and convenient experience requirements of users are better met, and the richness and the intelligence of the user interaction are further improved.

Referring to fig. 4, correspondingly, an embodiment of the present invention provides a message interaction apparatus, including:

the window display module 201 is configured to, when monitoring that a message is received, display a floating interaction window on a current interface if the current interface is an interface on which the message is received;

a control display module 202, configured to generate an interaction prompt according to the message, and generate a corresponding number of button controls according to the interaction prompt, where the floating interaction window is used to display the button controls, and the interaction prompt is displayed on the button controls;

and the interactive function module 203 is configured to respond to an interactive operation instruction performed on the button control, and display a function window corresponding to the interactive prompt on the current interface.

Correspondingly, a third embodiment of the present invention provides a message interaction apparatus, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the message interaction method according to the first embodiment of the present invention is implemented. The message interaction device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing equipment. The message interaction device may include, but is not limited to, a processor, a memory.

Correspondingly, the fourth embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the message interaction method according to the first embodiment of the present invention.

The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the message interaction device and the various interfaces and lines connecting the various parts of the overall message interaction device.

The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the message interaction device by running or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.

Wherein, the integrated module/unit of the message interaction device can be stored in a computer readable storage medium if it is implemented in the form of software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), random-access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like.

It should be noted that the above-described device embodiments are merely illustrative, and units illustrated as separate components may or may not be physically separate, and components illustrated as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.

While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种翻页方法及装置

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类