Message response method and apparatus, computing device, storage medium, and program product
By obtaining the session access token of the multimedia application from the target server and using an artificial intelligence model to respond to session messages, the problem of high cost and low efficiency in multimedia applications is solved, and automated response and efficient message processing are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING 58 INFORMATION TTECH CO LTD
- Filing Date
- 2025-04-28
- Publication Date
- 2026-04-24
AI Technical Summary
In existing technologies, it is costly and inefficient for service providers to respond to session messages in multimedia applications, requiring manual replies to consumers one by one.
By providing account authorization prompts through the target server, we obtain the session access token from the multimedia server, generate a response message using the target AI model combined with domain knowledge, and send it to the client through the multimedia server.
It enables automatic responses to multimedia application session messages, reducing costs, avoiding untimely or missed responses, and improving efficiency.
Smart Images

Figure CN120342720B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a message response method, apparatus, computing device, storage medium, and program product. Background Technology
[0002] With the development of internet technology, service providers (such as service providers) who provide services to consumers have begun to choose to promote and sell their services (such as service products) through the internet.
[0003] Currently, in order to attract more consumers to purchase their services, service providers typically choose to publish multimedia content promoting their services across various multimedia applications. This requires service providers to constantly monitor and reply to conversation messages sent by consumers on different media systems, which is costly and inefficient. Improvement is urgently needed. Summary of the Invention
[0004] This application provides a message response method, apparatus, computing device, storage medium, and program product to solve the problems of high cost and low efficiency in responding to session messages in multimedia applications in the prior art.
[0005] This application provides a message response method applied to a target server of a target application, comprising: providing account authorization prompt information to a target client corresponding to the target application, so that the target client displays the account authorization prompt information; receiving a first session authorization request sent by the target client for a first media account in a multimedia application; the first session authorization request is generated in response to the triggering operation of the account authorization prompt information; responding to the first session authorization request, sending a second session authorization request for the first media account to a multimedia server corresponding to the multimedia application, so that the multimedia server authorizes the first media account for a session and returns a session access token for the first media account; obtaining a first session message from the multimedia server based on the session access token of the first media account; the first session message is a session message sent by a second client corresponding to a second media account in the multimedia application to a first client corresponding to the first media account; determining a target artificial intelligence model corresponding to the first media account; using the target artificial intelligence model and combining the domain knowledge corresponding to the first media account, generating a first response message corresponding to the first session message; and sending the first response message as a response message from the first client to the first session message to the second client through the multimedia server.
[0006] This application embodiment also provides a message response method applied to a target client of a target application, comprising: receiving account authorization prompt information provided by a target server of the target application; displaying the account authorization prompt information; generating a first session authorization request for a first media account in a multimedia application in response to a trigger operation for the account authorization prompt information; sending the first session authorization request to the target server, so that the target server, in response to the first session authorization request, sends a second session authorization request for the first media account to a multimedia server corresponding to the multimedia application, and the multimedia server authorizes the first media account for a session and returns a session access token for the first media account; the target server is further configured to obtain a first session message from the multimedia server based on the session access token of the first media account; the first session message is a session message sent by a second client corresponding to a second media account in the multimedia application to a first client corresponding to the first media account; determining a target artificial intelligence model corresponding to the first media account; using the target artificial intelligence model, combined with the domain knowledge corresponding to the first media account, generating a first response message corresponding to the first session message; and sending the first response message as a response message from the first client to the first session message to the second client through the multimedia server.
[0007] This application embodiment also provides a message response device, configured on a target server of a target application, comprising: a first sending module, configured to provide account authorization prompt information to a target client corresponding to the target application, so that the target client displays the account authorization prompt information; a first receiving module, configured to receive a first session authorization request sent by the target client for a first media account in a multimedia application; the first session authorization request is generated in response to the triggering operation of the account authorization prompt information; the first sending module is further configured to, in response to the first session authorization request, send a second session authorization request for the first media account to the multimedia server corresponding to the multimedia application, so that the multimedia server grants session authorization to the first media account and provides feedback to the first media account. The system includes: a session access token for the account; a message acquisition module for acquiring a first session message from the multimedia server based on the session access token of the first media account; the first session message being a session message sent by a second client corresponding to a second media account in the multimedia application to a first client corresponding to the first media account; a model determination module for determining a target artificial intelligence model corresponding to the first media account; a message response module for generating a first response message corresponding to the first session message using the target artificial intelligence model and the domain knowledge corresponding to the first media account; and a message sending module for sending the first response message as a response message from the first client to the first session message to the second client through the multimedia server.
[0008] This application embodiment also provides a message response device, configured on a target client of a target application, including: a second receiving module, used to receive account authorization prompt information provided by a target server of the target application; a display module, used to display the account authorization prompt information; a request generation module, used to generate a first session authorization request for a first media account in a multimedia application in response to a trigger operation for the account authorization prompt information; and a second sending module, used to send the first session authorization request to the target server, so that the target server, in response to the first session authorization request, sends a second session authorization request for the first media account to the multimedia server corresponding to the multimedia application, and the multimedia server performs [further actions] on the first media account. The system authorizes a session and returns a session access token for the first media account. The target server is also configured to obtain a first session message from the multimedia server based on the session access token of the first media account. The first session message is a session message sent from a second client corresponding to a second media account in the multimedia application to a first client corresponding to the first media account. The system determines a target artificial intelligence model corresponding to the first media account. Using the target artificial intelligence model and combining it with the domain knowledge corresponding to the first media account, a first response message corresponding to the first session message is generated. The first response message is then sent to the second client as a response message from the first client to the first session message through the multimedia server.
[0009] This application also provides a computing device, including a processing component and a storage component; the storage component stores a computer program; the computer program is invoked and executed by the processing component to implement the above-described information response method.
[0010] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processing component, implements the above-described information response method.
[0011] This application also provides a computer program product, including a computer program or instructions, which, when executed by a processing component, implement the above-described information response method.
[0012] In this embodiment, the target server provides account authorization prompts to the target client. In response to the target client's first session authorization request for the first media account, the server sends a second session authorization request for the first media account to the multimedia server. This allows the multimedia server to authorize the first media account and issue a session access token. Based on the session access token, the server obtains the first session message sent by the second client (for the second media account) to the first client (for the first media account). Using the target AI model corresponding to the first media account and domain knowledge, the server generates a first response message. This first response message is then sent to the second client as the first client's response to the first session message through the multimedia server. This embodiment obtains access to session messages in multimedia applications by requesting session authorization for the multimedia account. This allows for automatic responses to session messages from different media applications, reducing message response costs and avoiding untimely or missed session messages due to manual responses.
[0013] These or other aspects of this application will become more apparent in the following description of the embodiments. Attached Figure Description
[0014] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0015] Figure 1 A system architecture diagram corresponding to the target application provided in the exemplary embodiments of this application is shown.
[0016] Figure 2 A flowchart of a message response method provided by an exemplary embodiment of this application is shown.
[0017] Figure 3 A flowchart of yet another message response method provided by an exemplary embodiment of this application is shown.
[0018] Figure 4 This illustration shows a set of interface diagrams for a private message management process provided by an exemplary embodiment of this application.
[0019] Figure 5 A schematic diagram of the structure of a message response device provided in an exemplary embodiment of this application is shown.
[0020] Figure 6 A schematic diagram of the structure of a message response device provided in an exemplary embodiment of this application is shown.
[0021] Figure 7A schematic diagram of the structure of the computing device for message response provided in this application is shown. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0023] It should be noted that the technical solutions in this application are applicable to virtual network environments, and the users described generally refer to "virtual users." Real users can register user accounts on the server through registration to obtain user identities in the network environment. The same user account can log in to the server through different types of clients, enabling the server to identify the same user.
[0024] Interactions between the server and the user can be based on user accounts. The data received or sent by the server to the user is also based on the user account; in reality, the client corresponding to the user account receives or sends data to the server. Furthermore, users can also communicate with each other through their user accounts. Here, "user" can refer to an individual or an organization, such as a company; this application does not impose specific restrictions.
[0025] It should be noted that, in the cases involving user information in this application's embodiments, the user information (including but not limited to user characteristic data, user multimedia accounts, service accounts, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application's embodiments are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse. In addition, the various artificial intelligence models involved in this application (including but not limited to language models or large models) comply with relevant laws and standards.
[0026] Additionally, it should be noted that when user interaction operations or triggering operations are involved in the embodiments of this application, these operations include, but are not limited to, various interaction methods such as touch operations, gesture operations, voice operations, head movement operations, and eye movement operations. Touch operations include, but are not limited to, click operations, double-click operations, long-press operations, swipe operations, pinch operations, or mouse hover operations. Swipe operations include, but are not limited to, straight-line swipes and curved-line swipes.
[0027] Furthermore, it should be noted that when the embodiments of this application involve jumping between the first interface and the second interface, the jumping methods involved in the embodiments of this application include, but are not limited to: jumping directly from the first interface to the second interface, or jumping from the first interface to the task interface and completing the corresponding task operation on the task interface before jumping to the second interface; completing the corresponding task operation on the task interface includes, but is not limited to: completing authorization and authentication on the authorization and authentication interface when the task interface is implemented as an authorization and authentication interface; completing the multimedia content publishing operation on the media content publishing interface when the task interface is implemented as a media content publishing interface, etc.
[0028] With the development of internet technology, service providers (such as service providers) are increasingly choosing to promote and sell their services (such as service products) online. Currently, to attract more consumers to purchase their services, service providers typically publish multimedia content across various multimedia applications. This requires them to constantly monitor and respond to conversation messages sent by consumers across different media systems, resulting in high cost and low efficiency in responding to these messages. To address this technical problem, this application provides a solution. The basic idea is as follows: The target server provides account authorization prompts to the target client. In response to the target client's first session authorization request for a first media account, the server sends a second session authorization request for the first media account to the multimedia server. This allows the multimedia server to authorize the first media account and issue a session access token. Based on the session access token, the server obtains the first session message sent by the second client (for the second media account) to the first client (for the first media account). Using the target AI model corresponding to the first media account and domain knowledge, a first response message is generated. This first response message is then sent by the multimedia server to the second client as the first client's response to the first session message. This embodiment requests session authorization from multimedia applications to grant access to session messages within those applications, thereby enabling automatic responses to session messages from different media applications. This reduces message response costs and avoids situations where manual responses are untimely or missed.
[0029] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0030] Before introducing the embodiments of this application, the applications involved in the embodiments of this application, namely the target application, the service-providing application, and the multimedia application, will be explained.
[0031] A multimedia application can be an application that allows users to share multimedia content. Multimedia content shared within a multimedia application can be viewed by all or some registered accounts of that application. For example, it could be an application that supports publishing and browsing short videos and text / image content. Furthermore, any two multimedia accounts registered with that application can send session messages via the client.
[0032] A service-providing application can be an application that facilitates transactions of service objects (such as service products). This application allows service providers to register accounts and, based on those accounts, sell and promote their services within the application. For example, such a service-providing application could be a shopping app, a group-buying app, or a recruitment app.
[0033] The target application can be one that supports automatically responding to session messages from authorized accounts in a multimedia application. To achieve this, the target application needs prior authorization from the multimedia application, such as granting the target application's server permission to transmit session messages from authorized accounts in the multimedia application. In this embodiment, the target application and the service provider application can be the same application, integrating the functions of both applications into one application. Alternatively, they can be two independent applications capable of data interaction.
[0034] For each of the above applications, there is a corresponding server and a client, and the client for each application refers to the client that has installed that application. For each application, the corresponding server may be unique, but each user who registers that application corresponds to a client. In this embodiment, the server and client of the target application are referred to as the target server and the target client, respectively. The server of the multimedia application is referred to as the multimedia server. The client corresponding to the user who publishes multimedia content in the multimedia application is referred to as the first client, and the client corresponding to the user who sends session messages regarding the multimedia content is referred to as the second client.
[0035] The user involved in this embodiment refers to a user with a need to publish multimedia content, such as a merchant promoting services or products. This user has registered accounts in the target application, the multimedia application, and the service provider application. For example, the account registered in the multimedia application is called the first media account, and the account registered in the service provider application is called the service account.
[0036] Figure 1The diagram illustrates a system architecture diagram of a target application system according to an embodiment of this application. This system architecture may include a target client 101 and a target server 102. (Alternatively, it may include a target server and multiple target clients.)
[0037] The target client 101 and the target server 102 can establish a connection via a network. The network provides a communication link between the target client 101 and the target server 102. The network can include various connection types, such as wired, wireless, or fiber optic cables. The target client 101 can interact with the target server 102 via the network to receive or send messages, etc.
[0038] The target client 101 can be a browser, an app (application), a web application such as an H5 (HyperText Markup Language 5) application, a lightweight application (also known as a mini-program), or a cloud application. The target client 101 can be deployed on an electronic device and depends on the device to run or on certain apps within the device. Electronic devices can have displays and support information browsing, such as personal mobile terminals like mobile phones, tablets, personal computers, desktop computers, smart speakers, smartwatches, etc. For ease of understanding, Figure 1 The client is primarily represented by the image of a device. Various other types of applications can also be configured in electronic devices, such as human-computer interaction applications, model training applications, text processing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, and social media platform software. An electronic device can refer to a user-used device with the computing, internet access, and communication functions required by the user, such as a mobile phone, tablet computer, personal computer, or wearable device. An electronic device typically includes at least one processing component and at least one storage component. It may also include basic configurations such as a network interface card (NIC) chip, I / O (input / output) bus, and audio / video components; this application does not limit its scope. Optionally, depending on the implementation of the electronic device, it may also include peripheral devices such as a keyboard, mouse, pen, and printer; this application does not limit its scope either.
[0039] The target server 102 may include servers that provide various services, such as a server for background training that supports the model used on the target client 101, or a server that processes interactive information sent by the client.
[0040] It should be noted that the target server 102 can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. The server can also be a server in a distributed system, or a server combined with blockchain. The server can also be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.
[0041] It should be noted that the message response method provided in this embodiment can also be jointly executed by the target client 101 and the target server 102. It should be understood that... Figure 1 The number of target clients and target servers shown is merely illustrative. Depending on implementation needs, there can be any number of target clients and target servers.
[0042] The implementation details of the technical solutions in the embodiments of this application are described in detail below.
[0043] Figure 2 A flowchart illustrating a message response method provided by an exemplary embodiment of this application is shown. The technical solution of this embodiment can be executed by the target server of the target application. Figure 2 As shown, the method may include the following steps:
[0044] S201, Provide account authorization prompt information to the target client corresponding to the target application so that the target client can display the account authorization prompt information.
[0045] The account authorization prompt information may be information prompting users to authorize their accounts in multimedia applications, and may include, but is not limited to: an introduction to the rights and benefits that can be enjoyed after authorization, and information on the control components for account authorization, etc.
[0046] Specifically, in this embodiment, the prerequisite for the target application to automatically respond to session messages from a media account in a multimedia application is that the media account has already authorized the corresponding user account in the target application. Therefore, when a user wants to enable the automatic response function for session messages, they need to authorize the media account. Thus, in this embodiment, the target server can send the relevant information of the authorized media account and an account authorization prompt to the target client when the target client needs to display the user's authorized account information in the multimedia application. The target client will then display the received account authorization prompt and the relevant information of the authorized media account together in the media account management interface. Alternatively, in this embodiment, the target server can also automatically send an account authorization prompt to the target client when it detects that the client's user account does not have an authorized media account in the multimedia application, so that the target client can display the account authorization prompt to remind the user to authorize the media account.
[0047] S202, Receive the first session authorization request sent by the target client for the first media account in the multimedia application.
[0048] The first session authorization request is generated in response to the triggering operation of the account authorization prompt message.
[0049] Specifically, after a user sees the account authorization prompt information through the target client, if the user wants to authorize a media account, they can trigger the control component related to account authorization in the account authorization prompt information, and enter the media account information (such as account name) in the multimedia application to be authorized. At this time, the target client sends a first session authorization request to the target server based at least on the media account information entered by the user and the user account currently logged in to the target client.
[0050] S203, in response to the first session authorization request, a second session authorization request for the first media account is sent to the multimedia server corresponding to the multimedia application, so that the multimedia server can authorize the first media account for the session and return the session access token of the first media account.
[0051] In this embodiment, both the first session authorization request and the second session authorization request are used to request the first media account to authorize the target client's currently logged-in user account to transmit session messages of the first media account. However, the sending and receiving ends of the two session authorization requests are different. The first session authorization request is generated by the target client in response to the account authorization prompt information, and the receiving end is the target server. The second session authorization request is generated by the target server based on the first session authorization request, and the receiving end is the multimedia server. The first session authorization request includes at least: the user's first media account information in the multimedia application, and the user's user account information in the target application (i.e., the target client's current login information). The second session authorization request may also need to expand the scope of requested permissions based on the first session authorization request. The session access token in this embodiment can be a credential used to verify and authorize the target application to access the multimedia application to obtain the session information of the first media account.
[0052] Optionally, the target server receives and responds to the first session authorization request, parses the media account information entered by the user as the first media account (i.e., the authorized account), and parses the currently logged-in user account of the target client as the authorized associated account (i.e., the authorized account) of the first media account in the target application. Then, based on the first media account, its authorized associated account, and the requested permission scope, it sends a second session authorization request to the multimedia server to request the multimedia server to authorize the first media account for the session. Specifically, the target multimedia server can send an authorization confirmation request to the first client corresponding to the first media account based on the requested permission scope and the authorized associated account. The first client displays the requested permission scope and the authorized associated account. If the first client detects the authorization agreement, it will send a confirmation instruction to the multimedia server. At this time, the multimedia server will continue to perform the relevant operations to complete the authorization, such as generating a session access token for the authorized associated account to obtain or send session information of the first media account. After completing the authorization operation, the multimedia server will send the session access token of the first media account back to the target server.
[0053] S204, based on the session access token of the first media account, obtain the first session message from the multimedia server.
[0054] The first session message is a message sent by the second client corresponding to the second media account in the multimedia application to the first client corresponding to the first media account. The second media account can be an account registered in the multimedia application by another user (i.e., the inquirer) who wants to communicate with the user corresponding to the first media account.
[0055] The first conversation message can be the content that the inquirer corresponding to the second media account wants to communicate with the user corresponding to the first media account (i.e., the user who published the multimedia content). For example, if the multimedia content published by the first media account is all about moving, the first conversation message could be an inquiry about moving fees. In this embodiment, the first conversation message is a message displayed in the conversation interface between the first and second media accounts. For example, this conversation message can be a private message sent, not a comment message on the multimedia content published by the first media account. It should be noted that the first conversation message in this embodiment is a conversation message for multimedia content. This first conversation message may include, but is not limited to: conversation content, second media account, timestamp, etc. The conversation content may contain relevant information about the multimedia content, such as the title and link of the multimedia content.
[0056] The target server needs to send a session access token of the first media account to the multimedia server each time it retrieves session messages from the multimedia server. Only after the multimedia server authenticates the session access token is it allowed to retrieve the first session messages from the multimedia application. This ensures the security of the transmission of session information of the first media account.
[0057] Specifically, after detecting that the second client corresponding to the second media account sends a session message to the first client corresponding to the first media account, the multimedia server checks whether the first media account has authorized the user account of the target application and whether it has received the session access token of the first media account sent by the server of the target application. If the first media account has authorized the user account of the target application and has received the session access token of the first media account, then the first session message is sent to the target server through the authorization interface. Alternatively, the target server can call the authorization interface for each first media account in the system that has an authorization relationship with the user account, and check in real time or periodically whether the first client corresponding to each first media account has received the first session message in the multimedia application. If it has received it, it sends the session access token of the first media account to the multimedia server, and the multimedia server verifies it and then returns the first session message through the authorization interface.
[0058] Optionally, during the process of the target server obtaining the first session from the multimedia application, the transmission of the first session message between different applications is involved. In order to prevent the session message from being leaked during transmission and to ensure the security of the session message transmission process, the multimedia server in this embodiment can encrypt the first session message before transmitting it to the target server. That is to say, the first session message obtained by the target server at this time is the encrypted first session message. Therefore, after obtaining the session message, the target server can decrypt the received first session message based on the encryption and decryption algorithm negotiated with the multimedia application before performing subsequent processing operations.
[0059] In some embodiments, users may not always need the target application to automatically respond to session messages in multimedia applications. If authorization is revoked to prevent the target application from automatically responding to session messages, frequent authorization and revocation may occur. To solve this problem, this embodiment may provide an option to enable or disable the response function for the first media account authorized by the user in the target application. Users can enable or disable it according to their needs. In this case, when performing operation S204, if the first media account has the session response function enabled, the first session message can be obtained from the multimedia server corresponding to the multimedia application based on the session access token of the first media account. This allows for flexible enabling or disabling of the automatic response message function even when the first media account has been authorized, thus meeting the user's personalized needs.
[0060] S205, Determine the target artificial intelligence model corresponding to the first media account.
[0061] The target AI model can be a model used in the target application to automatically respond to session messages.
[0062] Optionally, one possible implementation of this step is to allow users to pre-configure the target AI model they choose for each media account. In this case, the target AI model corresponding to the first media account can be determined based on the user's configuration requirements.
[0063] Optionally, since the first conversation message in this embodiment is sent by the inquirer after browsing multimedia content published under the first media account, the content of the conversation should be related to the multimedia content published under the first media account. Therefore, this embodiment can use the artificial intelligence model corresponding to the target topic of the multimedia media published under the first media account as the target artificial intelligence model corresponding to the first media account to respond to the first conversation message. That is, one possible implementation of this step is: for different target topics, pre-train the corresponding target artificial intelligence model. At this time, the first conversation message can be analyzed to determine the target topic of the multimedia content corresponding to the first conversation message, and obtain the target artificial intelligence model corresponding to the target topic as the target artificial intelligence model corresponding to the first media account.
[0064] When the user is a service provider, the target topic may be quite broad. Therefore, to respond to conversation messages more accurately, the target AI model corresponding to the target topic can be determined by further considering the industry categories of the various service objects provided by the service provider. For example, if the target topic of multimedia content is cleaning, but the service objects provided by the service provider belong to the post-construction cleaning industry category, then using the target AI model corresponding to the post-construction cleaning category to respond to the first conversation message will be more accurate. Therefore, another possible implementation of this step is: determine the industry category corresponding to the service account based on user characteristic data; and use the target AI model corresponding to the industry category as the target AI model corresponding to the first media account. Specifically, this can be done by pre-training corresponding AI models for the industry categories of various service objects. This step can be to determine the industry category corresponding to the service account of the service provider in the service provision application based on the service content, service industry, and other information in the attribute data contained in the user characteristic data; or it can be to analyze the industry categories of the service objects published by the user based on historical publishing information in the user characteristic data, and use this as the industry category corresponding to the service account. Then, the target AI model corresponding to this industry category can be found from the pre-trained AI model.
[0065] It should be noted that user characteristic data refers to the attribute information of the service provider maintained in the service provider application (such as service industry, service area, service content, etc.) and historical posting information (such as posting information of service objects published in the past). In this embodiment, the user characteristic data can be obtained by: determining the service account associated with the first media account in the service provider application; obtaining the user characteristic data of the service account from the service provider application; wherein, the service account can be an account registered by the service provider in the service provider application. This user characteristic data is the user characteristic data of the service account.
[0066] Specifically, when the target application in this embodiment is a service provider application, the user account logged in by the target client is the service account, and user feature data can be directly retrieved from the database maintained by the service provider application based on this service account. When the target application in this embodiment is another application independent of the service provider application, the two applications can be associated based on user accounts. That is, there is an association relationship between accounts registered by the same service provider in the two applications. In this case, the target server of the target application can obtain the user account logged in by the target client, and then, based on the association relationship between the registered accounts of the applications, determine the service account associated with the user account logged in by the target client in the service provider application, and then interact with the service provider application to obtain the user feature data of the service account from the service provider application.
[0067] S206. Using the target artificial intelligence model and combining the domain knowledge corresponding to the first media account, generate the first response message corresponding to the first conversation message.
[0068] Domain knowledge can refer to knowledge related to the industry sector served by the user of the first media account, or it can be considered knowledge related to the domain described in the multimedia content published by the first media account. For example, if the user of the first media account is a moving service provider, and the multimedia content they publish is all related to moving, then the domain knowledge corresponding to the first media account could be service guides, precautions, moving service product introductions, pricing standards, etc., for the moving industry.
[0069] Optionally, in this embodiment, the target artificial intelligence model can be used to perform intent analysis on the first conversation message to determine whether there is a clear inquiry intent in the first conversation message. If so, domain knowledge can be organized and analyzed to generate a first response message that can answer the inquiry intent. In this case, the first response message is used to answer the question. If not, a first response message can be generated based on the response intent corresponding to the first media account. In this case, the first response message is used to represent the response intent of the user corresponding to the first media account. This intent will guide the user to provide further relevant information. For example, it can guide the user to provide a phone number so that the user of the first media account can directly contact the inquirer who sent the first conversation message by phone.
[0070] Optionally, since the target application in this embodiment can be a service-providing application, or other applications independent of the service-providing application but capable of interacting with it, and the user feature data maintained in the service-providing application can well reflect the domain knowledge of the user's service area, the method for determining the domain knowledge in this embodiment can be: determining the service account associated with the first media account in the service-providing application; obtaining the user feature data of the service account from the service-providing application; and determining the domain knowledge corresponding to the first media account based on the user feature data. It should be noted that the process of determining the service account associated with the first media account in the service-providing application and obtaining the user feature data of the service account from the service-providing application has been described in the above embodiments and will not be repeated here. The method for generating the domain knowledge corresponding to the first media account based on the user feature data can be: extracting content related to the user's service area from the user feature data and refining and summarizing it to obtain the domain knowledge corresponding to the first media account. This method reduces the complexity of domain knowledge acquisition and ensures relevance to the services provided by the user.
[0071] It should be noted that the target artificial intelligence model involved in this paper can be a language model (LM) or a multimodal model (MM) based on artificial intelligence. This application does not limit the number of model parameters supported by the model, aiming to meet actual needs. If the model has relatively more parameters, the language model will be relatively larger in scale and have better performance; however, it will consume more time and resources during inference or training. If the model has relatively fewer parameters, the model will be relatively smaller in scale, and while meeting performance requirements, it will be more lightweight, consuming less time and resources during inference or training. The target artificial intelligence model involved in this application can be a deep learning model used to process and generate natural language text or multimodal data, which can be implemented based on a neural network architecture and can be pre-trained on a large amount of data. In an optional implementation, the artificial intelligence model involved in this paper can include an encoder, a decoder, a self-attention layer, and a feed-forward neural network, etc. The encoder is primarily used to convert input data (usually in sequence form) into a vector representation, a process that captures the semantic features of the input data. The decoder is responsible for converting the intermediate representation generated by the encoder into output data (usually in sequence form). The self-attention layer is a mechanism that allows the model to focus on other positions in the sequence to better encode information at the current position. The feedforward neural network is used to perform nonlinear transformations on the output of the self-attention layer, thereby enhancing the model's expressive power. These components work together, enabling models built upon them to perform well in various complex processing tasks, such as natural language processing, computer vision, speech recognition, machine translation, text summarization, and intelligent question answering.
[0072] S207, the first response message is sent to the second client as a response message from the first client to the first session message via the multimedia server.
[0073] Optionally, after generating the first response message, the target server can initiate a message response request to the multimedia server based on the first response message, the first media account, and the second media account. The multimedia server responds to this request, locates the message conversation between the first and second media accounts (which includes the first session message), forwards the first response message to that conversation, and then sends the conversation message to the second client corresponding to the second media account and the first client corresponding to the first media account. This allows users of both accounts to view the first response message related to the first session message through the message conversation. In other words, the multimedia server sends the first response message as a response from the first client to the first session message to the second client.
[0074] It should be noted that, in this embodiment, the target server can either generate the first response message and immediately send it as a response from the first client to the second client via the multimedia server, or it can perform a single sending operation for all first response messages within a preset time period, such as one hour. There is no limitation on this approach.
[0075] Optionally, considering that different systems support different information formats, before executing S207, the target server can further combine the format requirements of the response message in the multimedia application, perform format conversion processing on the first response message generated in S206, and then execute the operation of S207.
[0076] In this embodiment, the target server provides account authorization prompts to the target client. In response to the target client's first session authorization request for the first media account, the server sends a second session authorization request for the first media account to the multimedia server. This allows the multimedia server to authorize the first media account and issue a session access token. Based on the session access token, the server obtains the first session message sent by the second client (for the second media account) to the first client (for the first media account). Using the target AI model corresponding to the first media account and domain knowledge, the server generates a first response message. This first response message is then sent by the multimedia server to the second client as the first client's response to the first session message. This embodiment obtains access to session messages within multimedia applications by requesting session authorization for the multimedia account. This allows for automatic responses to session messages from different media applications, reducing message response costs and avoiding untimely or missed session messages due to manual responses.
[0077] In some embodiments, to help users collect required information through response messages, the domain knowledge in this embodiment may include the domain collection requirements of the user corresponding to the first media account. These domain collection requirements are the information the user wants to collect, such as, but not limited to, the phone number and city of the user who sent the first conversation message. This embodiment can set different domain collection requirements for different domains, combined with the characteristics of the domain services, or it can support each user corresponding to the first media account to customize their own domain collection requirements. Accordingly, when executing S206 above, a target artificial intelligence model can be used, combined with the domain collection requirements in the domain knowledge corresponding to the first media account, to generate a first response message corresponding to the first conversation message; the first response message is used to indicate that the feedback of the conversation message satisfies the domain collection requirements. Specifically, the target artificial intelligence model can be used to parse the domain collection requirements in the domain knowledge corresponding to the first media account, determine the domain information collection items (such as phone number, city), and then generate a statement indicating the feedback of the domain collection items as the first response message. Alternatively, based on the domain knowledge, an intent response content can be generated for the conversation intent in the first conversation message, and then a statement indicating the feedback of the domain collection items can be added after the intent response content to obtain the first response message.
[0078] In this embodiment, a first response message containing the domain collection requirement is sent to the second client corresponding to the second media account via a multimedia application. The inquirer corresponding to the second media account may then send a second session message to the first client of the first media account based on the first response message. Correspondingly, the target server can obtain the second session message from the multimedia server based on the session access token of the first media account. This second session message is a feedback message from the second client to the first client in response to the first response message. If the second session message satisfies the domain collection requirement, the domain collection information corresponding to the second media account is extracted. This domain collection information is then sent to the target client so that the target client can display the domain collection information.
[0079] Specifically, the target server can obtain the second session message in a similar manner to obtaining the first session message. It then determines whether the second session message contains information related to the domain collection item corresponding to the domain collection request, i.e., domain collection information. If it does, the target server either extracts the domain collection information from the second session message, then finds the user registration account of the target application associated with the first media account (i.e., the account registered by the user corresponding to the first media account in the target application), and sends the domain collection information to the target client corresponding to that user registration account, so that the target client can display the domain collection information to the user. This satisfies the user's need to collect domain information. For example, if the user is a service provider and their domain collection request is to collect the contact information of consultants, the service provider can then contact the consultants based on the collected contact information to facilitate a change in the type of service they provide.
[0080] Optionally, in this embodiment, the target client can be the one that searches for the corresponding target client and sends it to the user in real time after the domain collection information is extracted; or it can be the one that sends all the domain collection information obtained within each preset time period (such as one day) to the corresponding target client.
[0081] Optionally, after the first response message containing the domain collection requirements is sent to the second client corresponding to the second media account via the multimedia application, the following two situations may also occur: if the second session message does not meet the domain collection requirements, or if the second session message is not received within a preset time period, then the target artificial intelligence model is used to generate a second response message; the second response message is used to indicate again that the session message that meets the domain collection requirements is a response message; the second response message is sent to the second client as a response message from the first client to the second session message or the first session message via the multimedia server.
[0082] Specifically, if a second session message is received but does not meet the domain collection requirements, the target server can first address the inquiry intent in the second session message and add relevant statements about the domain collection requirements to the response, resulting in a second response message. This response instructs the inquirer to provide a session message requesting domain collection. If no second session message is received within a preset time period (e.g., after 2 hours), a second response message can be generated to remind the inquirer to provide a session message requesting domain collection, in order to avoid losing contact with the inquirer and thus losing customer service. After generating the second response message, it can be sent to the second client corresponding to the second media account through the multimedia application's server, similar to sending the first response message. This embodiment can send multiple response messages to the second client corresponding to the second media account until domain collection information is obtained, thereby helping users collect business opportunities.
[0083] In one embodiment, to meet the user's personalized configuration needs, another possible implementation of determining the target AI model corresponding to the first media account is as follows: before responding to the session message, provide model configuration prompt information to the target client so that the target client can display the model configuration prompt information; in response to the model selection request sent by the target client for the first media account, determine the model configuration information of the first media account; the model selection request is generated in response to the triggering operation of the model configuration prompt information. Based on the model configuration information of the first media account, determine the target AI model corresponding to the first media account.
[0084] Specifically, after authorizing the first media account or enabling the response function for the first media account, model configuration prompts can be provided to the target client. These prompts guide the user to select an AI model for the response session message for the first media account. This information may include descriptions of at least two selectable AI models, such as model names and functional descriptions. Upon receiving the prompts, the target client displays them in the model configuration interface for the user to choose from. Responding to the user's trigger action based on the prompts, the target client generates a model selection request carrying a model identifier (e.g., model name) and the first media account, and sends this request to the target server. The target server responds to the request, using the model identifier as the model configuration information for the first media account. Correspondingly, when determining the target AI model for the first media account, the AI model corresponding to the model identifier included in the first media account's configuration information can be used as the target AI model for that first media account.
[0085] Based on the above embodiments, if the user believes that none of the models displayed in the model configuration prompts meet their needs, this embodiment can also determine the target artificial intelligence model corresponding to the first media account in the following way: Provide model training prompts to the target client so that the target client can display the model training prompts; in response to the model training request sent by the target client for the first media account, obtain model training data; the model training request is generated by the triggering operation of the model training prompts; train the target artificial intelligence model based on the training data; and determine the model configuration information corresponding to the first media account based on the relevant information of the target artificial intelligence model.
[0086] Specifically, the target server can simultaneously send model configuration and training prompts to the target client. This allows the target client to display both prompts in its model configuration interface, enabling the user to choose between using a pre-trained model or training a custom model. Alternatively, the target server can first provide model configuration prompts. The target client can then display a custom model control alongside the configuration prompts. If the user deems the displayed models unsuitable, they can trigger the custom model control. The target client, responding to this trigger, sends a model customization command to the target server. The server then responds to the command, providing model training prompts to the target client, which in turn displays the training prompts. Users can upload training data in response to model training prompts displayed on the target client. This data may include user-specific domain knowledge and conversation examples corresponding to the user's response intent. The target client will then initiate a model training request to the target server based on the uploaded training data. The target server will respond to this request, retrieve the uploaded training data, and train a customized target AI model for the user. A model identifier will be set for this target AI model, and this identifier will be used as the model configuration information for the first media account. Correspondingly, when determining the target AI model corresponding to the first media account, the trained target AI model can be used as the target AI model corresponding to the first media account based on the first media account's configuration information. This solution supports training customized models for user response conversations according to user needs, thereby meeting personalized user requirements.
[0087] In some embodiments, to facilitate user understanding of when the target application responds to session messages on behalf of itself, this embodiment may, for each media account, after performing a session response operation, count the number of message responses for the first media account; and send the message response count for the first media account to the target client so that the target client can display the message response count for the first media account. Optionally, to avoid frequently sending message response counts and causing user interference, this embodiment may send the count when the user initiates a response message query request through the target client, or when the user enters the automatic response message configuration interface, so that the target client can display it in the automatic response message configuration interface.
[0088] Figure 3 A flowchart of a message response method provided as an exemplary embodiment of this application is shown. The technical solution of this embodiment can be executed by the target client corresponding to the target application. The method may include the following steps:
[0089] S301, Receive account authorization prompt information provided by the target application's target server.
[0090] S302 displays account authorization prompt information.
[0091] S303, in response to the triggered operation for the account authorization prompt information, generates a first session authorization request for the first media account in the multimedia application.
[0092] S304, a first session authorization request is sent to the target server, so that the target server responds to the first session authorization request by sending a second session authorization request for the first media account to the multimedia server corresponding to the multimedia application. The multimedia server then authorizes the first media account for the session and returns a session access token for the first media account. The target server is also used to obtain a first session message from the multimedia server based on the session access token of the first media account. The first session message is a session message sent from the second client corresponding to the second media account in the multimedia application to the first client corresponding to the first media account. The target artificial intelligence model corresponding to the first media account is determined. Using the target artificial intelligence model and combining the domain knowledge corresponding to the first media account, a first response message corresponding to the first session message is generated. The first response message is sent to the second client as the first client's response to the first session message through the multimedia server.
[0093] In some embodiments, the above method further includes: receiving domain collection information corresponding to a second media account sent by the target server, and displaying the domain collection information; the domain collection information is extracted from the second session message when the second session message meets the domain collection requirements; the second session message is a session message sent by the second client to the first client in response to the first response message.
[0094] In some embodiments, the method further includes: receiving model configuration prompt information provided by the target server and displaying the model configuration prompt information; in response to a trigger operation on the model configuration prompt information, generating a model selection request for the first media account and sending the model selection request to the target server, so that the target server, in response to the model selection request of the first media account, determines the model configuration information of the first media account and, based on the model configuration information of the first media account, determines the target artificial intelligence model corresponding to the first media account.
[0095] In some embodiments, the method further includes: receiving model training prompts provided by the target server, displaying the model training prompts, generating a model training request in response to an input operation on the model training prompts; sending the model training request to the target server so that the target server can obtain model training data in response to the model training request, and train a target artificial intelligence model based on the training data; and determining the model configuration information of the first media account based on the relevant information of the target artificial intelligence model.
[0096] In some embodiments, the above method further includes: receiving the number of message responses from the first media account sent by the target server, and displaying the number of message responses from the first media account.
[0097] In a practical application, the target application of this application embodiment can support users in configuring and authorizing a first media account, as well as obtaining private messages received by a first client corresponding to the first media account, and automatically replying to private messages for the first media account, combined with... Figure 4 This section introduces how the above solution is implemented.
[0098] Figure 4 This illustration shows a set of interface diagrams for a private message management process provided by an exemplary embodiment of this application. Figure 4 The first interface is the private message management interface. If a user clicks the "Manage" button in the AI (Artificial Intelligence) private message card through the target client, the target client will send an account management request to the target server. After receiving the management request, the target server will provide the target client with account authorization prompts. At this time, the target client can... Figure 4 The second account management interface displays a "Add Account Authorization" control component, as well as the authorized accounts already bound to the target client's user account, namely User Account 1 and User Account 2, and related information such as the user account's authorization expiration time, whether the automatic reply function to private messages is enabled, a "Select Customer Service" button, and a "Enable / Disable Private Messages" option. It should be noted that... Figure 4User account 1 and user account 2 displayed are both accounts registered by the user on the aforementioned XX platform. If the user clicks the "Add Account Authorization" control component, the target client will further prompt the user to enter relevant information for the new account, such as the account name. Based on the user's input, the client will send a first session authorization request to the target server. In response to the first session authorization request, the target server will send a second session authorization request for the first media account to the multimedia server. This allows the multimedia server to authorize the session for the new account entered by the user and issue a session access token for the new account. After receiving the session access token, the target server can generate relevant information for the new account and send it to the target client, allowing the target client to add a management card for the new account in the account management interface.
[0099] Users can also bind authorized user accounts, such as User Account 1 and User Account 2, to handle customer service inquiries. For example, if a user clicks the "Select Customer Service" button corresponding to User Account 1, the target client will send a customer service selection request to the target server. At this time, the target server will provide model configuration prompts to the target client, which will then display these prompts on the customer service selection interface. Figure 4 The third interface diagram shows two pre-existing models available to users on the server: Model 1 and Model 2. Model 1 and Model 2 can display specific model information, such as name and collection items, in card format. To meet personalized user needs, the target client can also provide user-defined models. If a user clicks on the Model 1 card, the target client will send User Account 1 and Model 1 to the target server. The target server will then use Model 1 as the model configuration information for User Account 1. This means that subsequent private messages received by User Account 1 will be answered by Model 1. If the user selects a custom model, the user needs to input the model name, collection item content, and dialogue example as training data on the target client. The target client will then send the user-input training data to the target server, which will use this training data to train a custom model specific to User Account 1 and use this model as the model configuration information for User Account 1.
[0100] In this embodiment, when a user wants to automatically respond to private messages received by user account 1 on the XXX platform through the target application, they can open... Figure 4The second interface enables the private messaging function. Subsequently, the target server can retrieve private message messages received from other accounts by user account one from the XXX platform; generate a response message asking for the user's phone number by selecting model one; and send this response message as the client's response to the private message for user account one to the other user's client via the XXX platform. It should be noted that if the other user does not reply to the private message, or if the reply does not contain a phone number, private messages can continue to be sent to that other user's account until a phone number is obtained. The collected phone number is then sent to the target client for the user to view.
[0101] The detailed implementation methods and beneficial effects of each step in this embodiment have been described in detail in the foregoing embodiments, and will not be elaborated here.
[0102] It should be noted that some processes described in the above embodiments and accompanying drawings include multiple operations that appear in a specific order. However, it should be clearly understood that these operations may not be executed in the order they appear in this document, or may be executed in parallel. The sequence numbers are merely used to distinguish different operations, and the sequence numbers themselves do not represent any execution order. Furthermore, these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel. It should also be noted that the descriptions such as "first" and "second" in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequential order, nor do they limit "first" and "second" to different types.
[0103] In addition to providing method embodiments, this application also provides a message response device. The process of the message response device provided in this application embodiment will be described below.
[0104] Figure 5 A schematic diagram of a message response device provided as an exemplary embodiment of this application is shown. The device is configured on the target server of a target application and includes:
[0105] The first sending module 501 is used to provide account authorization prompt information to the target client corresponding to the target application, so that the target client can display the account authorization prompt information; the first receiving module 502 is used to receive a first session authorization request for a first media account in the multimedia application sent by the target client; the first session authorization request is generated in response to the triggering operation of the account authorization prompt information; the first sending module 501 is also used to respond to the first session authorization request by sending a second session authorization request for the first media account to the multimedia server corresponding to the multimedia application, so that the multimedia server can authorize the first media account for a session and return the session access token of the first media account; message acquisition module 503, The module 504 is used to obtain a first session message from the multimedia server based on the session access token of the first media account; the first session message is a session message sent by the second client corresponding to the second media account in the multimedia application to the first client corresponding to the first media account; the model determination module 504 is used to determine the target artificial intelligence model corresponding to the first media account; the message response module 505 is used to generate a first response message corresponding to the first session message by using the target artificial intelligence model and combining the domain knowledge corresponding to the first media account; the message sending module 506 is used to send the first response message as the first client's response message to the first session message to the second client through the multimedia server.
[0106] In an optional embodiment, the above apparatus further includes: a domain knowledge determination module, configured to determine the service account associated with the first media account in the service providing application; obtain user feature data of the service account from the service providing application; and determine the domain knowledge corresponding to the first media account based on the user feature data.
[0107] In an optional embodiment, the model determination module 504 is specifically used to determine the industry category corresponding to the service account based on the user feature data; and to use the target artificial intelligence model corresponding to the industry category as the target artificial intelligence model corresponding to the first media account.
[0108] In an optional embodiment, the message response module 505 is specifically used to generate a first response message corresponding to the first session message by utilizing the target artificial intelligence model and combining the domain collection requirements in the domain knowledge corresponding to the first media account; the first response message is used to indicate a session message that satisfies the domain collection requirements.
[0109] In an optional embodiment, the message acquisition module 503 is further configured to acquire a second session message from the multimedia server based on the session access token of the first media account; the second session message is a session message fed back by the second client to the first client in response to the first response message; the information extraction module is configured to extract the domain collection information corresponding to the second media account if the second session message meets the domain collection requirements; the first sending module 501 is further configured to send the domain collection information corresponding to the second media account to the target client so that the target client can display the domain collection information.
[0110] In an optional embodiment, the message response module 505 is further configured to generate a second response message using the target artificial intelligence model if the second session message does not meet the domain collection requirements, or if the second session message is not received within a preset time period; the second response message is used to again indicate that a session message that meets the domain collection requirements is being fed back; the message sending module 506 is further configured to send the second response message as a response message from the first client to the second session message or the first session message through the multimedia server.
[0111] In an optional embodiment, the first sending module 501 is further configured to provide model configuration prompt information to the target client so that the target client can display the model configuration prompt information; the configuration information determining module is configured to determine the model configuration information of the first media account in response to the model selection request sent by the target client for the first media account; the model selection request is generated in response to the triggering operation of the model configuration prompt information; the model determining module 504 is specifically configured to determine the target artificial intelligence model corresponding to the first media account based on the model configuration information of the first media account.
[0112] In an optional embodiment, the first sending module 501 is further configured to provide model training prompt information to the target client so that the target client can display the model training prompt information; the model training module is configured to obtain model training data in response to a model training request sent by the target client for the first media account; the model training request is generated in response to the input operation of the model training prompt information; and the target artificial intelligence model is trained based on the training data; the configuration information determination module is further configured to determine the model configuration information of the first media account based on the relevant information of the target artificial intelligence model.
[0113] In an optional embodiment, the message response module 505 is specifically used to obtain a first session message from the multimedia server based on the session access token of the first media account when the session response function of the first media account is enabled.
[0114] In an optional embodiment, a message statistics module is further included, which is used to count the number of message responses to the first media account; the first sending module 501 is also used to send the number of message responses to the first media account to the target client, so that the target client can display the number of message responses to the first media account.
[0115] Figure 5 The message response device can perform Figure 2 The implementation principle and technical effects of the message response method described in the illustrated embodiment will not be repeated here. The specific methods by which each module and unit in the five devices described above perform their operations have been described in detail in the embodiments related to this method, and will not be elaborated upon here.
[0116] Figure 6 This application provides a schematic diagram of a message response device configured on a target client of a target application. The device includes: a second receiving module 601 for receiving account authorization prompt information provided by a target server of the target application; a display module 602 for displaying the account authorization prompt information; a request generation module 603 for generating a first session authorization request for a first media account in a multimedia application in response to a triggering operation based on the account authorization prompt information; and a second sending module 604 for sending the first session authorization request to the target server, so that the target server, in response to the first session authorization request, sends a second session authorization request for the first media account to the multimedia server corresponding to the multimedia application, and the multimedia server... The target server authorizes a session for the first media account and returns a session access token for the first media account. The target server is also used to obtain a first session message from the multimedia server based on the session access token of the first media account. The first session message is a session message sent from a second client corresponding to a second media account in the multimedia application to a first client corresponding to the first media account. A target artificial intelligence model corresponding to the first media account is determined. Using the target artificial intelligence model and combining it with the domain knowledge corresponding to the first media account, a first response message corresponding to the first session message is generated. The first response message is then sent to the second client as a response message from the first client to the first session message through the multimedia server.
[0117] In some embodiments, the second receiving module 601 is further configured to receive domain collection information corresponding to the second media account sent by the target server, and the display module 602 is further configured to display the domain collection information; the domain collection information is extracted from the second session message when the second session message meets the domain collection requirements; the second session message is a session message sent by the second client to the first client in response to the first response message.
[0118] In some embodiments, the second receiving module 601 is further configured to receive model configuration prompt information provided by the target server, and the display module 602 is further configured to display the model configuration prompt information; the request generation module 603 is further configured to generate a model selection request for the first media account in response to a trigger operation for the model configuration prompt information, and the second sending module 604 is further configured to send the model selection request to the target server, so that the target server, in response to the model selection request of the first media account, determines the model configuration information of the first media account, and determines the target artificial intelligence model corresponding to the first media account based on the model configuration information of the first media account.
[0119] In some embodiments, the second receiving module 601 is further configured to receive model training prompts provided by the target server; the display module 602 is further configured to display the model training prompts; the request generation module 603 is further configured to generate a model training request in response to an input operation on the model training prompts; the second sending module 604 is further configured to send the model training request to the target server, so that the target server can respond to the model training request, obtain model training data, and train a target artificial intelligence model based on the training data; and determine the model configuration information of the first media account according to the relevant information of the target artificial intelligence model.
[0120] In some embodiments, the above method further includes: a second receiving module 601, which is further configured to receive the number of message responses of the first media account sent by the target server; and a display module 602, which is further configured to display the number of message responses of the first media account.
[0121] Figure 6 The message response device can perform Figure 3 The implementation principle and technical effects of the message response method described in the illustrated embodiment will not be repeated here. The specific methods by which each module and unit in the six devices described above performs operations have been described in detail in the embodiments related to this method, and will not be elaborated upon here.
[0122] Figure 7 This is a schematic diagram of the structure of one embodiment of a computing device provided in this application. Figure 7 As shown, in practice, the computing device may include a storage component 701 and a processing component 702.
[0123] Storage component 701 is used to store computer programs and can be configured to store various other data to support operation on a computing device. Examples of this data include instructions for any application or method operating on the computing device, data structures, contact data, phone book data, messages, pictures, videos, etc.
[0124] Processing component 702, coupled to storage component 701, is used to execute computer programs in storage component 701 for implementing, etc. Figure 2 or Figure 3 The message response method.
[0125] Furthermore, such as Figure 7 As shown, the computing device may also include other components such as a communication component 703, a display component 704, a power supply component 705, and an audio component 706. Figure 7 The diagram only shows some components and does not mean that the device includes only these components. Figure 7 The components shown. Additionally... Figure 7 The components within the dashed box are optional, not mandatory, and their specific requirements depend on the product form of the computing device. The computing device in this embodiment can be a terminal device such as a desktop computer, laptop computer, smartphone, or IoT (Internet of Things) device, or a server-side device such as a conventional server, cloud server, or server array. If the computing device in this embodiment is implemented as a terminal device such as a desktop computer, laptop computer, or smartphone, it may include... Figure 7 The components within the dashed box; if the computing device in this embodiment is implemented as a conventional server, cloud server, or server array, etc., then it may not include... Figure 7 The component within the dashed box.
[0126] The processing component described above includes one or more processors to execute computer instructions to complete all or part of the steps in the method described above. Alternatively, the processing component may be implemented as one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the method described above.
[0127] The aforementioned storage components can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0128] The aforementioned communication component is configured to facilitate wired or wireless communication between the device housing the communication component and other devices. The device housing the communication component can access wireless networks based on communication standards, such as mobile communication networks, or combinations thereof. In one exemplary embodiment, the communication component receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel.
[0129] The aforementioned display components may include a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation.
[0130] The aforementioned power supply components provide power to various components within the device in which they reside. These power supply components may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device in which they reside.
[0131] The aforementioned audio component can be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC) configured to receive external audio signals when the device containing the audio component is in an operating mode, such as call mode, recording mode, or voice recognition mode. The received audio signals can be further stored in memory or transmitted via a communication component. In some embodiments, the audio component also includes a speaker for outputting audio signals.
[0132] Accordingly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to implement the steps in the above-described method embodiments. The computer-readable storage medium includes volatile or non-volatile components, or a combination thereof, and can be removable or non-removable. Examples of computer-readable storage media include, but are not limited to, phase-change random access 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), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), flash memory or other memory technologies, CD-ROM, Digital Video Disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium.
[0133] Accordingly, this application also provides a computer program product, which includes a computer program or instructions that, when executed by a processor, cause the processor to implement the steps in the above method embodiments. It should be understood that each step or combination of steps in the above method flow can be implemented by the computer program or instructions. Furthermore, these computer programs or instructions can be applied to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device, enabling the processor of the general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to function as an apparatus for implementing the corresponding functions in the above method embodiments.
[0134] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0135] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0136] Finally, it should be noted that the above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A message response method, characterized in that, The target server applied to the target application includes: Provide account authorization prompt information to the target client corresponding to the target application, so that the target client can display the account authorization prompt information; Receive a first session authorization request sent by the target client for a first media account in a multimedia application; the first session authorization request is generated in response to the triggering operation of the account authorization prompt information; In response to the first session authorization request, a second session authorization request for the first media account is sent to the multimedia server corresponding to the multimedia application, so that the multimedia server can authorize the first media account for a session and return the session access token of the first media account. Based on the session access token of the first media account, a first session message is obtained from the multimedia server; the first session message is a session message sent by the second client corresponding to the second media account in the multimedia application to the first client corresponding to the first media account; the second media account is an account registered in the multimedia application by other users who want to communicate with the user corresponding to the first media account. Determine the target artificial intelligence model corresponding to the first media account; Using the target artificial intelligence model and combining the domain knowledge corresponding to the first media account, a first response message corresponding to the first conversation message is generated; The multimedia server sends the first response message to the second client as a response message from the first client to the first session message.
2. The method according to claim 1, characterized in that, Also includes: Determine the service account associated with the first media account in the service provider application; Obtain user characteristic data of the service account from the service providing application; Based on the user characteristic data, the domain knowledge corresponding to the first media account is determined.
3. The method according to claim 2, characterized in that, The target artificial intelligence model for determining the first media account includes: Based on the user characteristic data, the industry category corresponding to the service account is determined; The target AI model corresponding to the industry category is used as the target AI model corresponding to the first media account.
4. The method according to claim 1, characterized in that, Using the target artificial intelligence model and combining the domain knowledge corresponding to the first media account, a first response message corresponding to the first session message is generated, including: Using the target artificial intelligence model and combining the domain collection requirements in the domain knowledge corresponding to the first media account, a first response message corresponding to the first session message is generated; the first response message is used to indicate a session message that satisfies the domain collection requirements.
5. The method according to claim 4, characterized in that, Also includes: Based on the session access token of the first media account, obtain the second session message from the multimedia server; The second session message is a session message that the second client sends back to the first client in response to the first response message; If the second session message meets the domain collection requirements, extract the domain collection information corresponding to the second media account; The domain collection information corresponding to the second media account is sent to the target client so that the target client can display the domain collection information.
6. The method according to claim 5, characterized in that, Also includes: If the second session message does not meet the domain collection requirements, or if the second session message is not received within a preset time period, then the target artificial intelligence model is used to generate a second response message; The second response message is used to again indicate a session message that provides feedback to meet the domain collection requirements; The multimedia server sends the second response message to the second client as a response message from the first client to the second session message or the first session message.
7. The method according to claim 1, characterized in that, Also includes: Provide model configuration prompts to the target client so that the target client can display the model configuration prompts; In response to the model selection request for the first media account sent by the target client, the model configuration information of the first media account is determined; The model selection request is generated in response to the triggering operation of the model configuration prompt information; The step of determining the target artificial intelligence model corresponding to the first media account includes: Based on the model configuration information of the first media account, the target artificial intelligence model corresponding to the first media account is determined.
8. The method according to claim 7, characterized in that, Also includes: Provide model training prompts to the target client so that the target client can display the model training prompts; In response to a model training request sent by the target client for the first media account, model training data is obtained; the model training request is generated in response to the input operation of the model training prompt information. Based on the training data, train the target artificial intelligence model; Based on the relevant information of the target artificial intelligence model, the model configuration information of the first media account is determined.
9. The method according to claim 1, characterized in that... Based on the session access token of the first media account, obtain the first session message from the multimedia server, including: When the first media account has enabled the session response function, the first session message is obtained from the multimedia server based on the session access token of the first media account.
10. The method according to claim 1, characterized in that, Also includes: Count the number of message responses to the first media account; The message response count of the first media account is sent to the target client so that the target client can display the message response count of the first media account.
11. A message response method, characterized in that, The target client applied to the target application includes: Receive account authorization prompts from the target application's target server; Display the account authorization prompt information; In response to the triggered operation for the account authorization prompt information, a first session authorization request is generated for the first media account in the multimedia application; The first session authorization request is sent to the target server, so that the target server responds to the first session authorization request by sending a second session authorization request for the first media account to the multimedia server corresponding to the multimedia application. The multimedia server then authorizes the first media account for the session and returns a session access token for the first media account. The target server is also used to obtain a first session message from the multimedia server based on the session access token of the first media account. The first session message is a session message sent by a second client corresponding to the second media account in the multimedia application to a first client corresponding to the first media account. A target artificial intelligence model corresponding to the first media account is determined. Using the target artificial intelligence model and combining it with the domain knowledge corresponding to the first media account, a first response message corresponding to the first session message is generated. The first response message is sent to the second client as a response message from the first client to the first session message through the multimedia server. The second media account is an account registered in the multimedia application by other users who want to communicate with the user corresponding to the first media account.
12. A message response device, characterized in that, Configured on the target application's target server, including The first sending module is used to provide account authorization prompt information to the target client corresponding to the target application, so that the target client can display the account authorization prompt information; The first receiving module is configured to receive a first session authorization request sent by the target client for a first media account in a multimedia application; the first session authorization request is generated in response to the triggering operation of the account authorization prompt information; The first sending module is further configured to respond to the first session authorization request by sending a second session authorization request for the first media account to the multimedia server corresponding to the multimedia application, so that the multimedia server can authorize the first media account for a session and return the session access token of the first media account. The message acquisition module is used to acquire the first session message from the multimedia server based on the session access token of the first media account; The first session message is a session message sent by the second client corresponding to the second media account in the multimedia application to the first client corresponding to the first media account; The second media account is an account registered in the multimedia application by other users who want to communicate with the user corresponding to the first media account. The model determination module is used to determine the target artificial intelligence model corresponding to the first media account; The message response module is used to generate a first response message corresponding to the first conversation message by utilizing the target artificial intelligence model and combining the domain knowledge corresponding to the first media account. The message sending module is used to send the first response message as a response message from the first client to the first session message to the second client via the multimedia server.
13. A message response device, characterized in that, The target client configured in the target application includes: The second receiving module is used to receive account authorization prompt information provided by the target application's target server. The display module is used to display the account authorization prompt information; The request generation module is used to generate a first session authorization request for the first media account in the multimedia application in response to a trigger operation for the account authorization prompt information. The second sending module is configured to send the first session authorization request to the target server, so that the target server responds to the first session authorization request by sending a second session authorization request for the first media account to the multimedia server corresponding to the multimedia application. The multimedia server then authorizes the first media account for the session and returns a session access token for the first media account. The target server is further configured to obtain a first session message from the multimedia server based on the session access token of the first media account. The first session message is a session message sent by a second client corresponding to the second media account in the multimedia application to a first client corresponding to the first media account. The module determines a target artificial intelligence model corresponding to the first media account. Using the target artificial intelligence model and combining it with the domain knowledge corresponding to the first media account, a first response message corresponding to the first session message is generated. The first response message is sent to the second client as a response message from the first client to the first session message through the multimedia server. The second media account is an account registered in the multimedia application by other users who want to communicate with the user corresponding to the first media account.
14. A computing device, characterized in that, This includes processing components and storage components; The storage component stores a computer program; the computer program is invoked and executed by the processing component to implement the message response method as described in any one of claims 1-11.
15. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed by the processing component, implements the message response method as described in any one of claims 1-11.
16. A computer program product, characterized in that, It includes a computer program or instructions that, when executed by a processing component, implement the message response method as described in any one of claims 1-11.
Citation Information
Patent Citations
Information interaction method and device, equipment and storage medium
CN116679859A