Virtual item circulation method, device and equipment based on user portrait and medium
By using a user profile-based approach to extract user intent tags in real time and generate differential incremental data packets, the problem of low interaction efficiency and security in the circulation of virtual items in weak network environments is solved. This enables personalized and automated virtual item circulation operations, improving circulation efficiency and security.
Patent Information
- Application Number
- CN202611071170.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-20
- Publication Date
- 2026-11-24
AI Technical Summary
In weak network environments, during the circulation of virtual items, the lag in user intent recognition leads to untimely updates of profile tags, lack of compliance protection, low interaction efficiency, and bandwidth waste and response delays caused by the full transmission of interactive data.
By using a user profile-based approach, user intent tags are extracted in real time, the user profile tag set is dynamically updated, interaction stage tags are generated, personalized prompt words are constructed and differentially encoded, and differential incremental data packets are generated to achieve personalized and automated virtual item circulation operations.
It reduces the time and cost of manual processing, improves the efficiency and security of virtual item circulation, reduces network transmission latency and terminal power consumption, and ensures the atomicity and security of circulation operations.
Smart Images

Figure CN123160273A_ABST
Abstract
Description
Technical Field
[0001] The embodiments disclosed herein relate to the field of computer technology, and more specifically to methods, apparatus, devices, and media for the circulation of virtual items based on user profiles. Background Technology
[0002] Currently, during the circulation of virtual items, the platform's customer service or system needs to interact with users in multiple rounds to confirm the circulation intention, verify information, and guide the operation.
[0003] However, when using the above methods to transfer virtual items, the following technical problems often arise: In weak network environments such as weak mobile network signals, limited bandwidth, or high latency (for example, when users use mobile networks in elevators, basements, or remote areas to transfer virtual items), the user intent recognition is delayed, resulting in untimely updates of profile tags, lack of compliance guarantees, and low interaction efficiency; full transmission of interaction data causes bandwidth waste and response delays, and once packets are lost, they need to be completely retransmitted.
[0004] The information disclosed in this background section is only intended to enhance the understanding of the background of the inventive concept, and therefore may contain information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0005] The summary portion of this disclosure is intended to provide a brief overview of the concepts, which will be described in detail in the detailed description portion. This summary portion is not intended to identify key or essential features of the claimed technical solutions, nor is it intended to limit the scope of the claimed technical solutions.
[0006] Some embodiments of this disclosure propose methods, apparatuses, devices, and media for the circulation of virtual items based on user profiles to address one or more of the technical problems mentioned in the background section above.
[0007] In a first aspect, some embodiments of this disclosure provide a method for virtual item circulation based on user profiles, comprising: in response to detecting that network environment parameters do not meet preset conditions and receiving original interaction information from a target user regarding virtual item circulation, extracting intent features from the original interaction information to generate user intent tags, and updating a preset dynamic user profile tag set based on the user intent tags to obtain an updated dynamic user profile tag set; generating interaction stage tags based on the updated dynamic user profile tag set and real-time acquired historical interaction data; generating associated knowledge fragments and basic response templates based on the user intent tags and the interaction stage tags; constructing personalized prompt words based on the updated dynamic user profile tag set, the interaction stage tags, the associated knowledge fragments, and the basic response templates; generating compliant response text based on the personalized prompt words; performing differential encoding on the compliant response text to generate differential incremental data packets, and transmitting the differential incremental data packets to a target application interface; and executing virtual item circulation operations in response to receiving a confirmation instruction from the target user in the target application interface regarding the differential incremental data packets.
[0008] Secondly, some embodiments of this disclosure provide a virtual item circulation device based on user profiles, including: an extraction and updating unit configured to, in response to detecting that network environment parameters do not meet preset conditions and receiving original interaction information from a target user regarding virtual item circulation transactions, extract intent features from the original interaction information to generate user intent tags, and update a preset dynamic user profile tag set based on the user intent tags to obtain an updated dynamic user profile tag set; a first generation unit configured to generate interaction stage tags based on the updated dynamic user profile tag set and real-time acquired historical interaction data; and a second generation unit configured to generate interaction stage tags based on the user intent tags. The system generates associated knowledge fragments and basic response templates based on the aforementioned interaction stage tags; a construction unit is configured to construct personalized prompt words based on the aforementioned dynamic user profile tag set, the aforementioned interaction stage tags, the aforementioned associated knowledge fragments, and the aforementioned basic response templates; a third generation unit is configured to generate compliant response text based on the aforementioned personalized prompt words; an encoding and transmission unit is configured to perform differential encoding on the aforementioned compliant response text to generate differential incremental data packets, and to transmit the aforementioned differential incremental data packets to the target application interface; and an execution unit is configured to execute virtual item transfer operations in response to receiving a confirmation instruction from the aforementioned target user in the aforementioned target application interface regarding the aforementioned differential incremental data packets.
[0009] Thirdly, some embodiments of this disclosure provide an electronic device, including: one or more processors; and a storage device having one or more programs stored thereon, such that when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any implementation of the first aspect.
[0010] Fourthly, some embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method as described in any implementation of the first aspect.
[0011] The above-described embodiments of this disclosure have the following beneficial effects: By using the user profile-based virtual item circulation method of some embodiments of this disclosure, personalized and automated interactive guidance and execution of virtual item circulation are achieved, thereby reducing the time cost of manual processing. Specifically, the reason for the long processing time and low efficiency of manual processing is that the existing virtual item circulation process relies on manual identification of user intent, query rules, manual assembly of scripts, and execution of operations. It lacks accurate perception of user dynamic profiles, automated intent matching, and personalized interaction generation capabilities, resulting in slow response, error-proneness, and inability to scale. Based on this, the user profile-based virtual item circulation method of some embodiments of this disclosure firstly, in response to detecting that network environment parameters do not meet preset conditions and receiving original interaction information from the target user regarding virtual item circulation, extracts intent features from the original interaction information to generate user intent tags, and updates a preset dynamic user profile tag set based on the user intent tags to obtain an updated dynamic user profile tag set. By extracting intent features from the original interaction information, user intent is identified in real time and intent tags are generated. Based on these intent tags, the user profile tag set is dynamically updated, transforming the profile from static input to real-time updates. This solves the problem of static customer profiles and reliance on manual input in existing technologies, providing accurate data support for subsequent personalized responses. Then, based on the updated dynamic user profile tag set and real-time historical interaction data, interaction stage tags are generated. This enables accurate identification and stage positioning of the user interaction process, solving the problem of existing technologies being unable to dynamically identify deep user needs, and providing a stage-based basis for phased and scenario-based personalized responses. Next, based on the aforementioned user intent tags and interaction stage tags, related knowledge fragments and basic response templates are generated. Based on the user intent tags and interaction stage tags, related knowledge fragments and basic response templates are retrieved and generated from the knowledge base and script template library, achieving real-time linkage between professional knowledge and script templates. This solves the problem of existing script tools lacking professional knowledge linkage and being unable to adapt to different interaction stages, improving the relevance and professionalism of the response content. Secondly, based on the updated dynamic user profile tag set, interaction stage tags, related knowledge fragments, and basic response template, personalized prompt words are constructed. The updated dynamic profile tag set, interaction stage tags, related knowledge fragments, and basic response template are integrated to construct personalized prompt words, achieving structured organization of multi-dimensional information. This provides accurate and complete input for subsequent large language model-generated response text, addressing the problem of simple prompt word construction and lack of personalized adaptation in existing technologies. Thirdly, compliant response text is generated based on the aforementioned personalized prompt words.Initial response text is generated based on personalized prompts. A dual compliance verification mechanism—keyword matching and large-scale model semantic review—filters out inappropriate statements and replaces them with compliant sample statements, generating compliant response text. This addresses the technical issue of existing business support tools lacking dedicated compliance verification mechanisms and being prone to inappropriate statements. Next, differential encoding is performed on the compliant response text to generate differential incremental data packets, which are then transmitted to the target application interface. Semantic-granular differential encoding is performed on the compliant response text. Through differential operation instruction generation, redundancy elimination, entropy encoding compression, and adaptive secondary compression, differential incremental data packets are generated and dynamically fragmented for transmission based on real-time network conditions. This reduces the amount of data transmitted, lowers transmission latency and terminal power consumption, and solves the problem of low data transmission efficiency in weak network environments. Finally, in response to the target user's confirmation instruction regarding the differential incremental data packets in the target application interface, the virtual item transfer operation is executed. In response to the user's confirmation command for the differential incremental data packet on the target application interface, the virtual item transfer operation is executed through command validity verification, item status query, quantitative evaluation of transfer conditions, atomic change of distributed transactions, and synchronization of profile records. This ensures the atomicity, consistency, and security of the transfer operation and solves the problem of lack of automated verification and status synchronization in the transfer confirmation process in existing technologies. Attached Figure Description
[0012] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and elements are not necessarily drawn to scale.
[0013] Figure 1 This is a flowchart of some embodiments of the virtual item circulation method based on user profiles according to the present disclosure; Figure 2 These are schematic diagrams illustrating the structure of some embodiments of the virtual item circulation device based on user profiles according to this disclosure; Figure 3 This is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. Detailed Implementation
[0014] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0015] It should also be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings. Unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other.
[0016] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0017] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0018] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0019] This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.
[0020] refer to Figure 1 The diagram illustrates a flow 100 of some embodiments of a virtual item circulation method based on user profiles according to the present disclosure. This virtual item circulation method based on user profiles includes the following steps: Step 101: In response to detecting that the network environment parameters do not meet the preset conditions and receiving the original interaction information of the target user regarding the virtual item circulation transaction, extract the intent features of the original interaction information to generate user intent tags, and update the preset dynamic user profile tag set based on the user intent tags to obtain the updated dynamic user profile tag set.
[0021] In some embodiments, the executing entity (e.g., an electronic device) of the above-described user profile-based virtual item circulation method can be hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is software, it can be installed in the hardware devices listed above. It can be implemented as multiple software programs or software modules to provide distributed services, or as a single software program or software module. No specific limitations are made here.
[0022] In some embodiments, the aforementioned execution entity may, in response to detecting that network environment parameters do not meet preset conditions and receiving original interaction information from a target user regarding virtual item transfer transactions, extract intent features from the original interaction information to generate user intent tags, and update a preset dynamic user profile tag set based on the user intent tags to obtain an updated dynamic user profile tag set. The aforementioned network environment parameters may be indicators describing the current network state, including bandwidth and signal strength (RSRP). The aforementioned preset conditions may be that the network environment parameters reach a preset network indicator threshold, for example, bandwidth greater than 1 Mbps or signal strength greater than -80 dBm. The aforementioned target user may be an individual who operates or initiates interaction in virtual item transfer transactions. For example, the aforementioned target user may refer to a securities client initiating a margin trading application. The aforementioned virtual item may be a digital object existing in a digital environment, without physical form but possessing certain value or usage rights. In the context of margin trading, the aforementioned virtual item includes, but is not limited to, digital collectibles, credit lines, collateral, financing liabilities, and securities lending liabilities, etc. The aforementioned virtual item transfer transaction may be a business operation involving changes or transfers in the status of the aforementioned "virtual item". The aforementioned original interaction information can be the initial input generated when a target user initiates a business inquiry or operation, and may include: text messages, voice messages, and image messages. For example, the aforementioned original interaction information could be a target user sending "I want to open a margin trading account, what are the requirements?". The aforementioned intent features can be the business purpose reflected in the user interaction information. The aforementioned user intent tags can be business intent classification identifiers extracted after semantic understanding of the original interaction information. For example, the aforementioned user intent tags could be "account opening inquiry", "credit limit adjustment application", or "collateral inquiry". The aforementioned preset dynamic user profile tag set can be a set of customer feature tags that are pre-built, stored in a database, and updated in real time with the interaction. For example, dynamic user profile tags could be {"customer level: VIP", "risk preference: aggressive", "asset size: 2 million"}. The aforementioned updated dynamic user profile tag set can be the latest tag set after merging and updating the customer features extracted from the current interaction with the original profile tags. For example, the aforementioned updated dynamic user profile tag set could be the newly added {"current intent: account opening inquiry", "focused product: margin trading"} after the update.
[0023] In some optional implementations of certain embodiments, the execution entity may, in response to detecting that network environment parameters do not meet preset conditions and receiving original interaction information from the target user regarding virtual item transfer transactions, extract intent features from the original interaction information to generate user intent tags, and update a preset dynamic user profile tag set based on the user intent tags to obtain an updated dynamic user profile tag set, which may include the following steps: The first step is to perform keyword cleaning on the original interaction information to generate cleaned conversation data. This cleaned conversation data can be the text obtained by removing interjections, correcting typos, and standardizing the format of the original interaction information. In practice, first, the original interaction information from the target user is received. Then, irrelevant symbols are removed, typos are corrected, and colloquial or abbreviation-based language is converted into standard business terminology. Finally, cleaned conversation data is generated.
[0024] The second step involves using a pre-defined intent tag library to perform semantic parsing on the cleaned session data to generate user intent tags. This pre-defined intent tag library can be a pre-built set of categorized tags covering various intents related to margin trading and securities lending. For example, the pre-defined intent tag library could include: {“Account opening consultation,” “Credit limit application,” “Securities source query,” “Collection management,” “Risk disclosure”}. In practice, firstly, the cleaned session data is matched against tag templates in the pre-defined intent tag library. Then, the semantic similarity between the text and each tag is calculated. Finally, the tag with the highest similarity is selected as the user intent tag.
[0025] The third step is to generate associated user data based on the aforementioned user intent tags. This associated user data can refer to customer background and historical data related to the current user intent tag. For example, when the intent is "collateralized financing purchase," the associated data could include the market value, discount rate, current financing interest rate, remaining available credit, and risk tolerance level of a certain asset held by the customer. In practice, firstly, based on the generated intent tags, the dimensions of customer business data that need to be associated with the query are determined. Then, relevant data is queried in real time (e.g., from the target user's account system, credit reporting system, and historical transaction database). Finally, the query results are organized to form associated user data.
[0026] The fourth step involves fusing the aforementioned user intent tags with the associated user data to generate an intermediate profile feature set. This intermediate profile feature set can be a set of features characterizing the business context after fusing the intent tags and associated user data. For example, the intermediate profile feature set could be: {"Intent: Account Opening", "Assets: 2 million", "Historical Consultations: 2 times", "Risk Level: Aggressive"}. In practice, firstly, the user intent tags are converted into feature vectors. Then, the associated user data is also quantified into feature vectors. Finally, the two types of vectors are fused (e.g., concatenated) to form the intermediate profile feature set. The fifth step involves quantifying the intent of the aforementioned intermediate profile feature set to generate intent information. This intent information can be a numerical value representing the urgency of the customer's current business transaction, obtained by quantifying and scoring the intermediate profile feature set. For example, an intent score of 92 out of 100 indicates a strong desire to open an account. In practice, firstly, signals related to intent strength are extracted from the intermediate profile feature set, such as the urgency indicated by the word "urgent!" in the interactive text, and the conversion rate of similar inquiries in the past. Then, a quantification model (e.g., based on logistic regression or gradient boosting trees) is used to calculate the intent score. Finally, the intent information is output.
[0027] Step 6: Based on the aforementioned intent information, determine the target user characteristics from the intermediate profile feature set to generate an updated feature set. These target user characteristics can be a subset of features selected from the intermediate profile feature set based on intent information, those that play a crucial role in the current interaction. For example, {“Intent: High”, “Asset Target: Yes”, “Risk Level: Aggressive”}. In practice, first, set the intent screening threshold to 70 points. Then, traverse the intermediate profile feature set and extract the feature items corresponding to an intent score of 82. Finally, aggregate high-value features to generate the target user feature set.
[0028] Step 7: Write the updated feature set into the dynamic user profile tag set to generate the updated dynamic user profile tag set. In practice, first, align the updated feature set with the existing dynamic user profile tag set by field; then, perform overwrite updates on fields such as "current intent" and "intent rating"; finally, write the updated profile into the database to generate the updated dynamic user profile tag set.
[0029] Step 102: Generate interaction stage tags based on the updated dynamic user profile tag set and the real-time acquired historical interaction data.
[0030] In some embodiments, the aforementioned executing entity can generate interaction stage tags based on the updated dynamic user profile tag set and real-time acquired historical interaction data. The real-time acquired historical interaction data refers to recent behavioral records of the target user related to the current virtual item (margin trading) transaction, obtained from various channels in real time when generating the interaction stage tags. For example, the real-time acquired historical interaction data could be a sequence of user behaviors within the past 24 hours, such as searching for "margin interest rate" in the app, viewing the "collateral" page, or inquiring about "how to short sell" through intelligent customer service. The interaction stage tags can be standardized identifiers of the specific steps or states the target user is in during this virtual item (transaction) process, and are one type of marketing stage, including but not limited to: "Initial Understanding Stage," "Collateral Preparation Stage," "Loan / Price Consultation Stage," "Instruction Issuance Stage," "Agreement Signing Stage," and "Waiting for Transaction / Approval Stage."
[0031] In some optional implementations of certain embodiments, the execution entity may generate interaction stage tags based on the updated dynamic user profile tag set and the real-time acquired historical interaction data, which may include the following steps: The first step is to establish a real-time event acquisition channel through the interfaces of multiple pre-defined interaction platforms. These pre-defined interfaces can refer to application programming interfaces (APIs) used to acquire data from different customer touchpoint systems. For example, these interfaces could include: mobile app backend interfaces, online transaction system interfaces, online customer service system interfaces, and WeChat mini-program server-side interfaces. The real-time event acquisition channel refers to a data pipeline established through these interfaces, capable of continuously and with low latency monitoring and receiving user interaction events from various platforms. For example, the real-time event acquisition channel could be a message queue (such as a Kafka topic), to which each platform interface pushes structured event messages in real time when a user performs an action. In practice, first, determine the list of interaction platforms to be integrated (WeChat Work, mobile app, web-based customer service). Then, call the APIs provided by each platform to establish long connections or subscribe to the message queue. Finally, complete the channel configuration to establish the real-time event acquisition channel.
[0032] The second step involves asynchronously acquiring the raw interactive data streams associated with the target user across multiple interactive platforms using the aforementioned real-time event acquisition channel. These raw interactive data streams include: text data streams, voice data streams, and rich media message metadata. The text data stream can be interactive event data transmitted as continuous text. The voice data stream can be interactive event data transmitted as audio signals. The rich media message metadata refers to data describing the core attributes of non-pure text / voice interactive events. For example, the rich media message metadata could be the event of a customer clicking the "Financial Purchase" button within the app, and its rich media message metadata could include {"Event Type": "Button Click", "Page": "Transaction Interface"}. In practice, firstly, the established real-time event acquisition channel is used to subscribe to the target user's events; then, various raw data types, such as text, voice, and rich media, are received asynchronously and non-blockingly; finally, the received data streams are stored in a temporary buffer to generate the raw interactive data stream.
[0033] The third step is to standardize the original interactive data stream to generate structured incremental interactive events. These structured incremental interactive events refer to standardized event units parsed from the original interactive data stream, containing event type, timestamp, and content summary. For example, a structured incremental interactive event could be: {"Event Type: Text Message", "Time: 14:30:25", "Content: Quota Amount"}. In practice, firstly, the core content of each message is extracted from the original interactive data stream; then, unstructured speech is converted to text, and metadata is extracted from rich media; finally, it is uniformly encapsulated into a standard event format to generate structured incremental interactive events.
[0034] The fourth step involves classifying and timing the incremental interaction events to generate a real-time event flow. This real-time event flow can refer to a continuous, structured sequence of incremental interaction events arranged chronologically. In practice, first, the incremental interaction events are classified by event type (text, voice, image). Then, each event is given a precise timestamp. Finally, the events are arranged chronologically to generate the real-time event flow. For example: Event 1 (14:30:25, text "quota"), Event 2 (14:30:28, text "interest rate").
[0035] The fifth step involves performing sliding window aggregation on the aforementioned real-time event interaction stream to generate interaction frequency and interval characteristics. The sliding window size is dynamically adjusted based on the average user interaction interval (default 5 minutes), with a fixed step size of 30 seconds, used to count the interaction frequency per unit time. These interaction frequency and interval characteristics can be obtained by statistically analyzing the customer's speaking frequency and the time difference between adjacent events from the sliding window analysis of the real-time event interaction stream. For example, these characteristics could be sending 6 messages within 5 minutes (frequency 1.2 messages / minute), with an average interval of 10 seconds. In practice, first, the sliding window size (e.g., 5 minutes) and step size (e.g., 30 seconds) are set; then, the number of events within the window and the time difference between adjacent events are counted; finally, the interaction frequency and average interaction interval are calculated to generate the interaction frequency and interval characteristics.
[0036] The sixth step involves concatenating the updated dynamic user profile tag set with the interaction frequency and interval features to generate a dynamic fusion feature vector. This dynamic fusion feature vector can be a multi-dimensional feature vector generated by concatenating the updated customer profile tag set with the real-time calculated interaction frequency and interval features. For example, the dynamic fusion feature vector can represent: [Profile: VIP, Aggressive] + [Frequency: 1.2, Interval: 10] = [1, 0, 1, 1.2, 10].
[0037] Step 7: Input the aforementioned dynamically fused feature vector into a pre-defined stage recognition model to generate real-time stage probability distribution information. This stage recognition model can be a pre-trained machine learning model used to predict the marketing stage a user is in based on the fused feature vector. The stage recognition model can be a classification model based on a Multilayer Perceptron (MLP) or Transformer architecture, used to predict the customer's business stage based on the fused feature vector. The model includes an input layer, a hidden layer, and an output layer: the input layer receives the dynamically fused feature vector (e.g., profile tags + interaction frequency features); the hidden layer performs nonlinear transformations and feature extraction through a multi-layer fully connected network, with each layer outputting a high-dimensional feature representation; the output layer uses a Softmax function to map the hidden layer output to the probability distribution of each stage, outputting real-time stage probability distribution information (e.g., "Account Opening Consultation": 0.8). The loss function of the stage recognition model can be cross-entropy loss, the optimizer is Adam, and the learning rate is 0.001. The aforementioned real-time stage probability distribution information refers to the probability vector output by the stage recognition model, representing the likelihood that the customer is currently in each marketing stage. For example, the real-time stage probability distribution information mentioned above could be {"Account Opening Consultation": 0.8, "Credit Limit Assessment": 0.15, "Collection Confirmation": 0.05}. In practice, firstly, the dynamically fused feature vector is input into a pre-trained stage recognition model. Then, the model performs forward inference calculations. Finally, the probability distribution of each stage is output, generating real-time stage probability distribution information.
[0038] Step 8 involves performing time-series smoothing on the aforementioned real-time stage probability distribution information to generate processed stage labels. These processed stage labels can be stable stage labels obtained by time-series smoothing and denoising the real-time stage probability distribution, eliminating single-instance fluctuations. For example, the processed stage label could be: identified as "account opening consultation" one second, identified as "credit limit assessment" the next second, and smoothed to remain "account opening consultation". In practice, firstly, the stage label from the previous moment is obtained as a reference. Then, the probability distribution at the current moment is smoothed using an exponential moving average. Finally, probability fluctuations caused by single abnormal interactions are eliminated to generate processed stage labels.
[0039] The ninth step involves matching the processed stage tags with a pre-defined stage tag library to generate interactive stage tags. This pre-defined stage tag library can be a pre-built set of tags covering all stages of the margin trading process, such as {“Account Opening Consultation,” “Qualification Review,” “License Calculation,” “Collection Management,” “Transaction Execution”}. In practice, first, the stage category with the highest probability is extracted from the processed stage tags; then, it is matched with standard tags in the pre-defined stage tag library. Finally, the matched standard stage tags are output to generate interactive stage tags.
[0040] Step 103: Based on the user intent tags and the aforementioned interaction stage tags, generate related knowledge fragments and basic response templates.
[0041] In some embodiments, the aforementioned executing entity can generate associated knowledge fragments and basic response templates based on the aforementioned user intent tags and interaction stage tags. The associated knowledge fragments can be professional knowledge content related to the current user intent and business stage. For example, the associated knowledge fragment could be a knowledge fragment about "financing margin ratio": "The financing margin ratio shall not be less than 80%, and the specific ratio is determined according to the customer's risk level." The basic response template can be a preset dialogue framework matched to the current user intent and business stage, containing standardized response structures and compliant expressions.
[0042] In some optional implementations of certain embodiments, the execution entity may generate associated knowledge fragments and basic response templates based on the aforementioned user intent tags and interaction stage tags, which may include the following steps: The first step is to encode the aforementioned user intent tags and interaction stage tags to generate a composite query vector. This composite query vector can be a multi-dimensional vector representation generated by concatenating the one-hot encoded vectors of the user intent tags and the interaction stage tags, used for subsequent multi-dimensional joint retrieval. For example, the composite query vector can be [1, 0, 0], the code for the intent "account opening consultation," and [0, 1, 0], the code for the stage "initial stage," resulting in [1, 0, 0, 0, 1, 0]. In practice, first, the one-hot encoded vectors corresponding to the user intent tags are obtained. Then, the one-hot encoded vectors corresponding to the interaction stage tags are obtained. Finally, the two vectors are concatenated to generate the composite query vector.
[0043] The second step involves performing vector retrieval with the aforementioned composite query vector and the preset flow event knowledge base and preset dialogue template library, respectively, to generate an initial knowledge fragment set and an initial dialogue template set. The preset flow event knowledge base can be a pre-built vector database storing professional knowledge of margin trading and securities lending (e.g., margin ratio, maintenance margin ratio, list of underlying securities, etc.). The preset dialogue template library can be a pre-built vector database storing standardized response dialogues for various business scenarios (e.g., account opening invitation, credit limit approval notification, risk disclosure, etc.). The initial knowledge fragment set can be an unsorted collection of relevant knowledge fragments retrieved from the knowledge base. For example, the initial knowledge fragment set could be three knowledge fragments retrieved: "Margin Ratio Explanation," "Credit Limit Calculation Formula," and "Account Opening Conditions List." The initial dialogue template set can be an unsorted collection of relevant dialogue templates retrieved from the dialogue library. For example, the initial dialogue template set could be two dialogue templates: "Account Opening Guidance Dialogue" and "Qualification Notification Dialogue." In practice, firstly, the cosine similarity between the composite query vector and each vector in the knowledge base is calculated. Then, the top K knowledge fragments with the highest similarity are selected. Finally, the same operation is performed on the synchronous dialogue template library to generate the initial set of knowledge fragments and the initial set of dialogue templates.
[0044] The third step involves reordering the initial knowledge fragment set and the initial dialogue template set based on their relevance to generate associated knowledge fragments and basic response templates. The associated knowledge fragments can be professional knowledge content selected from the initial knowledge fragment set that best matches the current user intent and business stage. The basic response templates can be standard response frameworks selected from the initial dialogue template set that best match the current scenario. In practice, first, the relevance score of each initial knowledge fragment to the composite query vector is calculated. Then, the scores are weighted and adjusted according to business priority rules (e.g., stage matching weight 0.6, intent matching weight 0.4). Finally, the optimal results are selected by sorting the scores in descending order to generate associated knowledge fragments and basic response templates. For example, the initial knowledge fragment "Account Opening Conditions List" with a weighted score of 95 ranks first and is selected as an associated knowledge fragment; the initial dialogue template "Account Opening Guidance Dialogue" with a weighted score of 92 ranks first and is selected as a basic response template.
[0045] Step 104: Based on the updated dynamic user profile tag set, interaction stage tags, related knowledge fragments, and basic response templates, construct personalized prompt words.
[0046] In some embodiments, the aforementioned executing entity can construct personalized prompts based on the updated dynamic user profile tag set, the interaction stage tags, the associated knowledge fragments, and the basic response template. These prompts can be a combination of the updated dynamic user profile tag set, interaction stage tags, associated knowledge fragments, and the basic response template, used to guide the generation of response text that conforms to specific scenarios, user characteristics, and compliance requirements. For example, the prompt could be: "You are a senior client manager at a securities company. The current client is a high-net-worth individual with a high risk appetite, and he / she is inquiring about financing rates. Please generate a professional, friendly, and compliant response text based on the core information of our bank's exclusive financing rate for high-net-worth clients (4.8% annualized), using a communication approach of 'understanding concerns -> clearly informing -> comparing advantages'." In some optional implementations of certain embodiments, the execution entity may construct personalized prompts based on the updated dynamic user profile tag set, the interaction stage tags, the associated knowledge fragments, and the basic response template, which may include the following steps: The first step is to convert the updated dynamic user profile tag set and the interaction stage tags to generate a prompt word prefix template. This prompt word prefix template can be the beginning of the prompt word generated after converting the user profile tags and interaction stage tags into structured text format. For example, the prompt word prefix template could be: "You are a margin trading account manager, currently a VIP customer, with an intent score of 85, and are in the initial stage of account opening consultation. Please generate a response based on the following information." In practice, first, key fields such as customer level and intent score are extracted from the updated dynamic user profile tag set. Then, the interaction stage tags are converted into stage description text. Finally, the prompt word prefix template is generated by concatenating the tags according to a preset template format. For example, the user profile tag {Level: VIP, Intent Score: 85} and the interaction stage tag "Initial stage of account opening consultation" are converted to "You are a margin trading account manager, VIP customer level, intent score of 85, in the initial stage of account opening consultation."
[0047] The second step involves inserting the aforementioned related knowledge fragments into the preset knowledge sites of the prompt prefix template to generate a knowledge-enhanced prompt intermediate. These preset knowledge sites can be specific location markers reserved in the prompt prefix template for inserting professional knowledge content. The knowledge-enhanced prompt intermediate can be a prompt intermediate form incorporating professional knowledge, generated by filling the related knowledge fragments into the preset knowledge sites. For example, the knowledge-enhanced prompt intermediate could be: "You are a margin trading account manager… [Knowledge Site] Margin trading account opening requires: at least 6 months of trading experience, and an average daily asset value of no less than 500,000 yuan in the past 20 days… Please generate a response based on the above knowledge." In practice, firstly, the preset knowledge site markers are located in the prompt prefix template. Then, the content of the related knowledge fragments is formatted and standardized. Finally, the standardized knowledge content replaces the knowledge site markers to generate the knowledge-enhanced prompt intermediate.
[0048] The third step involves semantically fusing the basic response template with the knowledge-enhanced prompt intermediate to generate a fused prompt vector. This fused prompt vector can be a comprehensive representation obtained by semantically vectorizing the basic response template and the knowledge-enhanced prompt intermediate. In practice, firstly, the basic response template is converted into a speech vector using a pre-trained encoder. Then, the knowledge-enhanced prompt intermediate is converted into an intermediate vector using the same encoder. Finally, the two vectors are weighted and fused to generate the fused prompt vector.
[0049] The fourth step involves mapping the fused prompt word vectors to a target-standard text sequence to generate personalized prompt words. This target standard can be a predefined input format specification, including constraints such as field order, separators, and special tags. In practice, first, the field order and separators are determined according to the predefined input specification. Then, the fused prompt word vectors are decoded into corresponding text fragments. Finally, all text fragments are concatenated according to the specified format to generate personalized prompt words. For example, the final prompt words are generated by concatenating the text in the order of "System Role -> Customer Information -> Professional Knowledge -> Response Instructions".
[0050] Step 105: Generate a compliant response text based on the personalized prompts.
[0051] In some embodiments, the aforementioned implementing entity may generate a compliant response text based on the aforementioned personalized prompts. Here, "the aforementioned" refers to the final generated response text that complies with business regulatory rules, internal compliance requirements, and communication ethics.
[0052] In some optional implementations of certain embodiments, the execution entity may generate compliant response text based on the personalized prompts, which may include the following steps: The first step involves inputting the personalized prompts into a pre-trained large-scale language model to generate initial response text. This pre-trained large-scale language model can be a generative language model pre-trained on a large-scale text corpus, such as the GPT series or LLaMA, deployed on a cloud-based inference service to generate natural language response text based on the input prompts. The core structure of this pre-trained large-scale language model consists of a word embedding layer, a multi-layered Transformer decoder (or encoder and decoder stacked), and an output layer. First, the word embedding layer converts each token in the input personalized prompts (text sequence) into a high-dimensional vector representation. Then, these vector sequences are input into a multi-layered Transformer decoder, each layer containing a self-attention mechanism and a feedforward neural network: the self-attention layer calculates the interdependencies between all tokens in the sequence, outputting a context-aware representation; the feedforward network performs a non-linear transformation on the representation at each position. The input to each layer is the feature vector output from the previous layer, and the output is a further encoded context vector. Finally, the output layer (usually a linear layer plus Softmax) predicts the probability distribution of the next lexical unit based on the feature vector output by the last Transformer layer, generating a complete initial response text word by word through autoregression. This initial response text can be the raw, unverified content directly generated by the large language model based on personalized prompts. For example, the initial response text could be "Hello, you meet the conditions for opening a margin trading account, guaranteed to make big money!" In practice, firstly, the personalized prompts are encapsulated according to the model's required format. Then, the API of the pre-trained large language model or the local inference interface is called. Finally, the generated result returned by the model is received as the initial response text.
[0053] The second step involves keyword matching of the initial response text and comparison with a pre-defined prohibited word list to generate an interception result. This pre-defined prohibited word list can be a pre-built set containing prohibited words and expression patterns used in margin trading. For example, it could include prohibited keywords such as "guaranteed returns," "guaranteed profits," "risk-free," and "promise." The interception result can be a Boolean value or a hit detail record indicating whether the initial response text matches the prohibited word list. For example, the interception result could be {"Hit": true, "Hit word": "guaranteed returns", "Position": 15}. In practice, the initial response text is first segmented. Then, the pre-defined prohibited word list is traversed to check if the text contains prohibited keywords. Finally, all hit information is summarized to generate the interception result. For example, the text "guaranteed to make big money" matches both "guaranteed" and "make big money," resulting in a hit interception result.
[0054] The third step involves extracting semantic features from the initial response text in response to the interception result meeting the first preset condition, thereby generating a semantic feature vector. This semantic feature vector can be a condition specifying whether semantic review is required. For example, the first preset condition could be "the confidence level of the hit words in the interception result is below the threshold of 0.7" or "only low-risk violation words are hit." The semantic feature vector can be a dense vector representation of the initial response text converted by an encoding model for semantic similarity calculation. In practice, firstly, it is determined whether the interception result meets the first preset condition (e.g., the confidence level of the hit words is below 0.7). Then, if the condition is not met, the interception is directly rejected; if the condition is met, the semantic encoding model is invoked. Finally, the initial response text is input into the encoding model, and the semantic feature vector is output.
[0055] The fourth step involves inputting the aforementioned semantic feature vectors into a pre-trained semantic review model to generate semantic compliance information. This pre-trained semantic review model can be a binary classification or scoring model pre-trained on labeled compliant / non-compliant dialogue corpora, used to determine whether the response text is semantically compliant. This pre-trained semantic review model can be based on the RoBERTa-wwm-ext pre-trained model, with a classification head consisting of a two-layer fully connected network (input layer (768-dimensional input), output layer (2-dimensional output)), trained using cross-entropy loss, used to determine the semantic compliance of the response text. The input to this semantic review model is the generated semantic feature vector (e.g., sentence vectors from encoders such as BERT). This vector first undergoes dimensionality mapping and non-linear activation through a fully connected input layer. Subsequently, it passes through one or more hidden layers for feature transformation and abstraction, with each layer using the output vector of the previous layer as input to output a higher-order semantic representation. Finally, the output layer (usually a Softmax classification layer) maps these high-level representations into semantic compliance information, i.e., the probability distribution or specific risk classification results for various risk labels (e.g., "violation," "compliance," "suspect"). The aforementioned semantic compliance information can be a score or classification result indicating whether the initial response text is semantically compliant. For example, the semantic compliance information could be: {"Compliance Probability": 0.85, "Compliant": Yes, "Violation Type": None}. In practice, firstly, the semantic feature vector is input into a pre-trained semantic review model. Then, the model performs forward inference calculations. Finally, it outputs a compliance probability score and a violation type label as semantic compliance information. For example, inputting the aforementioned semantic feature vector into a pre-trained semantic review model outputs a compliance probability of 0.85, indicating compliance.
[0056] The fifth step involves determining the initial response text as a compliant response text if the aforementioned semantic compliance information meets the second preset condition. This second preset condition can be a rule required for the initial response text to be classified as a compliant response text. For example, the second preset condition could be "compliance probability greater than or equal to 0.8" or "no violation type." The compliant response text can be the final response text confirmed to meet compliance requirements after dual verification through keyword matching and semantic review. For example, the compliant response text could be, "Hello, opening a margin trading account requires at least 6 months of trading experience and an average daily asset value of no less than 500,000 yuan over the past 20 days. Specific returns are affected by market fluctuations; please make a prudent decision." In practice, firstly, a compliance probability score is extracted from the semantic compliance information. Then, it is determined whether the score exceeds the second preset condition threshold (e.g., 0.8). Finally, if the condition is met, the initial response text is determined as a compliant response text; otherwise, manual review or regeneration is triggered.
[0057] Step 106: Perform differential encoding on the above compliant response text to generate differential incremental data packets, and transmit the above differential incremental data packets to the target application interface. In some embodiments, the aforementioned executing entity may perform differential encoding on the aforementioned compliant response text to generate differential incremental data packets, and transmit the aforementioned differential incremental data packets to the target application interface. The aforementioned differential incremental data packets can be data units that can be transmitted over a network. These differential incremental data packets refer to data units that only contain information about the differences between the current response text and historical response texts, rather than the full text data. The aforementioned differential encoding may only transmit the differences between the current data and historical data, rather than the full data. The aforementioned differential incremental data packets, based on "compressed differential data," add header information for network transmission and protocol identification, such as data packet type identifier, total length, fragmentation information, and checksum. The aforementioned target application interface can be a client application interface that ultimately presents interactive content to the user, such as a trading assistant chat window in a mobile app, or a customer service dialog box on a web application.
[0058] In some optional implementations of certain embodiments, the execution entity may perform differential encoding on the compliance response text to generate differential incremental data packets, and transmit the differential incremental data packets to the target application interface, which may include the following steps: The first step involves performing a semantic-granular comparison between the compliant response text and the historical response text retrieved from the local cache of the target application interface to generate an operation instruction sequence. This semantic-granularity comparison can be based on sentences or phrases rather than bytes. The operation instruction sequence can be a sequence of commands such as "insert," "delete," and "replace," describing the changes from historical text to the current text. For example, the operation instruction sequence could be ["Keep the first 5 characters," "Delete 'No'," "Insert 'Perfectly suitable'"]. In practice, the text is first segmented into a sequence of sentences, and then a semantic hash value (using SimHash) is calculated for each sentence in the sequence. Then, the longest common subsequence algorithm is used to find the indices of sentences with the same semantic hash value. Finally, the operation instruction sequence is generated based on these indices.
[0059] The second step involves generating differential incremental data packets based on the aforementioned operation instruction sequence and transmitting these packets to the target application interface. In practice, the operation instruction sequence is directly serialized using a custom binary format. Each instruction is encoded with a structure of {operation type (1 byte), starting offset (4 bytes), content length (2 bytes), content (variable length)}, without redundant instruction elimination or adjacent merging, preserving the original difference description. Then, the entire serialized binary data block is compressed once using the standard gzip algorithm (default compression level 6). The compression result is then concatenated with necessary metadata (such as timestamp, original compliant text length, and CRC32 checksum), and a fixed-format header (including packet identifier 0x02 and total length field) is added to generate a complete differential incremental data packet. Finally, the entire data packet is sent to the target application interface via an established TCP long connection. Reliability is ensured by TCP's own congestion control and acknowledgment retransmission mechanisms. Upon receiving the packet, the target interface unpacks, decompresses, and deserializes the instruction sequence according to the packet header, and applies it to the locally cached text to complete text updates and interface rendering.
[0060] In addressing the technical challenges mentioned above, the application scenario—text transmission in a weak network environment—often presents the following issues: high bandwidth consumption and latency for full text transmission, and susceptibility to packet loss and rendering stuttering in weak network conditions. To meet the specific requirements of this application scenario—low bandwidth consumption, low latency, high reliability in weak network conditions, and fast client-side rendering—we have decided to adopt the following solution: In some optional implementations of certain embodiments, the execution entity may transmit the differential incremental data packet to the target application interface based on the differential operation instruction sequence, which may include the following steps: The first step involves eliminating redundant instructions and merging adjacent instructions in the above sequence of operation commands to generate an optimized instruction sequence. This optimized instruction sequence can be a simplified sequence obtained by eliminating invalid instructions and merging adjacent, similar instructions. For example, the optimized instruction sequence could be ["Keep the first 5 characters", "Replace characters 6-10 with 'Very suitable'"]. In practice, first, the sequence of differing operation commands is traversed, and redundant instructions such as "Insert empty content" are identified and deleted. Then, adjacent instructions are checked to see if they are of the same type (e.g., multiple consecutive "Insert"). Finally, adjacent, similar instructions are merged into a single batch instruction to generate the optimized instruction sequence.
[0061] The second step involves entropy encoding compression of the optimized instruction sequence to generate a simplified, differentiated instruction set. This simplified, differentiated instruction set can be binary instruction data compressed using entropy encoding algorithms such as Huffman coding or arithmetic coding. For example, the simplified, differentiated instruction set could be a binary data block with a 40% reduction in size after compression. In practice, firstly, the frequency of each instruction in the optimized instruction sequence is statistically analyzed. Then, a Huffman tree is constructed based on the frequency to generate a variable-length encoding table. Finally, each instruction is replaced with its corresponding variable-length code to generate the simplified, differentiated instruction set.
[0062] The third step involves serializing and encapsulating the aforementioned simplified differential instruction set and key metadata to generate the original differential data block. The key metadata may include auxiliary information such as timestamps, version numbers, original text length, and checksums. The original differential data block can be a binary data block obtained by serializing the instruction set and metadata according to a predetermined format. For example, the original differential data block could be [version number 1 byte][timestamp 4 bytes][instruction set length 2 bytes][instruction set data]. In practice, first, key metadata (timestamp, version number, length, checksum) is collected. Then, the metadata and simplified differential instruction set are serialized according to a predetermined binary format. Finally, all serialized bytes are concatenated into a complete binary data block to generate the original differential data block.
[0063] The fourth step involves adaptive secondary compression of the original differential data blocks to generate compressed differential data. This compressed differential data can be smaller-volume data obtained by performing a second compression based on data characteristics (e.g., length, complexity) using either the LZ4 or zlib algorithm, following the initial compression. The adaptive secondary compression can be as follows: if the entropy value of the original differential data block is greater than 0.8 and its length exceeds 1KB, the LZ4 algorithm is selected to balance compression ratio and speed; otherwise, the zlib algorithm is selected to achieve a higher compression ratio. For example, the compressed differential data can be a data block whose volume is further reduced by 30% after secondary compression. In practice, firstly, the length and entropy value of the original differential data block are obtained as complexity indicators. Then, a secondary compression algorithm is selected based on the relationship between complexity and a preset threshold (e.g., LZ4 is suitable for high complexity, and zlib is suitable for low complexity). Finally, the selected algorithm is called for compression to generate compressed differential data.
[0064] The fifth step involves adding a data packet header to the compressed differential data to generate a differential incremental data packet. In practice, first, a data packet header is constructed, including a data packet type identifier (0xDF), a protocol version number, and an encryption flag. Then, the compressed differential data is used as the packet body. Finally, the header and packet body are concatenated to generate the differential incremental data packet.
[0065] The sixth step involves determining the optimal fragmentation size and dynamic retransmission strategy based on real-time network status information. The optimal fragmentation size can be the most suitable data fragment size calculated based on the current network bandwidth and signal strength. The dynamic retransmission strategy information can include parameters such as retransmission timeout, maximum number of retransmissions, and retransmission backoff algorithm. For example, the optimal fragmentation size could be 512 bytes with a retransmission timeout of 500ms. The dynamic retransmission strategy could employ an exponential backoff algorithm (retransmission timeout = initial timeout × (backoff coefficient)^(number of retransmissions)), for example, an initial timeout of 200ms, a backoff coefficient of 1.5, and a maximum number of retransmissions of 3. In practice, first, the current network signal strength (RSRP) and available bandwidth are monitored in real time. Then, the optimal fragmentation size (bandwidth × target delay) is calculated based on the bandwidth. Finally, the retransmission timeout and backoff coefficient are set according to the signal strength to generate the dynamic retransmission strategy information.
[0066] Step 7: Based on the optimal fragmentation specification described above, dynamically fragment the differential incremental data packets to generate multiple ordered data fragments. This dynamic fragmentation can be achieved by adjusting the fragment size according to real-time network bandwidth (e.g., through RSRP signal strength assessment): a fragment size of 1KB when bandwidth ≥ 1Mbps, and 512B when bandwidth < 1Mbps, to improve transmission success rate in weak network environments. These ordered data fragments can be a set of data segments numbered sequentially according to transmission order, with each fragment's size not exceeding the optimal fragmentation specification. For example, the ordered data fragments could be [Fragment 1 / 3 (Sequence Number 1, Size 12KB), Fragment 2 / 3 (Sequence Number 2, Size 12KB), Fragment 3 / 3 (Sequence Number 3, Size 8KB)]. In practice, first, the total length of the differential incremental data packets is obtained. Then, the number of fragments is calculated according to the optimal fragmentation specification. Finally, the data packets are sequentially segmented, and a sequence number is added to each fragment to generate multiple ordered data fragments.
[0067] Step 8: Based on the aforementioned dynamic retransmission strategy information, the multiple ordered data fragments are sequentially transmitted to the target application interface for reassembly and rendering. This reassembly and rendering can be a process where, after the target application interface receives all fragments, they are reassembled into a complete data packet in sequence and then decoded and rendered into readable text. For example, after receiving fragments 1, 2, and 3, they can be reassembled into the original response text and displayed. In practice, firstly, the first data fragment is sent in sequence and a retransmission timer is started. Then, during transmission, acknowledgment responses are listened for, and fragments that have timed out and not been acknowledged are retransmitted using a backoff algorithm. Finally, after all fragments are acknowledged, the target application interface reassembles and decodes them in sequence, completing the interactive response.
[0068] The above-described operation steps, as an inventive point of this disclosure, solve the technical problem mentioned in the background art: "high bandwidth consumption and large latency in full-text transmission, easy packet loss and rendering lag in weak network conditions." The reasons for these technical problems are as follows: traditional methods directly transmit complete and compliant response text, resulting in a large data volume; they do not utilize duplicate information in historical response texts; and they lack adaptive fragmentation and retransmission mechanisms for weak network environments. This invention generates a sequence of operation instructions containing only differences by performing semantic-level differential encoding on the compliant response text, and then sequentially performs redundancy elimination, entropy encoding compression, and adaptive secondary compression to minimize the data volume. Combined with dynamic fragmentation based on network status and an exponential backoff retransmission strategy, it achieves the goal of minimizing the amount of data to be transmitted while ensuring information integrity, improving transmission success rate and efficiency in complex network environments, saving mobile network traffic, and reducing interaction latency.
[0069] Step 107: In response to receiving the confirmation instruction from the target user in the target application interface for the differential incremental data packet, execute the virtual item transfer operation.
[0070] In some embodiments, the execution entity may perform a virtual item transfer operation in response to receiving a confirmation instruction from the target user in the target application interface regarding the differential incremental data packet. The confirmation instruction may refer to a signal generated when the target user performs a final confirmation operation on the guidance information pushed by the system and rendered based on the differential incremental data packet in the "target application interface" (such as a chat window). For example, the confirmation instruction may typically be an event such as clicking a button like "Confirm Transaction" or "Confirm Order".
[0071] In addressing the technical challenges mentioned above, the application scenario—where users complete virtual item transfers via intelligent guidance (e.g., users confirming margin trading quota approvals, securities allocation, or collateral transfers on an app)—often presents the following technical issues: the transfer confirmation process lacks automated condition verification and status synchronization mechanisms, making it prone to failure due to unmet conditions, concurrency conflicts, or data inconsistencies, resulting in wasted time and resources. Considering the following requirements for this application scenario—high security, strong consistency, traceability, and replay protection—we have decided to adopt the following solution: In some optional implementations of certain embodiments, the execution entity may, in response to receiving a confirmation instruction from the target user in the target application interface regarding the differential incremental data packet, perform a virtual item transfer operation, which may include the following steps: The first step involves identifying the instruction type and verifying its validity to generate a verified confirmation instruction. The validity verification uses HMAC-SHA256 to sign the instruction content, with a timestamp deviation allowed within ±5 minutes to prevent replay attacks. The verified confirmation instruction can be a trusted instruction that has passed signature and timestamp verification. For example, the verified confirmation instruction could be {"Type": "Credit Limit Confirmation", "User ID": U123, "Timestamp": 1702123456, "Signature": 0x7A3F}. In practice, first, the confirmation instruction is parsed to obtain the instruction type, user ID, and timestamp. Then, the digital signature is verified to be correct and the timestamp is within the valid window. Finally, the verified instruction is output, generating a verified confirmation instruction.
[0072] The second step involves extracting the virtual item identifier and circulation parameter information from the differential incremental data packet based on the verified confirmation instructions. The virtual item identifier can be a unique ID or code identifying the virtual item. The circulation parameters can include parameters such as circulation quantity, target account, and validity period. For example, the virtual item identifier could be "Financing Amount ID: MRC_10001," and the circulation parameters could be {"Amount": 1 million, "Target Account": A888, "Validity Period": 30 days}. In practice, first, the storage path of the differential incremental data packet is obtained from the verified confirmation instructions. Then, the metadata fields in the data packet are parsed. Finally, the virtual item identifier and various circulation parameters are extracted to generate the virtual item identifier and circulation parameter information.
[0073] The third step involves determining the current status and ownership information of the virtual item based on its identifier, thereby generating an item status verification result. This current status and ownership information may include the virtual item's availability (idle / assigned / frozen) and the current holder's ID. The item status verification result can be a conclusion indicating whether the status is normal and whether the ownership matches. For example, the item status verification result could be {"Status": Available", "Ownership Matches": Yes, "Current Holder": A888}. In practice, first, the status table of the virtual item management system is queried based on the virtual item identifier. Then, the current status and holder information of the item are obtained. Finally, it is compared with the target user in the request to generate the item status verification result.
[0074] The fourth step involves comparing the item status verification results with the preset circulation conditions item by item to generate a condition matching degree vector. This vector can be a vector composed of matching degrees from 0 to 1 obtained by comparing each circulation condition (e.g., user level, asset threshold, risk control score) with the verification results. For example, the condition matching degree vector could be [user level matching degree: 1.0, asset threshold matching degree: 0.8, risk control score matching degree: 0.9]. In practice, first, the preset circulation condition list (e.g., level ≥ VIP3, assets ≥ 500,000, risk control score ≥ 60) is read from the system configuration. Then, each indicator in the item status verification results is compared with the conditions one by one. Finally, the matching degree of each item is calculated (1 for meeting the standard, and proportionally for not meeting the standard), generating the condition matching degree vector.
[0075] The fifth step involves generating transfer feasibility information based on the aforementioned condition matching vector. This transfer feasibility information can be a quantitative score from 0 to 100, obtained by weighted comprehensive calculation of the condition matching vector. For example, the transfer feasibility information could be a comprehensive score of 85. In practice, firstly, the preset weights of each transfer condition are obtained (e.g., grade weight 0.3, asset weight 0.4, risk control weight 0.3). Then, the condition matching vector is weighted and summed with the weights. Finally, the weighted sum is converted into a percentage score to generate the transfer feasibility information.
[0076] Step 6: In response to the aforementioned feasibility information exceeding a preset threshold, a virtual item transfer transaction request is generated based on the aforementioned transfer parameter information. The preset threshold can be the minimum feasibility score allowed by the system. For example, the preset threshold could be 80 points. The virtual item transfer transaction request can include atomic operation requests containing information such as item identifier, source account, target account, and transfer quantity. For example, the virtual item transfer transaction request could be {"Operation Type": "Quota Transfer", "Item ID": "MRC_10001", "From": A888, "To": B999, "Quota": 1 million}. In practice, firstly, the transfer feasibility information is compared with the preset threshold; then, if it exceeds the threshold, the transfer preparation stage begins. Finally, the transaction request is assembled based on the transfer parameter information to generate the virtual item transfer transaction request.
[0077] Step 7: In response to the item status verification result meeting the preset transfer conditions, a virtual item transfer transaction request is generated based on the transfer parameter information. The preset transfer conditions can be a set of minimum conditions that the transfer operation must meet. For example, the preset transfer conditions could be {"Status": "Available", "Ownership Match": Yes, "User Level": ≥VIP3}. In practice, first, it checks whether each item in the item status verification result meets the preset transfer conditions. Then, if all conditions are met, the transfer preparation stage begins. Finally, the transaction request is assembled based on the transfer parameter information to generate the virtual item transfer transaction request.
[0078] Step 8: Based on the aforementioned virtual item transfer transaction request, execute an atomic virtual item ownership change operation. This ownership change operation can be an atomic ownership transfer operation guaranteed by distributed transactions (such as TCC or 2PC). Specifically, this atomic operation is achieved through a two-phase commit (2PC) protocol: the first phase deducts virtual items from the source account and locks them; the second phase, after confirmation from all participants, formally commits or rolls back. For example, the virtual item ownership change operation could be changing the ownership of the quota MRC_10001 from A888 to B999. In practice, first, a distributed transaction is initiated and a transaction log is recorded. Then, virtual items are deducted from the source account and added to the target account. Finally, the transaction is committed and the lock is released, completing the atomic ownership change operation.
[0079] Step 9: In response to the successful change of ownership of the virtual items, a success notification is pushed to the target application interface, and the virtual item holding record in the dynamic user profile tag set is updated. The virtual item holding record can be a field in the user profile tag set that records the list of virtual items currently held by the user. For example, the virtual item holding record could be {“Holding Quota”: [“MRC_10001”], “Holding Coupon Source”: [***]}. In practice, first, the ownership change operation is confirmed to have returned a successful status. Then, a success notification is sent to the target application interface via WebSocket or push service. Finally, the holding record fields in the user profile tag set are updated, adding or deleting the corresponding virtual item entries to complete the entire process. If an exception occurs during the ownership change operation (such as network timeout or database lock conflict), the system automatically calls a compensation transaction: first, the current item status is queried; if the source account has been deducted but the target account has not been added, a compensation operation is performed; if neither account has changed, the transaction is marked as failed. The compensation transaction is logged independently and supports manual intervention.
[0080] The above-described operational steps, as an inventive point of this disclosure, solve the technical problem mentioned in the background art: "The lack of automated condition verification and status synchronization mechanisms in the transfer confirmation process easily leads to transfer failure or asset status disorder due to unmet conditions, concurrent conflicts, or data inconsistencies, wasting time costs caused by operation failures." The reasons for the above technical problems are as follows: After the user clicks confirm, the status, ownership, and transfer parameters of the virtual item may change instantly, or the instruction may be tampered with or replayed during network transmission. If the system does not perform secondary verification and atomic operations, serious business errors such as "overselling," "duplicate payments," and "unclear ownership" are easily generated. This invention achieves closed-loop security and strong data consistency from user confirmation to system execution by performing multi-level verification of instruction validity, item status, and transfer conditions before execution, and using atomic transactions to ensure eventual consistency of changes, thus saving time costs caused by operation failures.
[0081] The above-described embodiments of this disclosure have the following beneficial effects: By using the user profile-based virtual item circulation method of some embodiments of this disclosure, personalized and automated interactive guidance and execution of virtual item circulation are achieved, thereby reducing the time cost of manual processing. Specifically, the reason for the long processing time and low efficiency of manual processing is that the existing virtual item circulation process relies on manual identification of user intent, query rules, manual assembly of scripts, and execution of operations. It lacks accurate perception of user dynamic profiles, automated intent matching, and personalized interaction generation capabilities, resulting in slow response, error-proneness, and inability to scale. Based on this, the user profile-based virtual item circulation method of some embodiments of this disclosure firstly, in response to detecting that network environment parameters do not meet preset conditions and receiving original interaction information from the target user regarding virtual item circulation, extracts intent features from the original interaction information to generate user intent tags, and updates a preset dynamic user profile tag set based on the user intent tags to obtain an updated dynamic user profile tag set. By extracting intent features from the original interaction information, user intent is identified in real time and intent tags are generated. Based on these intent tags, the user profile tag set is dynamically updated, transforming the profile from static input to real-time updates. This solves the problem of static customer profiles and reliance on manual input in existing technologies, providing accurate data support for subsequent personalized responses. Then, based on the updated dynamic user profile tag set and real-time historical interaction data, interaction stage tags are generated. This enables accurate identification and stage positioning of the user interaction process, solving the problem of existing technologies being unable to dynamically identify deep user needs, and providing a stage-based basis for phased and scenario-based personalized responses. Next, based on the aforementioned user intent tags and interaction stage tags, related knowledge fragments and basic response templates are generated. Based on the user intent tags and interaction stage tags, related knowledge fragments and basic response templates are retrieved and generated from the knowledge base and script template library, achieving real-time linkage between professional knowledge and script templates. This solves the problem of existing script tools lacking professional knowledge linkage and being unable to adapt to different interaction stages, improving the relevance and professionalism of the response content. Secondly, based on the updated dynamic user profile tag set, interaction stage tags, related knowledge fragments, and basic response template, personalized prompt words are constructed. The updated dynamic profile tag set, interaction stage tags, related knowledge fragments, and basic response template are integrated to construct personalized prompt words, achieving structured organization of multi-dimensional information. This provides accurate and complete input for subsequent large language model-generated response text, addressing the problem of simple prompt word construction and lack of personalized adaptation in existing technologies. Thirdly, compliant response text is generated based on the aforementioned personalized prompt words.Initial response text is generated based on personalized prompts. A dual compliance verification mechanism—keyword matching and large-scale model semantic review—filters out inappropriate statements and replaces them with compliant sample statements, generating compliant response text. This addresses the technical issue of existing business support tools lacking dedicated compliance verification mechanisms and being prone to inappropriate statements. Next, differential encoding is performed on the compliant response text to generate differential incremental data packets, which are then transmitted to the target application interface. Semantic-granular differential encoding is performed on the compliant response text. Through differential operation instruction generation, redundancy elimination, entropy encoding compression, and adaptive secondary compression, differential incremental data packets are generated and dynamically fragmented for transmission based on real-time network conditions. This reduces the amount of data transmitted, lowers transmission latency and terminal power consumption, and solves the problem of low data transmission efficiency in weak network environments. Finally, in response to the target user's confirmation instruction regarding the differential incremental data packets in the target application interface, the virtual item transfer operation is executed. In response to the user's confirmation command for the differential incremental data packet on the target application interface, the virtual item transfer operation is executed through command validity verification, item status query, quantitative evaluation of transfer conditions, atomic change of distributed transactions, and synchronization of profile records. This ensures the atomicity, consistency, and security of the transfer operation and solves the problem of lack of automated verification and status synchronization in the transfer confirmation process in existing technologies.
[0082] Further reference Figure 2 As an implementation of the methods shown in the above figures, this disclosure provides some embodiments of a virtual item circulation device based on user profiles. These device embodiments are similar to... Figure 1 Corresponding to the method embodiments shown, this user profile-based virtual item circulation device can be specifically applied to various electronic devices.
[0083] like Figure 2As shown, a virtual item circulation device 200 based on user profiles includes: an extraction and updating unit 201, a first generation unit 202, a second generation unit 203, a construction unit 204, a third generation unit 205, an encoding and transmission unit 206, and an execution unit 207. The extraction and updating unit 201 is configured to: in response to detecting that network environment parameters do not meet preset conditions and receiving original interaction information from a target user regarding virtual item circulation transactions, extract intent features from the original interaction information to generate user intent tags, and update a preset dynamic user profile tag set based on the user intent tags to obtain an updated dynamic user profile tag set. The first generation unit 202 is configured to: generate interaction stage tags based on the updated dynamic user profile tag set and real-time acquired historical interaction data. The second generation unit 203 is configured to: generate associated knowledge fragments and basic response templates based on the user intent tags and the interaction stage tags. The construction unit 204 is configured to: construct personalized prompts based on the dynamic user profile tag set, the interaction stage tags, the associated knowledge fragments, and the basic response templates. The third generation unit 205 is configured to generate compliant response text based on the aforementioned personalized prompts. The encoding and transmission unit 206 is configured to perform differential encoding on the compliant response text to generate differential incremental data packets, and to transmit the differential incremental data packets to the target application interface. The execution unit 207 is configured to execute virtual item transfer operations in response to receiving a confirmation instruction from the target user in the target application interface regarding the differential incremental data packets.
[0084] It is understandable that the units described in the user profile-based virtual item transfer device 200 are related to the reference... Figure 1 The steps in the described method correspond to each other. Therefore, the operations, features, and beneficial effects described above for the method also apply to the virtual item circulation device 200 based on user profiles and the units contained therein, and will not be repeated here.
[0085] The following is for reference. Figure 3 It shows a schematic diagram of the structure of an electronic device (e.g., an electronic device) 300 suitable for implementing some embodiments of the present disclosure. Figure 3 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this disclosure.
[0086] like Figure 3As shown, the electronic device 300 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. The RAM 303 also stores various programs and data required for the operation of the electronic device 300. The processing unit 301, ROM 302, and RAM 303 are interconnected via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0087] Typically, the following devices can be connected to I / O interface 305: input devices 306 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 307 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 308 including, for example, magnetic tapes, hard disks, etc.; and communication devices 309. Communication device 309 allows electronic device 300 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 3 An electronic device 300 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively. Figure 3 Each box shown can represent a device or multiple devices as needed.
[0088] In particular, according to some embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, some embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 309, or installed from storage device 308, or installed from ROM 302. When the computer program is executed by processing device 301, it performs the functions defined in the methods of some embodiments of this disclosure.
[0089] It should be noted that, in some embodiments of this disclosure, the computer-readable medium described above may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In some embodiments of this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In some embodiments of this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0090] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0091] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable medium carries one or more programs. When the electronic device executes the aforementioned one or more programs, the electronic device causes the following actions: In response to detecting that network environment parameters do not meet preset conditions and receiving original interaction information from a target user regarding the virtual item transfer transaction, the electronic device extracts intent features from the original interaction information to generate user intent tags, and updates a preset dynamic user profile tag set based on the user intent tags to obtain an updated dynamic user profile tag set; generates interaction stage tags based on the updated dynamic user profile tag set and real-time acquired historical interaction data; generates associated knowledge fragments and basic response templates based on the user intent tags and the interaction stage tags; constructs personalized prompt words based on the updated dynamic user profile tag set, the interaction stage tags, the associated knowledge fragments, and the basic response templates; generates compliant response text based on the personalized prompt words; performs differential encoding on the compliant response text to generate differential incremental data packets, and transmits the differential incremental data packets to the target application interface; and executes virtual item transfer operations in response to receiving a confirmation instruction from the target user in the target application interface regarding the differential incremental data packets.
[0092] Computer program code for performing operations of some embodiments of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0093] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0094] The units described in some embodiments of this disclosure can be implemented in software or hardware. The described units can also be housed in a processor; for example, a processor may be described as including an extraction and update unit, a first generation unit, a second generation unit, a construction unit, a third generation unit, an encoding and transmission unit, and an execution unit. The names of these units do not necessarily limit the specific unit itself. For example, the extraction and update unit may be described as "a unit that, in response to detecting that network environment parameters do not meet preset conditions and receiving original interaction information from a target user regarding virtual item transfer transactions, extracts intent features from the original interaction information to generate user intent tags, and updates a preset dynamic user profile tag set based on the user intent tags to obtain an updated dynamic user profile tag set."
[0095] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.
[0096] The above description is merely a selection of preferred embodiments of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in the embodiments of this disclosure.
Claims
1. A method for the circulation of virtual items based on user profiles, characterized in that, include: In response to the detection that the network environment parameters do not meet the preset conditions and the receipt of the target user's original interaction information regarding the virtual item circulation transaction, the intent features of the original interaction information are extracted to generate user intent tags, and the preset dynamic user profile tag set is updated based on the user intent tags to obtain the updated dynamic user profile tag set. Based on the updated dynamic user profile tag set and the real-time acquired historical interaction data, interaction stage tags are generated, wherein generating interaction stage tags based on the updated dynamic user profile tag set and the real-time acquired historical interaction data includes: Establish a real-time event acquisition channel through the interfaces of multiple pre-set interactive platforms; Using the real-time event acquisition channel, the original interactive data streams associated with the target user in the multiple interactive platforms are acquired asynchronously. The original interactive data streams include: text data streams, voice data streams, and rich media message metadata. The original interactive data stream is standardized to generate structured incremental interactive events; The incremental interactive events are classified and time-series-marked to generate a real-time interactive event stream; The real-time event interaction event stream is aggregated using a sliding window to generate interaction frequency and interaction interval features; The updated dynamic user profile tag set is concatenated with the interaction frequency and interaction interval features to generate a dynamic fusion feature vector. The dynamically fused feature vector is input into a preset stage recognition model to generate real-time stage probability distribution information; The real-time stage probability distribution information is subjected to time-series smoothing processing to generate processed stage labels; The processed stage tags are matched with a preset stage tag library to generate interactive stage tags; Based on the user intent tags and the interaction stage tags, generate associated knowledge fragments and basic response templates; Based on the updated dynamic user profile tag set, the interaction stage tags, the associated knowledge fragments, and the basic response template, personalized prompt words are constructed. Generate a compliant response text based on the personalized prompts; Differential encoding is performed on the compliant response text to generate differential incremental data packets, and the differential incremental data packets are transmitted to the target application interface; In response to receiving a confirmation instruction from the target user in the target application interface for the differential incremental data packet, a virtual item transfer operation is performed.
2. The method according to claim 1, characterized in that, The step of performing differential encoding on the compliant response text to generate differential incremental data packets, and transmitting the differential incremental data packets to the target application interface, includes: The compliant response text is compared with the historical response text obtained from the local cache of the target application interface on a semantic level to generate an operation instruction sequence. Based on the operation instruction sequence, a differential incremental data packet is generated, and the differential incremental data packet is transmitted to the target application interface.
3. The method according to claim 1, characterized in that, In response to detecting that network environment parameters do not meet preset conditions and receiving original interaction information from the target user regarding virtual item transfer transactions, the system extracts intent features from the original interaction information to generate user intent tags, and updates a preset dynamic user profile tag set based on the user intent tags to obtain an updated dynamic user profile tag set, including: The original interaction information is cleaned for keywords to generate cleaned session data; Using a pre-defined intent tag library, semantic parsing is performed on the cleaned session data to generate user intent tags; Based on the user intent tags, generate associated user data; The user intent tags are fused with the associated user data to generate an intermediate profile feature set; The intermediate portrait feature set is subjected to intention quantification processing to generate intention information; Based on the intent information, target user features are determined from the intermediate profile feature set to generate an updated feature set; The updated feature set is written into the dynamic user profile tag set to generate the updated dynamic user profile tag set.
4. The method according to claim 1, characterized in that, The step of generating associated knowledge fragments and basic response templates based on the user intent tags and the interaction stage tags includes: The user intent tag and the interaction stage tag are encoded to generate a composite query vector; The composite query vector is used to perform vector retrieval with the preset flow event knowledge base and the preset dialogue template base to generate an initial knowledge fragment set and an initial dialogue template set. The initial knowledge fragment set and the initial dialogue template set are reordered based on relevance to generate associated knowledge fragments and basic response templates.
5. The method according to claim 1, characterized in that, The step of constructing personalized prompt words based on the updated dynamic user profile tag set, the interaction stage tags, the associated knowledge fragments, and the basic response template includes: The updated dynamic user profile tag set and the interaction stage tags are formatted and converted to generate a prompt word prefix template; The associated knowledge fragment is inserted into the preset knowledge position of the prompt word prefix template to generate a knowledge-enhanced prompt word intermediate; The basic response template is semantically fused with the knowledge-enhanced prompt word intermediate to generate a fused prompt word vector; The fused prompt word vectors are mapped to the target-standard text sequence to generate personalized prompt words.
6. The method according to claim 1, characterized in that, The step of generating compliant response text based on the personalized prompt words includes: The personalized prompts are input into a pre-trained large language model to generate the initial response text; The initial response text is subjected to keyword matching and compared with a preset prohibited word list to generate an interception result; In response to the interception result satisfying the first preset condition, semantic features are extracted from the initial response text to generate a semantic feature vector; The semantic feature vector is input into a pre-trained semantic auditing model to generate semantic compliance information; In response to the semantic compliance information satisfying the second preset condition, the initial response text is determined to be a compliant response text.
7. A virtual item circulation device based on user profiles, characterized in that, include: The extraction and update unit is configured to, in response to detecting that the network environment parameters do not meet the preset conditions and receiving the original interaction information of the target user regarding the virtual item circulation transaction, extract intent features from the original interaction information to generate user intent tags, and update the preset dynamic user profile tag set based on the user intent tags to obtain the updated dynamic user profile tag set. The first generation unit is configured to generate interaction stage tags based on the updated dynamic user profile tag set and real-time acquired historical interaction data. The generation of interaction stage tags based on the updated dynamic user profile tag set and real-time acquired historical interaction data includes: Establish a real-time event acquisition channel through the interfaces of multiple pre-set interactive platforms; Using the real-time event acquisition channel, the original interactive data streams associated with the target user in the multiple interactive platforms are acquired asynchronously. The original interactive data streams include: text data streams, voice data streams, and rich media message metadata. The original interactive data stream is standardized to generate structured incremental interactive events; The incremental interactive events are classified and time-series-marked to generate a real-time interactive event stream; The real-time event interaction event stream is aggregated using a sliding window to generate interaction frequency and interaction interval features; The updated dynamic user profile tag set is concatenated with the interaction frequency and interaction interval features to generate a dynamic fusion feature vector. The dynamically fused feature vector is input into a preset stage recognition model to generate real-time stage probability distribution information; The real-time stage probability distribution information is subjected to time-series smoothing processing to generate processed stage labels; The processed stage tags are matched with a preset stage tag library to generate interactive stage tags; The second generation unit is configured to generate associated knowledge fragments and basic response templates based on the user intent tags and the interaction stage tags. The construction unit is configured to construct personalized prompt words based on the dynamic user profile tag set, the interaction stage tags, the associated knowledge fragments, and the basic response template; The third generation unit is configured to generate compliant response text based on the personalized prompt words; The encoding and transmission unit is configured to perform differential encoding on the compliant response text to generate differential incremental data packets, and to transmit the differential incremental data packets to the target application interface. The execution unit is configured to perform a virtual item transfer operation in response to receiving a confirmation instruction from the target user in the target application interface for the differential incremental data packet.
8. An electronic device, characterized in that, include: One or more processors; Storage device, on which one or more programs are stored, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-6.
9. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-6.
