Disclosure of Invention
The invention mainly aims to provide a message interaction method, a device, equipment and a computer program product, and aims to solve the technical problem that the use of the geographic position function of the existing APP is complicated so as to influence the user experience.
In order to achieve the above object, the present invention provides a message interaction method, including the steps of:
when a Chatbot directory query request sent by a target terminal is received, acquiring first position information and a query keyword corresponding to the query request;
acquiring Chatbot catalog information based on the first position information and the query keyword, and sequencing the Chatbot catalog information to acquire target Chatbot catalog information;
And feeding back the target Chatbot directory information to the target terminal.
Further, the step of ordering the Chatbot catalog information to obtain target Chatbot catalog information includes:
Acquiring priorities corresponding to the chatbots in the Chatbot catalog information;
And sequencing the Chatbot catalog information based on the priority to obtain target Chatbot catalog information.
Further, the step of feeding back the target Chatbot directory information to the target terminal includes:
If the directory number in the target Chatbot directory information is larger than the preset number, generating information to be forwarded based on directory information of the preset number in the target Chatbot directory information;
And feeding the information to be forwarded back to the target terminal.
Further, after the step of feeding back the information to be forwarded to the target terminal, the method further includes:
Deleting the preset quantity of directory information in the target Chatbot directory information when receiving a viewing request triggered based on the information to be forwarded so as to obtain updated target Chatbot directory information;
And taking the updated target Chatbot directory information as the target Chatbot directory information, and returning to execute the step of generating information to be forwarded based on the directory information of the previous preset number in the target Chatbot directory information if the directory number in the target Chatbot directory information is larger than the preset number.
Further, the message interaction method further comprises the following steps:
When a message sending request sent by a target Chatbot is received, acquiring a 5G message corresponding to the message sending request and second position information of the target Chatbot;
and determining a target receiving terminal corresponding to the 5G message based on the second position information, and sending the 5G message to the target receiving terminal.
Further, the step of determining the target receiving terminal corresponding to the 5G message based on the second location information includes:
Authenticating the target Chatbot to determine whether the target Chatbot has 5G message sending authority;
If the target Chatbot has the 5G message sending authority, determining a terminal to be sent corresponding to the 5G message based on the second position information;
And carrying out number analysis operation on the terminal to be sent so as to obtain the target receiving terminal.
Further, after the step of sending the 5G message to the target receiving terminal, the method further includes:
and carrying out charging operation on the target Chatbot based on the delivery report corresponding to the 5G message so as to obtain a charging ticket of the target Chatbot.
In addition, to achieve the above object, the present invention also provides a message interaction device, including:
The acquisition module is used for acquiring first position information and query keywords corresponding to a query request when receiving the Chatbot directory query request sent by a target terminal;
The query module is used for acquiring the Chatbot catalog information based on the first position information and the query keywords, and sequencing the Chatbot catalog information to acquire target Chatbot catalog information;
And the feedback module is used for feeding back the target Chatbot catalog information to the target terminal.
In addition, in order to achieve the aim, the invention also provides a message interaction device, which comprises a memory, a processor and a message interaction program stored in the memory and capable of running on the processor, wherein the message interaction program is executed by the processor to realize the steps of the message interaction method.
Furthermore, to achieve the above object, the present invention provides a computer program product comprising a computer program which, when being executed by a processor, implements the steps of the message interaction method described above.
According to the method, when the Chatbot catalog inquiry request sent by the target terminal is received, the first position information and the inquiry keyword corresponding to the inquiry request are acquired, then the Chatbot catalog information is acquired based on the first position information and the inquiry keyword, the Chatbot catalog information is ordered to obtain the target Chatbot catalog information, then the target Chatbot catalog information is fed back to the target terminal, so that the original support of the mobile terminal is realized, no APP is required to be installed, the terminal user can search for nearby merchants chatbots through the position information of the terminal, the user operation in the using process is greatly reduced, and the user experience is improved.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a message interaction device in a hardware running environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, or can be a mobile terminal device with a display function, such as a smart phone, a tablet personal computer, an electronic book reader, an MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 4) player, a portable computer and the like.
As shown in fig. 1, the message interaction device may comprise a processor 1001, e.g. a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the message interaction device may further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 does not constitute a limitation of the message interaction device and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a message interaction program may be included in the memory 1005, which is a type of computer storage medium.
In the message interaction device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server, the user interface 1003 is mainly used for connecting to a client (user side) and performing data communication with the client, and the processor 1001 may be used for calling a message interaction program stored in the memory 1005.
In this embodiment, the message interaction device comprises a memory 1005, a processor 1001 and a message interaction program stored in the memory 1005 and executable on the processor 1001, wherein the processor 1001 invokes the message interaction program stored in the memory 1005 and performs the steps of the message interaction method in the following embodiments.
The invention also provides a message interaction method, referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the message interaction method of the invention.
At present, the 5G message service is a brand new upgrade of the terminal original basic short message service, and a brand new information service entrance is constructed. The user can complete one-stop service experience such as multimedia receiving and transmitting, service searching, finding, interacting, paying and the like in the message window. For government and enterprise clients, the government and enterprises can directly send public service and business service to end users without paying attention to the fact that called users are not required to be called according to APP, the public service and business service are directly presented on a message interface of the users in a rich media and interactive mode, an intelligent channel more convenient to the users is built, a more direct interaction mode is achieved, and brand new business experience is brought.
Therefore, in this embodiment, the message interaction method is applied to a message interaction system, where the message interaction system is a 5G message interaction system, and the message interaction system is provided with a MaaP platform, and when a terminal accesses the message interaction system, a registration operation is performed, for example, a registration request is initiated to the MaaP platform, where the registration request carries location information of the terminal, the location information includes the current geographic location longitude and geographic location latitude of the terminal, and the message interaction system performs registration of the terminal according to the registration request and obtains the location information of the terminal in the registration request.
The message interaction method comprises the following steps:
Step S101, when a Chatbot catalog query request sent by a target terminal is received, acquiring first position information and query keywords corresponding to the query request;
In this embodiment, after the target terminal registers in the message interaction system, the user may query, through the message interface, related information of the chat robot Chatbot in the message interaction system, specifically, the user may generate, through the target terminal, a request for cooking a meal, where the request for querying the Chatbot directory may include a query keyword, current location information of the terminal, and so on, to the message interaction system.
When a Chatbot catalog query request sent by a target terminal is received, first position information and a query keyword corresponding to the query request are obtained, specifically, a message query system can obtain the first position information and the query keyword by analyzing the Chatbot catalog query request, the first position information is current position information of the target terminal, and the query keyword can comprise words, IDs, names and the like.
Step S102, acquiring Chatbot catalog information based on the first position information and the query keyword, and sequencing the Chatbot catalog information to acquire target Chatbot catalog information;
In this embodiment, after acquiring the first location information, the message query system acquires Chatbot directory information based on the first location information and the query key,
Specifically, target information corresponding to the query keyword can be obtained first, the Chatbot directory information is screened according to the first position information in the target information corresponding to the query keyword, or the target information corresponding to the first position information is obtained first, and the Chatbot directory information is screened in the target information corresponding to the first position information, wherein when the Chatbot directory information is screened according to the first position information, the second position information of the Chatbot in the Chatbot directory information is identical to the first position information or is in a preset area range corresponding to the first position information.
And then ordering the Chatbot catalog information to obtain target Chatbot catalog information.
Specifically, the MaaP platform includes a Chatbot directory module and a decision/screening and filtering module, where the Chatbot directory module applies a query policy to the decision/screening and filtering module, and the decision/screening and filtering module queries the corresponding Chatbot directory information in a preset database or a storage module corresponding to the message interaction system through a query keyword in the Chatbot directory query request and the Chatbot directory information corresponding to the first location information. And then, the decision/screening and filtering module orders the Chatbot catalog information to obtain target Chatbot catalog information, and returns the target Chatbot catalog information to the Chatbot catalog module.
Step S103, feeding back the target Chatbot catalog information to the target terminal.
In this embodiment, when the target Chatbot directory information is obtained, the message interaction system feeds back the target Chatbot directory information to the target terminal.
According to the message interaction method, when the Chatbot directory query request sent by the target terminal is received, the first position information and the query keyword corresponding to the query request are acquired, the Chatbot directory information is acquired based on the first position information and the query keyword, the Chatbot directory information is ordered to obtain the target Chatbot directory information, the target Chatbot directory information is fed back to the target terminal, the original support of the mobile terminal is achieved, no APP is required to be installed, the terminal user can search for nearby merchants chatbots through the position information of the terminal, user operation in the using process is greatly reduced, and user experience is improved.
Based on the first embodiment, a second embodiment of the message interaction method of the present invention is proposed, in this embodiment, step S102 includes:
step S201, acquiring priorities corresponding to the chatbots in the Chatbot directory information;
Step S202, sorting the Chatbot directory information based on the priority, so as to obtain target Chatbot directory information.
In this embodiment, after the Chatbot directory information is obtained, the message interaction system obtains priorities corresponding to the chatbots in the Chatbot directory information, where the priorities may be reasonably set according to the searching times corresponding to the chatbots, whether the merchant corresponding to the chatbots is a payment merchant, and so on.
And then, the message interaction system orders the Chatbot catalog information based on the priority so as to obtain target Chatbot catalog information.
According to the message interaction method, the priorities corresponding to the chatbots in the Chatbot catalog information are obtained, then the Chatbot catalog information is ordered based on the priorities to obtain target Chatbot catalog information, and the accuracy of ordering of the Chatbot catalog in the target Chatbot catalog information can be improved by ordering the Chatbot catalog information according to the priorities, so that a user can check hotter Chatbot catalog in time, and user experience is further improved.
Based on the first embodiment, a third embodiment of the message interaction method of the present invention is proposed, in this embodiment, step S103 includes:
step S301, if the number of directories in the target Chatbot directory information is greater than a preset number, generating information to be forwarded based on the directory information of the previous preset number in the target Chatbot directory information;
step S302, the information to be forwarded is fed back to the target terminal.
It should be noted that, when the user sends the Chatbot directory query request through the target terminal, the preset number may be set in the Chatbot directory query request, or the preset number is preset by the message interaction system.
In this embodiment, after the target Chatbot directory information is obtained, the directory number of each Chatbot directory in the target Chatbot directory information is calculated, and whether the directory number is greater than a preset number is determined. If so, generating information to be forwarded based on the directory information of the preset number in the target Chatbot directory information, and feeding the information to be forwarded back to the target terminal, wherein the number of the directories is m, the preset number is n, and if m > n, the Chatbot directory module returns the first n results in all search results, namely the first n results in the target Chatbot directory information, to the target terminal.
According to the message interaction method, if the directory number in the target Chatbot directory information is larger than the preset number, information to be forwarded is generated based on the directory information of the preset number before in the target Chatbot directory information, then the information to be forwarded is fed back to the target terminal, the number of data transmitted currently can be reduced, a large number of useless Chatbot directories are prevented from being sent to the target terminal, the target terminal can timely receive the Chatbot directory information, and user experience is further improved.
Based on the third embodiment, a fourth embodiment of the message interaction method of the present invention is provided, in this embodiment, after step S302, the message interaction method further includes:
step S401, when receiving a viewing request triggered based on the information to be forwarded, deleting a preset number of directory information in the target Chatbot directory information to obtain updated target Chatbot directory information;
Step S402, the updated target Chatbot directory information is used as the target Chatbot directory information, and the step of generating information to be forwarded based on the directory information of the previous preset number in the target Chatbot directory information if the directory number in the target Chatbot directory information is larger than the preset number is performed in a return mode.
In this embodiment, when the information to be forwarded is fed back, a trigger button for viewing more targets may be set on the display interface of the information to be forwarded, and the user may trigger a query request (a request for viewing more Chatbot directories) through the button. When receiving a viewing request triggered based on the information to be forwarded, deleting the preset quantity of directory information in the target Chatbot directory information to obtain updated target Chatbot directory information, taking the updated target Chatbot directory information as the target Chatbot directory information, and returning to step S301 to enable a user to view more Chatbot directories currently queried.
In other embodiments, when the user wishes to view the subsequent search result, the view request may carry the query keyword, the result position pointer at the beginning of the query, and the number n of results returned at one time, and the Chatbot directory module returns the n+1st to 2n results in all the search results to the target terminal according to the view request.
According to the message interaction method, when a viewing request triggered based on the information to be forwarded is received, the preset quantity of directory information is deleted from the target Chatbot directory information to obtain updated target Chatbot directory information, then the updated target Chatbot directory information is used as the target Chatbot directory information, and if the quantity of the directory in the target Chatbot directory information is larger than the preset quantity, the step of generating the information to be forwarded based on the preset quantity of directory information in the target Chatbot directory information is performed, so that the Chatbot target can be sent to the target terminal in batches according to user requirements when the quantity of the directory of the target Chatbot directory information is larger, the data transmission quantity is reduced while the user requirements are met, and the user experience is further improved.
Based on the foregoing embodiments, a fifth embodiment of the message interaction method of the present invention is provided, where in the present embodiment, the message interaction method further includes:
Step S501, when a message sending request sent by a target Chatbot is received, acquiring a 5G message corresponding to the message sending request and second location information of the target Chatbot;
step S502, determining a target receiving terminal corresponding to the 5G message based on the second location information, and sending the 5G message to the target receiving terminal.
In this embodiment, for the merchant Chatbot, the Chatbot can conveniently perform downlink and interaction on the target terminal based on the scheme. Specifically, a position pointer sending mode is added to the Chatbot downlink message interface. In the first mode, the group sending message can carry the address array of the receiving party, and at most 100 numbers are supported. The second mode is a receiver address group pointer maintained by the Chatbot, the third mode is a general receiver address group pointer, which is usually a administrative area, and the fourth mode is a location area adding mode.
When a message sending request sent by a target Chatbot is received, acquiring a 5G message corresponding to the message sending request and second position information of the target Chatbot, determining a target receiving terminal corresponding to the 5G message based on the second position information, sending the 5G message to the target receiving terminal, specifically, firstly acquiring position information of all terminals in communication connection with a message interaction system, determining a preset area corresponding to the second position information, and taking a terminal with the position information in the preset area of all terminals as a target receiving terminal.
In this embodiment, the merchant developed a variety of more personalized business scenarios that were combined with their applications. For example, a restaurant enterprise can push bills to guests at a store, and can complete buying bills at a message interface, or push recommended dishes, a mall can push discount preferential information or notification to guests at the mall, and a user can search nearby restaurants and complete queuing for taking numbers or ordering dishes.
Specifically, the message interaction system comprises a 5GMC, the target Chatbot calls MaaP an API interface externally provided by the platform, a message sending request is sent to MaaP platform of the message interaction system, and the message carries a position area pointer. If the file needs to be transmitted, the file uploading process is also needed. The MaaP platform analyzes the location area pointer, calls the API interface of the message server, and sends the 5G message to the message processing module 5GMC, wherein the 5G message carries the location area pointer in the 5 GMC. The 5GMC analyzes the receiver list or pointer, and performs intelligent judgment such as authentication, number analysis and the like according to the set service logic to determine whether to allow the 5G message to be sent, and then matches a target receiving terminal which can send with the location area according to the location area corresponding to the second location information. And the 5GMC transmits the 5G message to all target receiving terminals to be received through a SIP MESSAGE method according to the subsequent steps and message patterns of the transmission of the common A2P message.
Further, in an embodiment, after step S502, the method further includes:
and carrying out charging operation on the target Chatbot based on the delivery report corresponding to the 5G message so as to obtain a charging ticket of the target Chatbot.
In this embodiment, the existing flow is adopted in the delivery report flow, the message interaction system performs charging operation on the target Chatbot based on the delivery report corresponding to the 5G message, so as to obtain a charging ticket of the target Chatbot, and then the message interaction system may perform statistical analysis according to the delivery report.
It should be noted that the 5G message may support multiple media formats, for example, the 5G message includes one or more of text, picture, video, and netpage card, where a fixed menu or a hover menu may be set, and a read reply key may be set. And the target receiving terminal can download, read, click and interact after receiving the target.
According to the message interaction method, when the message sending request sent by the target Chatbot is received, the 5G message corresponding to the message sending request and the second position information of the target Chatbot are obtained, then the target receiving terminal corresponding to the 5G message is determined based on the second position information, the 5G message is sent to the target receiving terminal, a merchant can conveniently and directly obtain a customer in a mode of paying attention and the like according to a position area, the problem that the target Chatbot is troublesome in obtaining a called number is solved, the number is not required to be specified, and a target terminal client is downloaded in batches, so that the merchant is greatly facilitated, and the user experience is further improved.
Based on the fifth embodiment, a sixth embodiment of the message interaction method of the present invention is provided, in this embodiment, step S502 includes:
Step S601, authenticating the target Chatbot to determine whether the target Chatbot has the 5G message sending authority;
Step S602, if the target Chatbot has a 5G message sending authority, determining, based on the second location information, a terminal to be sent corresponding to the 5G message;
Step S603, performing a number analysis operation on the terminal to be sent, so as to obtain the target receiving terminal.
In this embodiment, after the second location information is obtained, the target Chatbot is authenticated to determine whether the target Chatbot has the 5G message sending authority, for example, the target Chatbot is judged to have the 5G message sending authority by the ID of the target Chatbot.
If the terminal to be sent corresponding to the 5G message is determined based on the second position information, specifically, the position information of all terminals in communication connection with the message interaction system is firstly obtained, a preset area corresponding to the second position information is determined, and the terminal with the position information in the preset area in all terminals is used as the terminal to be sent.
And then, carrying out number analysis operation on the terminal to be sent, judging whether the terminal to be sent has a terminal which is not allowed to receive the 5G message or not through the number analysis operation, if so, eliminating the terminal which is not allowed to receive the 5G message from the terminal to be sent to obtain the target receiving terminal, otherwise, taking the terminal to be sent as the target receiving terminal.
According to the message interaction method, whether the target Chatbot has the 5G message sending authority is determined by authenticating the target Chatbot, then a terminal to be sent corresponding to the 5G message is determined based on the second position information if the target Chatbot has the 5G message sending authority, then number analysis operation is carried out on the terminal to be sent to obtain the target receiving terminal, and accuracy of sending the 5G message is improved, sending of the 5G message to the terminal which is not allowed to be received is avoided, and user experience is further improved.
The present invention also provides a message interaction device, referring to fig. 3, the message interaction device includes:
The acquisition module 10 is configured to acquire first location information and a query keyword corresponding to a query request when receiving the Chatbot directory query request sent by a target terminal;
The query module 20 is configured to obtain Chatbot directory information based on the first location information and the query keyword, and order the Chatbot directory information to obtain target Chatbot directory information;
and the feedback module 30 is used for feeding back the target Chatbot directory information to the target terminal.
The method executed by each program unit may refer to each embodiment of the message interaction method of the present invention, and will not be described herein.
The invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention has stored thereon a message interaction program which, when executed by a processor, implements the steps of the message interaction method as described above.
The method implemented when the message interaction program running on the processor is executed may refer to various embodiments of the message interaction method of the present invention, which are not described herein again.
Furthermore, the embodiment of the invention also provides a computer program product, which comprises a message interaction program, wherein the message interaction program realizes the steps of the message interaction method when being executed by a processor.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.