Charging method and device and electronic equipment

By distinguishing and independently billing the types of 5G messages and adopting different billing methods, the problems of poor billing effect and accuracy in the prior art are solved, and accurate billing of interactive messages and actively issuing messages is achieved.

CN119052012AActive Publication Date: 2024-11-29CHINA MOBILE INTERNET CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411151033.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-29
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

The prior art cannot effectively distinguish and independently bill interactive messages and actively send messages in 5G messages, resulting in poor billing effect and accuracy.

Method used

By obtaining the target message to be billed, determining its type (interactive message or actively issuing messages), and using different billing methods to bill. Interactive messages adopt the first billing method, and actively issuing messages adopt the second billing method. The first billing method is different from the second billing method.

Benefits of technology

Differentiated independent billing for interactive messages and proactively issuing messages is realized, improving the billing effect and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052012A_ABST
    Figure CN119052012A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a charging method and device and electronic equipment. The charging method comprises the following steps: acquiring a to-be-charged target message; the type of the target message is determined, the type of the target message comprises an interaction message and an active issuing message, the interaction message is a message replied by the chat robot after the user terminal sends an uplink message to the chat robot, and the active issuing message is a message actively issued by the chat robot; if the type of the target message is an interactive message, charging the target message by adopting a first charging mode; and if the type of the target message is an active issuing message, the target message is charged by adopting a second charging mode, and the first charging mode is different from the second charging mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a billing method, device, electronic device, storage medium and program product. Background Art

[0002] Driven by the fifth generation of communication technology (5th Generation Wireless Systems, 5G), 5G messages, as a new type of rich media communication method, are gradually changing the landscape of traditional information services. It not only supports text, but also integrates multiple forms such as pictures, videos, location information, interactive cards, etc., bringing users a richer and more intuitive communication experience. However, with the acceleration of its commercialization process, how to effectively manage and bill this diversified communication service has become a new challenge facing the industry. In view of the different forms of 5G messages, emerging billing technologies perform differentiated billing based on the actual sending form of 5G messages (such as text, pictures, videos, etc.).

[0003] In some scenarios, there are generally two types of 5G messages, namely, active messages and interactive messages. Among them, the distinction between interactive messages and active messages is based on the definition of the message trigger source. If the 5G message sent is a message replied by the chatbot after the user goes up to the chatbot, it is defined as an interactive message. If the message is sent directly by the chatbot, it is defined as an active message. Interactive messages originate from the interaction between users and chatbots, and are usually associated with business scenarios such as customer service and consultation. Active messages are mostly pushed by merchants or platforms, such as marketing notifications, news information and other business scenarios. There are significant differences between interactive messages and active messages in business scenarios, user value perception and cost structure. Therefore, interactive messages and active messages need to be charged independently. However, a unified billing method is currently used to charge active messages and interactive messages. It is impossible to distinguish and independently charge interactive messages, and the billing effect and accuracy are poor. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a billing method, device, electronic device, storage medium and program product, which can identify interactive messages and independently perform billing, but the accuracy of the billing effect is poor.

[0005] In order to solve the above technical problems, the embodiments of the present application are implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a billing method, the billing method comprising: obtaining a target message to be billed; determining the type of the target message, the type of the target message comprising an interactive message and an actively sent message, the interactive message being a message replied by the chat robot after a user terminal sends an uplink message to the chat robot, and the actively sent message being a message actively sent by the chat robot; if the type of the target message is the interactive message, the target message is billed using a first billing method; if the type of the target message is the actively sent message, the target message is billed using a second billing method, and the first billing method is different from the second billing method.

[0007] In a second aspect, an embodiment of the present application provides a billing device, which includes: an acquisition module, used to acquire a target message to be billed; a determination module, used to determine the type of the target message, the type of the target message including an interactive message and an actively sent message, the interactive message is a message replied by the chat robot after a user terminal sends an uplink message to the chat robot, and the actively sent message is a message actively sent by the chat robot; a billing module, used to bill the target message using a first billing method if the type of the target message is the interactive message; and a billing module, also used to bill the target message using a second billing method if the type of the target message is the actively sent message, the first billing method being different from the second billing method.

[0008] In the third aspect, an embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to implement the billing method steps mentioned in the first aspect.

[0009] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the billing method steps mentioned in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the billing method steps mentioned in the first aspect.

[0011] Through the technical solution disclosed in the embodiment of the present application, the target message to be billed is obtained, and then the type of the target message is determined. The types of target messages include interactive messages and actively sent messages. Interactive messages are messages that are replied by the chat robot after the user terminal sends an uplink message to the chat robot. Actively sent messages are messages actively sent by the chat robot. If the type of the target message is an interactive message, the first billing method is used to bill the target message. If the type of the target message is an actively sent message, the second billing method is used to bill the target message, and the first billing method and the second billing method are different. In this way, interactive messages and actively sent messages can be billed independently and differentiated, which improves the billing effect and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0013] Figure 1 A flowchart of a billing method provided in an embodiment of the present application;

[0014] Figure 2 A schematic diagram of the interaction process provided in an embodiment of the present application;

[0015] Figure 3 A schematic diagram of the module composition of a charging device provided in an embodiment of the present application;

[0016] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The purpose of the embodiments of the present application is to provide a billing method, device, electronic device, storage medium and program product, which can identify interactive messages and independently perform billing, but the accuracy of the billing effect is poor.

[0018] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0019] For example, Figure 1As shown, an embodiment of the present application provides a billing method, the execution subject of the method may be a fifth generation mobile communication technology (5th Generation Wireless Systems, 5G) message platform, and the billing method may specifically include the following steps:

[0020] In step S101, a target message to be charged is obtained.

[0021] Specifically, the target message may be a 5G message transmitted from the chatbot, such as Figure 2 As shown, an interactive process is shown. First, the terminal actively sends an uplink message to the 5G message platform. The 5G message platform forwards the message to the chatbot. The Chatbot replies to the uplink message of the terminal and sends the replied 5G message to the 5G message platform. The 5G message platform returns the 5G message replied by the Chatbot to the terminal. The 5G message platform receives the uplink reply message corresponding to the 5G message sent by the chatbot in the previous step by the terminal (such as the user clicks the button in the 5G message sent by the chatbot on the terminal to reply, or clicks the button to jump to the dial call, or clicks the button to jump to other web pages and APP links, etc., and a reply message will be sent to the 5G message platform) or the 5G message platform waits for the terminal to reply later (generally set to wait for 10 minutes, and the timeout will be recorded as the interactive message has not been replied). The 5G message platform records the relevant information of this interactive process and generates a call list file, which will be handed over to the subsequent billing network element for billing. In the above process, if the user sends an uplink message and the chat robot sends a 5G message in response to the user's uplink message, then the type of this type of message is an interactive message. If the chat robot directly sends the 5G message, then this type of message is an actively sent message.

[0022] In step S103, the type of the target message is determined.

[0023] Specifically, the types of target messages include interactive messages and actively sent messages. Interactive messages are messages that are replied to by the chat robot after the user terminal sends an uplink message to the chat robot, and actively sent messages are messages that are actively sent by the chat robot.

[0024] When determining the type of the target message, it can be determined based on the reply identifier carried by the target message, or based on the experience score of the chatbot.

[0025] The type of target message can be determined based on the chatbot's experience score: the 5G messaging platform records the user's experience score for the chatbot after each interaction, and takes the average experience score in the most recent period as the chatbot's experience score. When sending the target message, if the 5G messaging platform determines that the chatbot's experience score is high, the type of the target message sent is directly determined to be an interactive message.

[0026] For determining the type of the target message based on the reply identifier carried by the target message, it can be: determining the type of the target message based on whether the target message carries a reply identifier; if the target message carries a reply identifier, determining the type of the target message is an interactive message; if the target message does not carry a reply identifier, determining the type of the target message is an actively sent message.

[0027] Specifically, when the chatbot sends a target message through the 5G messaging platform, if it carries inReplyToMessageID (reply identifier), it means that the Chatbot declares that the type of this target message is an interactive message. If it does not carry inReplyToMessageID, it can be directly judged that the type of the target message is an actively sent message, and it is charged according to the actively sent message. The inReplyToMessageID field value recorded in the billing call record file is empty.

[0028] In step S105, if the type of the target message is an interactive message, the target message is charged using the first charging method; if the type of the target message is an actively sent message, the target message is charged using the second charging method.

[0029] The first billing method is different from the second billing method.

[0030] Specifically, interactive messages and actively sent messages can be charged differently. Interactive messages can be charged using the first charging method, and actively sent messages can be charged using the second charging method. In both the first and second charging methods, differentiated charging can be performed based on the message form of the target message, such as the cost of messages such as pictures and videos is higher than the cost of text messages. However, in the first charging method, the cost of the message is lower than the cost of the message in the second charging method. For example, if the message form of the target message is a video, the cost of charging the message in the first charging method is lower than the cost of charging the message in the second charging method.

[0031] Furthermore, when the type of the target message is an interactive message, user complaints, the quality of the user sending the 5G message, and whether the user replies after receiving the target message sent by the chat robot will affect the interactive message. Therefore, the billing coefficient of the target message can be calculated based on the above factors, and the target message can be charged based on the billing coefficient and the basic fee of the target message in the first billing method.

[0032] In one possible implementation, if the target message type is an interactive message, the target message is charged using a first billing method, including: determining a message format of the target message and a fee corresponding to the message format; determining a billing coefficient of the target message; and charging the target message according to the fee and the billing coefficient.

[0033] Specifically, the billing coefficient of the interactive message can be determined by the complaint risk coefficient, user quality coefficient and message conversion coefficient of the chat robot. The complaint risk coefficient indicates the complaint rate of the chat robot, and the complaint risk coefficient is proportional to the complaint rate. The user quality coefficient indicates the type of interactive behavior corresponding to the interactive message, and the user quality coefficient is proportional to the type of interactive behavior. The message conversion coefficient indicates whether the user generates interactive behavior in response to the interactive message. The message conversion coefficient of the user generating interactive behavior in response to the interactive message is greater than the message conversion coefficient of the user not generating interactive behavior in response to the interactive message.

[0034] More specifically, the billing coefficient can be determined by the following formula:

[0035] P=(P C +P U )*P M

[0036] Among them, P is the billing coefficient, P U Refers to the user quality coefficient, P C Refers to the complaint risk factor, P M Refers to the message conversion coefficient.

[0037] For the above complaint risk factor P C , based on the total number of messages n sent by the chatbot in the recent period c And the total number of complaint messages received during the corresponding period m c Calculated using the following formula:

[0038]

[0039] Among them, min() is the minimum function, which returns the value with the smallest value among the function parameters. From the above formula, it can be intuitively obtained that when the approximate message complaint rate (1+n c ) / (1+m c ) is less than or equal to one ten-thousandth, PC The value will be equal to the minimum value 1. When the message complaint rate is greater than one in ten thousand, P C The value will be greater than 1. The higher the message complaint rate, the higher the complaint risk factor. c ) / (1+m c ) is greater than or equal to 0.1, P C The value will be equal to the maximum value 4, and the possible value range of the chatbot's complaint risk coefficient is [1, 4].

[0040] For the user quality factor P U , you can count and send the number of active days of users last month U D 、Total number of days in the previous month U M , interactive behavior occurred last month (interactive behavior refers to the above Figure 2 The number of interactive behaviors between the terminal and the chat robot shown in U , the number of types of interactive behaviors generated by users last month T U (For example, there are 5 types of interactive behaviors: automatic reply, dialing a number, jumping to the APP, opening a link, and displaying the geographic location) Use the following formula to calculate:

[0041]

[0042] Among them, min() is the minimum function, which returns the value with the largest value among the function parameters. From the formula, it can be seen that the more active days the user had in the previous month and the more times the user interacted with the user (M U Equal to M max When the user quality coefficient reaches the maximum value of 0.5, M U More than M max In the future, it is believed that the user may have malicious behavior, and the coefficient will decrease instead). The more types of interactive behaviors there are, the higher the user quality coefficient is. The possible value range of the user quality coefficient is [0,2].

[0043] For the message conversion coefficient P M The message conversion coefficient can indicate the coefficient of the type of message that the user will reply to later. After the 5G messaging platform sends the chat robot's target message to the terminal, it will wait for the terminal user to reply to the target message. The process of the terminal user replying to the target message is: the user clicks the button in the sent target message on the terminal to reply to the message, and a visible message will be uploaded to the 5G messaging platform. The user clicks the button on the terminal to jump to the dial call, or clicks the button to jump to other web pages and APP links, etc., and an invisible message will be uploaded to the 5G messaging platform. The 5G messaging platform will wait for up to 10 minutes.

[0044] The terminal's reply message is paired using a pairing rule similar to that used in the target message judgment: the value of the MessageID (message identifier, each downlink target message is unique, using a universally unique identifier (UUID)) field carried in the sent target message is matched with the value of the inReplyToMessageID (reply identifier) ​​field in the message record of the terminal's subsequent reply. If they are consistent, the reply message is matched, and the 5G message platform records the message type of the matched reply message in the billing call record and gives it to the billing network element. The billing network element determines the message type of the matched user's subsequent reply message. If the user subsequently clicks the button to jump to the web page or APP, it indicates that the message conversion effect is good, and the billing network element will charge according to the first message conversion coefficient. If the user does not reply to the message within a period of time (such as 10 minutes), it indicates that the message conversion effect is poor, and the billing network element will charge according to the second message conversion coefficient. The first message conversion coefficient is higher than the second message conversion coefficient. The correspondence between the type of reply message to which the specific user replies and the message conversion coefficient can be configured according to actual conditions. P M The possible value range is [0.1,2], which is not listed here in detail.

[0045] Through the technical solution provided by the present application, the target message to be billed is obtained, and then the type of the target message is determined. The types of target messages include interactive messages and actively sent messages. Interactive messages are messages that are replied by the chat robot after the user terminal sends an uplink message to the chat robot. Actively sent messages are messages actively sent by the chat robot. If the type of the target message is an interactive message, the first billing method is used to bill the target message. If the type of the target message is an actively sent message, the second billing method is used to bill the target message, and the first billing method and the second billing method are different. In this way, interactive messages and actively sent messages can be billed independently and differentiated, which improves the billing effect and accuracy.

[0046] After the 5G messaging platform sends the target message sent by the chatbot, it waits for the user to reply to the target message to record the message conversion effect. At the same time, the corpus material generated by this interaction will also be used to update the semantic model later. After waiting for the conversation to end, the interaction experience score is pushed to the user to fill in, the experience score of the interaction process is recorded, and the experience score of the corresponding chatbot is updated. In this way, the chatbot's experience score is updated in real time to ensure the accuracy of determining the type of the target message.

[0047] After determining that the type of the target message is an interactive message, the legitimacy of the interactive message can also be verified. If the interactive message is legal, the type of the target message is ultimately determined to be an interactive message. If the interactive message is illegal, the type of the target message is re-determined to be an actively sent message.

[0048] In one possible implementation, when determining the legitimacy of an interactive message, the following method may be used: searching the uplink message record for a target uplink message that matches the target message; if there is a target uplink message that matches the target message in the uplink message record, determining that the target message is a legitimate interactive message; if there is no target uplink message that matches the target message in the uplink message record, redetermining the type of the target message as an actively sent message.

[0049] Among them, the uplink message record refers to the historical record of messages actively sent uplink by the user through the terminal. The uplink message record records all uplink messages sent by the terminal. Each uplink message corresponds to message information, such as message identifier (such as using UUID), called number and calling number, and the sending time of the uplink message. The corresponding target message will also carry message information, such as reply identifier, called number and calling number, and the sending time of the target message. The target uplink message that matches the target message is determined by matching the message information carried by the above-mentioned daily uplink messages with the message of the target message. In this way, by verifying the legitimacy of the interactive message, the accuracy of identifying the interactive message can be further improved, thereby further improving the billing accuracy.

[0050] In a possible implementation, searching the uplink message record for a target uplink message that matches the target message includes: searching the uplink message record for a message identifier of the uplink message; and determining an uplink message whose message identifier is consistent with a reply identifier as the target uplink message.

[0051] Specifically, the 5G message platform will record all the fields of each message sent by the platform or forwarded to the chatbot via the platform in the temporary storage device of the message to form an uplink message record. When the chatbot is ready to generate a billing call record file after sending the message, the value of the MessageID (message identifier, each uplink message is unique, using UUID) field in the terminal uplink message record is searched according to the value of the inReplyToMessageID (reply identifier, the same below) field carried by the sent target message. If there is an uplink message MessageID that is consistent with the inReplyToMessageID of the sent target message, proceed to the next step of judgment; if the chatbot does not carry the inReplyToMessageID field when sending the message or the 5G message platform cannot match the corresponding uplink message, it is judged that the message is actually sent actively, and the inReplyToMessageID field value recorded in the call record file is empty. The check here is used to limit the chatbot to only reply to the downlink interactive message after receiving the uplink message.

[0052] In one possible implementation, searching for a target uplink message that matches the target message from the uplink message record includes: searching for first number information carried by the uplink message from the uplink message record; determining second number information carried by the target message; and determining the uplink message whose first number information is consistent with the second number information as the target uplink message.

[0053] Specifically, the first number information and the second number information both include a calling number and a called number, and the target uplink message matching the target message can be determined based on the consistency of the calling number and the called number in the first number information and the called number in the second number information.

[0054] More specifically, the 5G messaging platform records the values ​​of the address field (caller number, here is the Chatbot's id) and destinationAddress field (called number, here is the user's terminal's mobile phone number) carried when the chatbot sends a message, and compares the values ​​of the destinationAddress field (called number, here is the Chatbot's id) and address (caller number, here is the user's terminal's mobile phone number) field in the uplink message record. If the two are consistent, the interactive message is determined to be legal; if they are inconsistent, the type of the target message is re-determined as an active downlink message, and the inReplyToMessageID field value recorded in the call log file is empty. The check here is used to limit the chatbot to only reply to interactive messages to users who actually send uplink messages, and only the chatbot that the user is uplinking can reply, and replies from other chatbots are invalid.

[0055] In one possible implementation, searching for a target uplink message that matches the target message from the uplink message record includes: searching for an uplink send time carried by the uplink message from the uplink message record; determining a downlink send time carried by the target message; and determining an uplink message whose time difference between the uplink send time and the downlink send time is less than a threshold as the target uplink message.

[0056] Specifically, the 5G message platform records the time when the chatbot sends the message, and searches for the value of the sendTime (uplink sending time of the uplink message) field in the uplink message record stored in the temporary storage device of the message. If the downlink sending time of the sent message is within a certain validity period (threshold) after the uplink message legal person sending time (the validity period can be set, generally thirty minutes), it is judged to be a legal interactive message. Each interactive message judged to be legal by this step increases the chatbot's credit by 0.01. At the same time, the 5G message platform will record the value of inReplyToMessageID of this sent message in the call list file. If the downlink sending time of the sent message exceeds the validity period of the uplink sending time of the uplink message, it is judged to be an active message, and the inReplyToMessageID field value recorded in the call list file is empty. The check here is used to limit the chatbot to reply to interactive messages only within a certain validity period. If it exceeds the validity period, it is considered that the Chatbot actively re-sends the message.

[0057] In one possible implementation, searching for a target uplink message that matches a target message from an uplink message record includes: searching for a first content of the uplink message from the uplink message record; determining a second content of the target message; calculating a correlation between the first content and the second content; and determining an uplink message having a correlation greater than a preset value as a target uplink message.

[0058] Specifically, the 5G messaging platform trains a text vectorization model m based on open source large corpus data and existing natural language processing methods. This model can convert the input text string A into a semantic vector m(A). The semantic vectors of semantically similar string texts after vector conversion are also similar in the vector direction.

[0059] The 5G messaging platform first calculates the semantic vector m(U) for the text U (first content) of the uplink message sent by the user (if the user clicks a button, the text here is the text corresponding to the button name), and then determines the content format of the second content of the target message sent by the chatbot, and calculates the correlation between the first content and the second content in a corresponding manner according to different content formats. The following different judgment methods are adopted for different content formats of the second content of the target message:

[0060] Format of text message: extract the text message content C (second content) of the target message sent by the chatbot and directly calculate the semantic vector m(C) through the text vectorization model m.

[0061] Image or video message: Use a pre-trained artificial intelligence (AI) image / video description model to generate a text description C of the image or video message based on the image or video message in the target message sent by the chatbot, and then calculate the semantic vector m(C) through the text vectorization model m.

[0062] Audio message: Use the pre-trained open source speech conversion model to convert the audio message into a text description message C based on the audio message sent by the chatbot, and then calculate the semantic vector m(C) through the text vectorization model m.

[0063] Multi-card messages: For each card, extract the multimedia content in the card message and the text content such as the card content and card theme. The multimedia message content in the card uses the pre-trained image / video / audio description model to generate the text description message of each card message; the text content in the card is directly spliced ​​to the generated text description message. Then, the text description messages corresponding to all cards are spliced ​​into the text description content C of the card message, and then the semantic vector m(C) is calculated through the text vectorization model m.

[0064] Other types of messages: rare files such as word and pdf or other types of messages can be transferred to manual judgment and processing.

[0065] After obtaining the semantic vector m(A) of the user's uplink message and the semantic vector m(C) of the target message sent by the chatbot, the cosine dot product method is used to calculate the correlation between the two vectors m(A) and m(C). Only messages with high correlation will be judged as interactive messages, and the value of inReplyToMessageID will be recorded in the call log file. Among them, the correlation with a correlation greater than a preset value can be determined as a correlation with high correlation. The preset value can be determined according to actual conditions, and the embodiment of the present application is no longer limited here.

[0066] It is worth noting that the above-mentioned methods of verifying the legitimacy of interactive messages can be used alone or in combination. When used in combination, the interactive messages are determined to be legitimate only if they meet the conditions in the above-mentioned verification methods, thereby further improving the accuracy of judging the type of the target message.

[0067] Corresponding to the charging method provided in the above embodiment, based on the same technical concept, the embodiment of the present application also provides a charging device, Figure 3 A schematic diagram of the module composition of a billing device provided in an embodiment of the present application, wherein the billing device is used to execute Figure 1 Describe the billing method, such as Figure 3 As shown, the billing device 300 includes: an acquisition module 301, used to acquire a target message to be billed; a determination module 302, used to determine the type of the target message, the type of the target message includes an interactive message and an actively sent message, the interactive message is a message replied by the chat robot after the user terminal sends an uplink message to the chat robot, and the actively sent message is a message actively sent by the chat robot; a billing module 303, used to use a first billing method to bill the target message if the type of the target message is an interactive message; the billing module 303 is also used to use a second billing method to bill the target message if the type of the target message is an actively sent message, and the first billing method is different from the second billing method.

[0068] It can be seen from the technical solution provided by the above embodiment of the present application that the target message to be billed is obtained, and then the type of the target message is determined. The types of target messages include interactive messages and actively sent messages. Interactive messages are messages that are replied by the chat robot after the user terminal sends an uplink message to the chat robot. Actively sent messages are messages actively sent by the chat robot. If the type of the target message is an interactive message, the first billing method is used to bill the target message. If the type of the target message is an actively sent message, the second billing method is used to bill the target message, and the first billing method and the second billing method are different. In this way, interactive messages and actively sent messages can be billed independently and differentiated, which improves the billing effect and accuracy.

[0069] In a possible implementation, the determination module 302 is also used to determine the type of the target message based on whether the target message carries a reply identifier; if the target message carries a reply identifier, the type of the target message is determined to be an interactive message; if the target message does not carry a reply identifier, the type of the target message is determined to be an actively sent message.

[0070] In a possible implementation, it also includes: a search module, used to search for a target uplink message that matches the target message from the uplink message record; if there is a target uplink message that matches the target message in the uplink message record, the target message is determined to be a legitimate interactive message; if there is no target uplink message that matches the target message in the uplink message record, the type of the target message is re-determined as an actively sent message.

[0071] In a possible implementation, the search module is further configured to search for a message identifier of the uplink message from the uplink message record; and determine the uplink message whose message identifier is consistent with the reply identifier as the target uplink message.

[0072] In a possible implementation, the search module is also used to search the first number information carried by the uplink message from the uplink message record; determine the second number information carried by the target message; and determine the uplink message whose first number information is consistent with the second number information as the target uplink message.

[0073] In one possible implementation, the search module is also used to search for the uplink sending time carried by the uplink message from the uplink message record; determine the downlink sending time carried by the target message; and determine the uplink message whose time difference between the uplink sending time and the downlink sending time is less than a threshold as the target uplink message.

[0074] In a possible implementation, the search module is also used to search for the first content of the uplink message from the uplink message record; determine the second content of the target message; calculate the correlation between the first content and the second content; and determine the uplink message whose correlation is greater than a preset value as the target uplink message.

[0075] In a possible implementation, the billing module 303 is further used to determine the message form of the target message and the fee corresponding to the message form; determine the billing coefficient of the target message; and bill the target message according to the fee and the billing coefficient.

[0076] The billing device provided in the embodiment of the present application can implement each process in the embodiment corresponding to the above-mentioned billing method, and has the same or similar beneficial effects. To avoid repetition, it will not be described here.

[0077] It should be noted that the billing device provided in the embodiment of the present application and the billing method provided in the embodiment of the present application are based on the same application concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned billing method, and has the same or similar beneficial effects, and the repeated parts will not be repeated.

[0078] Corresponding to the charging method provided in the above embodiment, based on the same technical concept, the embodiment of the present application further provides an electronic device, which is used to execute the above charging method. Figure 4 A schematic diagram of the structure of an electronic device for implementing each embodiment of the present application is shown in FIG. Figure 4 As shown. The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors 401 and memory 402, and the memory 402 may store one or more storage applications or data. Among them, the memory 402 may be a temporary storage or a permanent storage. The application stored in the memory 402 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the electronic device.

[0079] Furthermore, the processor 401 may be configured to communicate with the memory 402 to execute a series of computer executable instructions in the memory 402 on the electronic device. The electronic device may also include one or more power supplies 403, one or more wired or wireless network interfaces 404, one or more input and output interfaces 405, and one or more keyboards 406.

[0080] Specifically in this embodiment, the electronic device includes a processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface and the memory communicate with each other through the bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to achieve the above Figure 1 The various steps in the method embodiment are similar to those in the method embodiment, and have the beneficial effects of the above method embodiments. To avoid repetition, the embodiments of the present application will not be described again here.

[0081] This embodiment also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above Figure 1 Each step in the method embodiment has the beneficial effects of the above method embodiments. To avoid repetition, the embodiments of the present application will not be described again here.

[0082] The present application provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the above Figure 1 Each step in the method embodiment has the beneficial effects of the above method embodiments. To avoid repetition, the embodiments of the present application will not be described again here.

[0083] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0084] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0085] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0086] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0087] In a typical configuration, an electronic device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0088] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0089] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0090] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0091] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0092] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A charging method, characterized in that: The billing method includes: Get the target message to be charged; Determine the type of the target message, where the type of the target message includes an interactive message and an actively sent message, where the interactive message is a message replied by the chat robot after the user terminal sends an uplink message to the chat robot, and the actively sent message is a message actively sent by the chat robot; If the type of the target message is the interactive message, the target message is charged using the first charging method; If the type of the target message is the actively sent message, the target message is charged using a second charging method, and the first charging method is different from the second charging method.

2. The charging method according to claim 1, characterized in that: Determining the type of the target message includes: Determining the type of the target message according to whether the target message carries a reply identifier; If the target message carries the reply identifier, determining that the type of the target message is the interactive message; If the target message does not carry the reply identifier, it is determined that the type of the target message is the actively sent message.

3. The charging method according to claim 2, characterized in that: If the target message carries the reply identifier, after determining that the type of the target message is the interactive message, the method further includes: Searching for a target uplink message matching the target message from the uplink message record; If there is a target uplink message matching the target message in the uplink message record, the target message is determined to be a legitimate interactive message. If there is no target uplink message matching the target message in the uplink message record, the type of the target message is re-determined as an actively sent message.

4. The charging method according to claim 3, characterized in that: The searching the target uplink message matching the target message from the uplink message record includes: Searching for a message identifier of an uplink message from the uplink message record; The uplink message whose message identifier is consistent with the reply identifier is determined as the target uplink message.

5. The charging method according to claim 3, characterized in that: The searching the target uplink message matching the target message from the uplink message record includes: Searching the first number information carried in the uplink message from the uplink message record; Determining second number information carried by the target message; An uplink message having the first number information consistent with the second number information is determined as the target uplink message.

6. The charging method according to claim 3, characterized in that: The searching the target uplink message matching the target message from the uplink message record includes: Searching the uplink sending time carried by the uplink message from the uplink message record; Determine the downlink sending time carried by the target message; An uplink message whose time difference between the uplink sending time and the downlink sending time is less than a threshold is determined as the target uplink message.

7. The charging method according to claim 3, characterized in that: The searching the target uplink message matching the target message from the uplink message record includes: Searching for a first content of an uplink message from the uplink message record; determining a second content of the target message; calculating the correlation between the first content and the second content; An uplink message with a correlation greater than a preset value is determined as the target uplink message.

8. The charging method according to any one of claims 1 to 7, characterized in that: If the type of the target message is the interactive message, charging the target message using the first charging method includes: Determine a message form of the target message and a fee corresponding to the message form; Determining a charging factor for the target message; The target message is charged according to the fee and the charging factor.

9. A charging device, characterized in that: include: An acquisition module, used to acquire a target message to be charged; a determination module, configured to determine the type of the target message, wherein the type of the target message includes an interactive message and an actively sent message, wherein the interactive message is a message replied by the chat robot after the user terminal sends an uplink message to the chat robot, and the actively sent message is a message actively sent by the chat robot; a charging module, configured to charge the target message by adopting a first charging method if the type of the target message is the interactive message; The charging module is further used to, if the type of the target message is the actively sent message, use a second charging method to charge the target message, and the first charging method is different from the second charging method.

10. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to implement the billing method steps as described in any one of claims 1-8.

Citation Information

Patent Citations

  • 5G message fallback method and system, computing device and storage medium

    CN114449458A

  • Chat robot message processing method and device and storage medium

    CN115776472A

  • Cross-domain accounting data processing method, system, device, medium and product

    CN115880008A

  • Message charging method and device and storage medium

    CN117615336A

  • 5G message charging method and system, storage medium and program product

    CN118139009A