Interaction method and device, electronic equipment and computer readable storage medium
By receiving the target dialogue topic and user information, and using a language model to generate topic content, the problem of rigid interaction methods of virtual objects is solved, and the interaction effect and participation of users with virtual objects are improved.
Patent Information
- Application Number
- CN202410649132.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2025-11-28
AI Technical Summary
The fixed way users interact with virtual objects results in poor interaction effects and fails to meet the personalized needs of different users.
By receiving the target dialogue topic and user information, the system generates target topic content using the target language model, and generates virtual object response information in response to user dialogue messages, thereby enhancing the interactive effect.
It enhances the interaction between users and virtual objects, increases user engagement and interest, and meets users' personalized interaction needs.
Smart Images

Figure CN121029918A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of interaction, in particular to an interaction method and device, an electronic device and a computer readable storage medium. BACKGROUND
[0002] Under the tide of the Internet, the massive popularization and application of terminals such as smart phones, computers, tablet computers and notebook computers, terminals develop towards diversification and individualization, and increasingly become indispensable devices in people's life and work. In order to meet people's daily needs and the pursuit of spiritual life, people can interact with a preset virtual object, such as completing a task by interacting with a virtual object, but because different users have different interaction needs for the virtual object with which they interact, and the interaction mode of the virtual object is generally fixed, which leads to rigid interaction between the user and the virtual object, resulting in poor interaction effect when the user interacts with the virtual object. SUMMARY
[0003] The embodiments of the present application provide an interaction method, device, electronic device and computer readable storage medium, which can improve the interaction effect between the user and the virtual object.
[0004] In a first aspect, the embodiments of the present application provide an interaction method, and the method comprises:
[0005] receiving a target conversation topic for a target virtual object, and obtaining user information related to the target conversation topic;
[0006] generating target topic content by using a target language model based on the target conversation topic and the user information;
[0007] In response to a received conversation message issued by a current user account, generating reply information of the target virtual object by using a target language model based on the conversation message, the target topic content, and / or historical conversation information of the current user account under the target conversation topic.
[0008] In a second aspect, the embodiments of the present application further provide an interaction device, and the device comprises:
[0009] An information obtaining module is configured to receive a target conversation topic for a target virtual object, and obtain user information related to the target conversation topic;
[0010] A content generating module is configured to generate target topic content by using a target language model based on the target conversation topic and the user information;
[0011] The dialogue module is used to respond to a dialogue message sent by the current user account, and generate the response information of the target virtual object based on the dialogue message, the target topic content, and / or the historical dialogue information of the current user account under the target dialogue topic, using the target language model.
[0012] Thirdly, embodiments of this application also provide an electronic device, including a memory storing a computer program, which, when executed by a processor, causes the processor to perform any of the interactive methods provided in embodiments of this application.
[0013] Fourthly, embodiments of this application also provide a computer-readable storage medium including a computer program, which, when run on an electronic device, causes the electronic device to perform any of the interactive methods provided in embodiments of this application.
[0014] In this embodiment, a target dialogue topic for a target virtual object is received, and user information related to the target dialogue topic is obtained. Based on the target dialogue topic and the user information, target topic content is generated using a target language model. In response to a received dialogue message from the current user account, based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic, the target language model is used to generate the target virtual object's response information. Thus, by receiving the target dialogue topic required for the user's current interaction and generating the target topic content corresponding to that target dialogue topic, the target virtual object is controlled to engage in dialogue with the current user account based on the target topic content. This makes the interaction between the two more in line with user needs, thereby greatly improving the interaction effect between the user and the virtual object. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic flowchart of one embodiment of the interactive method provided in this application.
[0017] Figure 2 This is a schematic diagram of the target dialogue topic determination process provided in the embodiments of this application;
[0018] Figure 3 This is a schematic diagram of a boot process provided in an embodiment of this application;
[0019] Figure 4 This is another schematic diagram of the boot process provided in the embodiments of this application;
[0020] Figure 5 This is a schematic diagram of the target subject content provided in the embodiments of this application;
[0021] Figure 6 This is a schematic diagram of the target topic content generation process provided in the embodiments of this application;
[0022] Figure 7 This is a scaled-down diagram of the card provided in the embodiments of this application;
[0023] Figure 8 This is a schematic diagram of the notification message provided in the embodiments of this application;
[0024] Figure 9 This is a schematic diagram of the interactive record viewing process provided in the embodiments of this application;
[0025] Figure 10 This is a schematic diagram of the album page interaction process provided in the embodiments of this application;
[0026] Figure 11 This is a schematic diagram of the structure of the interactive device provided in the embodiments of this application;
[0027] Figure 12 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0029] Before providing a detailed explanation of the embodiments of this application, some terms involved in the embodiments of this application will be explained.
[0030] In the description of the embodiments of this application, the terms "first," "second," etc., may be used herein to describe various concepts, but unless specifically stated otherwise, these concepts are not limited by these terms. These terms are used only to distinguish one concept from another. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.
[0031] This application provides an interactive method, apparatus, electronic device, and computer-readable storage medium. Specifically, the interactive method of this application can be executed by an electronic device, which can be a terminal or a server. The terminal can be a smartphone, tablet, laptop, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0032] For example, taking a terminal as an example, the electronic device can receive a target dialogue topic for a target virtual object and obtain user information related to the target dialogue topic; based on the target dialogue topic and the user information, it generates target topic content using a target language model; in response to a received dialogue message from the current user account, it generates the response information of the target virtual object based on the dialogue message, the target topic content, and / or the historical dialogue information of the current user account under the target dialogue topic, using the target language model.
[0033] To address the aforementioned issues, embodiments of this application provide an interactive method, apparatus, electronic device, and computer-readable storage medium that can enhance the interaction between users and virtual objects.
[0034] The following is a detailed description in conjunction with the accompanying drawings. It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments. Although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown in the drawings.
[0035] In this embodiment, a terminal is used as an example for illustration. This embodiment provides an interaction method, such as... Figure 1 As shown, the specific process of this interactive method can be as follows:
[0036] 101. Receive the target dialogue topic for the target virtual object and obtain user information related to the target dialogue topic.
[0037] The aforementioned target virtual object can be any virtual object such as a virtual pet, virtual animal, or virtual plant. For example, the target virtual object could be a virtual pet that the current user has adopted in the target game.
[0038] The aforementioned dialogue theme is used to indicate the scenario in which the current user interacts with the target virtual object, that is, the theme around which the dialogue between the current user and the target virtual object revolves. This dialogue theme can be presented in the form of scripts, games, guidance, etc. For example, each dialogue theme corresponds to a script. After determining the target dialogue theme, the corresponding interactive scenario is realistically simulated through the script corresponding to the target dialogue theme, so that the target virtual object plays the role in the script and interacts with the current user, such as in a dialogue, thereby enhancing the emotional connection between the target virtual object and the current user.
[0039] Understandably, introducing dialogue topics makes the interaction between the current user and the target virtual object more diverse. Users can prompt the target virtual object to play different roles based on their interests and engage in dialogue around the corresponding topics. This prevents users from losing interest in interacting with the target virtual object due to a lack of novelty and engagement with routine interactions, thus greatly increasing user participation and interest, and improving the interaction effect between the user and the virtual object. Accordingly, the aforementioned target dialogue topics are the dialogue topics that the user needs to focus on when engaging in dialogue with the target virtual object.
[0040] For example, the aforementioned dialogue topics include, but are not limited to, astrology topics (under which dialogues related to astrology can be conducted), MBTI analysis topics (under which dialogues related to MBTI analysis can be conducted), sports topics (under which dialogues related to sports can be conducted, such as weight loss check-ins), sleep topics (under which dialogues related to sleep can be conducted, such as sleep-inducing services), gaming topics (under which dialogues related to games can be conducted, such as dialogues between the current user and the target virtual object around a specific game), hygiene topics (under which dialogues related to hygiene can be conducted), and skills practice topics (under which dialogues related to a specific skill can be conducted, such as dialogues to improve conversational skills), etc. The specific topics can be set according to needs and are not limited here.
[0041] It should be noted that since the user wants to have a conversation with the target virtual object around the target dialogue topic, it is necessary to obtain user information related to the target dialogue topic so that the user can better communicate with the target virtual object around the target dialogue topic based on the user information.
[0042] Specifically, obtaining user information related to the target dialogue topic can be achieved by reading relevant user information from a preset storage space such as local storage or a server, or by obtaining information input by the user in real time. This user information includes, but is not limited to, at least one of the following: user topic features associated with the current user account under the target dialogue topic; feature description information associated with the user topic features; user profile of the current user account; at least one dimension of memory information related to the current user account; and other preset user information.
[0043] The user topic features of the current user account associated with the target dialogue topic are different under different target dialogue topics. For example, under the topic of constellations, the user's constellation and birthday are corresponding to the user's constellation. The user's constellation can be calculated based on the user's birthday.
[0044] Among them, the feature description information associated with the aforementioned user topic feature is at least one type of description information associated with the user topic feature. For example, if the user topic feature is the user's zodiac sign, then the feature description information is a specific descriptive text obtained from a preset information repository to introduce the user's zodiac sign. The user's zodiac sign obtained in the previous step can be used to obtain the specific descriptive text corresponding to the user's zodiac sign from the preset information repository.
[0045] Among them, the user profile of the current user account can be a user profile of the current user account related to the target dialogue topic.
[0046] Among them, at least one dimension of memory information related to the current user account can be retrieved from the user's memory. This at least one dimension of memory information is a specific memory that matches the current topic extracted from a preset memory database, for example, matching based on the topic rating dimension and topic item dimension associated with the target dialogue topic.
[0047] Specifically, memory information of at least one of the above dimensions can be retrieved by using preset search conditions or by using search conditions generated based on the topic rating dimension and topic item dimension associated with the target dialogue topic, so as to obtain specific memories that match the target dialogue topic.
[0048] It should be noted that search criteria may include memory categories that match the topic rating dimension and / or topic item dimension. In addition, search criteria may also include the timeliness of the memory. That is, the terminal may generate search criteria that include matching memory categories and memory timeliness based on the topic rating dimension and / or topic item dimension.
[0049] The aforementioned memory database stores various types of user memory data, including basic information memories, daily life memories, and event memories. Each type of memory data also includes memory data categorized by memory type and timeliness.
[0050] Specifically, the aforementioned basic information memory is used to indicate basic information associated with the user. This basic information memory may include, but is not limited to, user basic information, user terminal information, user behavior information, user psychological information, and user-related information. For example, user basic information includes, but is not limited to, name, gender, age, and geographical location, and user terminal information includes, but is not limited to, the user's operating system (such as iOS or Android).
[0051] Specifically, the aforementioned life memories are used to indicate information associated with the user in the life dimension. These life memories include, but are not limited to, food information, entertainment information, and user hobby information. For example, food information may be the user's favorite food, entertainment information includes, but is not limited to, books, movies and TV shows, music, games, exhibitions and / or outdoor activities, and user hobby information includes, but is not limited to, travel, celebrity follower trips, and interests.
[0052] Specifically, the aforementioned event memory is used to indicate information associated with the user in the event dimension. This event memory includes, but is not limited to, emotional life events, academic events, work events, achievement events, interaction events, and other preset events. For example, emotional life events include, but are not limited to, dating, marriage, arguments, breakups, and childbirth; academic events include, but are not limited to, studying, exams, and studying abroad; work events include, but are not limited to, commuting, career planning, and work pressure; achievement events include, but are not limited to, obtaining achievements such as XX badges through interaction with the target virtual object; and interaction events include, but are not limited to, role-playing events with the target virtual object and fictional interaction experiences with the target virtual object.
[0053] It is understood that, in the specific embodiments of this application, data such as user information are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0054] The aforementioned topic rating information may include the current user account's overall topic score under the target dialogue topic and scores under different topic rating dimensions. These overall topic score and scores under different topic rating dimensions may be randomly generated or generated based on predetermined rules. The different target dialogue topics correspond to the different topic rating dimensions. For example, the score under the topic rating dimension corresponding to the zodiac topic may include, but is not limited to, at least one of the following: love score, wealth score, career score, etc.
[0055] The aforementioned topic item results are used to indicate the results under at least one topic item dimension configured for the target dialogue topic. For example, the topic item results under the topic item dimension corresponding to the constellation topic include, but are not limited to, at least one of information such as lucky color, lucky number, and lucky constellation.
[0056] In some embodiments, receiving a target dialogue topic for a target virtual object may include: receiving a dialogue topic confirmation operation via a topic dialogue interface, and obtaining the confirmed target dialogue topic. Furthermore, the terminal may also include: obtaining the target virtual role played by the target virtual object under the aforementioned target dialogue topic, wherein, before receiving the target dialogue topic, the topic dialogue interface in which the target virtual object is located includes the target virtual object with a first display style and a first virtual scene in which the target virtual object is located.
[0057] It should be noted that the aforementioned themed dialogue interface allows the current user to interact with the target virtual object. This interaction can be initiated by the current user, prompting the target virtual object to provide feedback based on the interaction. For example, when the user triggers an action to touch the target virtual object on the themed dialogue interface, the target virtual object can emit a happy mood bubble. Alternatively, the interaction can be initiated by the target virtual object, prompting the user to provide feedback based on the interaction. For instance, when the current user account first enters the themed dialogue interface on the same day, the target virtual object can display a corresponding "greeting" character message to greet the user, prompting the current user account to provide feedback based on the character message, and so on.
[0058] The aforementioned dialogue topic confirmation operation is used to indicate the target dialogue topic on which the current user and the target object are based, that is, to conduct a dialogue with the target virtual object that plays the role indicated by the target dialogue topic in a scenario that matches the target dialogue topic.
[0059] The first display style is the display style of the target virtual object in a general scenario, and correspondingly, the first virtual scenario in which the target virtual object in the first display style is located is the general scenario in which the target virtual object is located.
[0060] Furthermore, since the aforementioned topic dialogue interface allows users to interact with the target virtual object, operations related to the interaction between the user and the target virtual object can be received through the topic dialogue interface, so that the interaction between the user and the target virtual object is more in line with the current user's expectations. For example, the dialogue topic confirmation operation in this embodiment can prompt the target virtual object to role-play and conduct a dialogue around the target dialogue topic through the confirmed target dialogue topic, so that the interaction between the current user and the target virtual object is more in line with the current user's expectations.
[0061] In some embodiments, the target dialogue topic may be a preset dialogue topic or a dialogue topic generated in real time. That is, the target dialogue topic may be selected from at least one preset candidate dialogue topic through the dialogue topic confirmation operation, or it may be generated by the topic editing information input in real time through the dialogue topic confirmation operation.
[0062] Specifically, the target dialogue topic is selected from at least one preset candidate dialogue topic through the dialogue topic confirmation operation, which may include: receiving a topic selection trigger event through the topic dialogue interface, displaying at least one candidate dialogue topic through the topic dialogue interface, receiving a selection operation on at least one candidate dialogue topic through the topic dialogue interface, and taking the selected candidate dialogue topic as the target dialogue topic.
[0063] The aforementioned topic selection trigger event can be an event triggered upon entering the topic dialogue interface, that is, triggering the display of at least one candidate dialogue topic when the topic dialogue interface is displayed; the aforementioned topic selection trigger event can also be triggered by directly or indirectly setting a topic trigger control on the topic dialogue interface, so that the event can be triggered by triggering the topic trigger control. The specific settings can be configured according to the requirements and are not limited here.
[0064] For example, such as Figure 2The diagram illustrates the process of determining the target dialogue topic. In Figure 201, a "Chat" control (indicated by the black icon) is displayed on the topic dialogue interface. Upon triggering the "Chat" control, the terminal displays Figure 202. The topic dialogue interface in Figure 202 includes a conversation area, which also contains a "Magic Chat" control (indicated by the black icon). Upon triggering the "Magic Chat" control, the terminal displays Figure 203. In the conversation area of the topic dialogue interface in Figure 203, at least one candidate dialogue topic is displayed, namely, the "Daily Horoscope" topic (horoscope theme), the "Weight Loss Check-in" topic (exercise theme), the "Sleep-inducing Game" topic (sleep theme), the "Argument Practice" topic (ability practice theme), the "Sports and Health" topic (exercise theme), and the "Cleaning the House" topic (cleaning theme). Finally, upon triggering the "Daily Horoscope" topic among the candidate dialogue topics, the terminal selects "Daily Horoscope" as the target dialogue topic and displays the topic dialogue interface corresponding to the target dialogue topic in Figure 204.
[0065] In addition, the “Chat History” in Figures 202 and 203 is used to trigger the display of the historical chat history between the current user account and the target virtual object, the “Constellation History” in Figure 204 is used to trigger the display of the historical chat history between the current user account and the target virtual object under the “Daily Constellation” topic, and the “Exit Constellation” in Figure 204 is used to trigger the exit from the “Daily Constellation” topic.
[0066] Specifically, the generation of the target dialogue topic through the real-time input of topic editing information via the dialogue topic confirmation operation may include: receiving a topic editing trigger event via the topic dialogue interface, displaying a topic editing area via the topic dialogue interface, receiving the input topic editing information via the topic editing area, and generating the target dialogue topic in real time based on the topic editing information.
[0067] In some embodiments, after receiving a target dialogue topic for a target virtual object, in order to enhance the current user's immersive experience, the terminal may display a second virtual scene and a target virtual object with a second display style through a topic dialogue interface corresponding to the target dialogue topic. The second virtual scene and the second display style are matched with the target dialogue topic. By setting a second virtual scene for dialogue between the current user account and the target virtual object, and the display style of the target virtual object, the current user account is encouraged to engage in immersive dialogue with the target virtual object.
[0068] In this embodiment, to enhance the current user's immersive experience, in a scenario where interaction is based on a target dialogue topic, the target virtual object is placed in a second virtual scene that matches the target dialogue topic. The target virtual object is then dressed in a second display style that matches the target dialogue topic. Furthermore, the target virtual object is controlled to interact with the current user in a more engaging way, leveraging its target virtual character identity. This aims to increase the frequency of interaction with the target virtual object, such as the number of chat sessions, by providing the user with an immersive experience that meets their needs. If the topic dialogue interface also includes chat boxes and / or message bubbles carrying messages from the target virtual object, these can also be adaptively changed based on the target dialogue topic. It is understood that the aforementioned second display style can be the display style corresponding to the target virtual character played by the target virtual object.
[0069] The first virtual scene and the second virtual scene may be the same or different, and the first display style of the target virtual object and the second display style of the target virtual object may be the same or different.
[0070] In some embodiments, obtaining user information related to the target dialogue topic may include: if the user topic characteristics are not obtained from the local machine or server, displaying guidance information via an information window on the topic dialogue interface or issuing an object message containing guidance information through the target virtual object; and determining the user topic characteristics based on the editing information indicated by the information editing operation in response to an information editing operation on the guidance information. The guidance information is used to guide the acquisition of the information required for the user topic characteristics.
[0071] Specifically, the terminal can display an information window via the aforementioned topic dialogue interface. This information window includes the aforementioned guidance information and an information editing area. Then, the terminal can receive the current user account's information editing operation on the guidance information via the aforementioned information editing area, and identify the user's edited information as the aforementioned user topic characteristics.
[0072] The aforementioned information editing area is an area where information can be edited through information editing operations. For example, this area can display some selection controls to edit information by selecting the controls, or it can display some information input controls to edit information by inputting information into the controls, etc. The specific settings can be configured according to the needs and are not limited here.
[0073] For example, such as Figure 3The diagram illustrates a guided process. Under the constellation theme, the user's theme characteristic is set as their birthday. If the user's birthday is not retrieved from the local machine or server, a guided prompt window is displayed on the theme dialog interface provided in diagram 301. Specifically, diagram 301 displays a window with the message "Confirm your birthday..." This window includes an information editing area for "Select your birthday." The terminal can respond to triggering the "Select your birthday" control or the "constellation" control to display diagram 302. In diagram 302, the user's birthday is selected, and the selected birthday is displayed in the window shown in diagram 303. Then, by confirming the information in the window—specifically, by triggering the "OK" control in diagram 303—the user's birthday and the associated constellation are determined as the aforementioned user theme characteristic. Figure 3 The "Exit Constellation" control displayed is used to interact with and exit the target conversation topic.
[0074] In addition, after obtaining the user's birthday from the local machine or server, a 303 diagram can be displayed directly. That is, a guided prompt window is displayed on the topic dialog interface provided by the 303 diagram. This window contains the obtained birthday and zodiac sign associated with the user. Then, by confirming the information in the window, that is, by triggering the "OK" control in the 303 diagram, the user's birthday can be confirmed.
[0075] Specifically, the aforementioned guidance information can be delivered through corresponding messages from the target virtual object, resulting in a more natural and conversational approach and a better user experience. Specifically, the terminal can display the target virtual object's interaction information, including the guidance information, based on the target virtual object's location within the aforementioned topic-based dialogue interface. Then, the terminal can receive input from the current user account regarding the guidance information through the aforementioned conversation area, identifying the user input as the user's topic characteristic. The conversation area is the region where the current user account can send conversation messages.
[0076] For example, such as Figure 4 The diagram illustrates a guidance process where, under the constellation theme, the user's birthday is set as the user's theme characteristic. If the user's birthday is not obtained from the local machine or server, the conversation message "Come! Tell me your birthday~" sent by the target virtual object can be displayed on the theme dialogue interface provided in diagram 401. Then, the terminal can respond to the information input operation in the conversation area to display diagram 402, which displays the user's entered birthday "March 5th" in the conversation area of diagram 402. Then, by sending the information in the conversation area, the user's birthday is determined as the aforementioned user theme characteristic, and the user's constellation related to the user's birthday is determined as the aforementioned user theme characteristic.
[0077] 102. Based on the target dialogue topic and the user information, generate target topic content using the target language model.
[0078] The target topic content includes at least one of the following: the content generation time, topic feature description information, topic title, topic rating information, topic project results, and comprehensive topic description text. This target topic content may or may not be displayed on the topic dialogue interface by a target virtual object; the specific display method can be configured according to requirements and is not limited here.
[0079] Specifically, the aforementioned topic title can be based on topic rating information, determining the topic rating dimension with the highest score corresponding to the current user account under the target dialogue topic, selecting at least one candidate title corresponding to the topic rating dimension with the highest score from a preset copywriting library, and randomly or according to preset rules selecting one candidate title as the topic title from at least one candidate title. For example, if the career dimension of the target dialogue topic has the highest score, copywriting related to the career dimension can be selected from the preset copywriting library, thereby ensuring the quality of the copywriting. Alternatively, the aforementioned topic title can also be generated based on a language model after determining the topic rating dimension with the highest score. The specific settings can be configured according to requirements and are not limited here.
[0080] For example, the topic title mentioned above could be a title associated with the current user account and the target conversation topic.
[0081] Specifically, the aforementioned topic rating information and topic item results can be generated based on predetermined rules. The topic rating information may include the current user account's overall topic score under the target dialogue topic and scores under different topic rating dimensions. These overall topic scores and scores under different topic rating dimensions can be randomly generated. The different target dialogue topics correspond to the different topic rating dimensions. For example, the score under the topic rating dimension corresponding to the zodiac topic may include, but is not limited to, at least one of information such as love score, wealth score, and career score. The aforementioned topic item results are used to indicate at least one specific item configured for the target dialogue topic. For example, the topic item results corresponding to the zodiac topic may include, but are not limited to, at least one of information such as lucky color, lucky number, and lucky zodiac sign.
[0082] Specifically, the aforementioned comprehensive topic description text is a textual description of the current user account related to the target conversation topic, such as "Today's suggestion".
[0083] Specifically, after generating the target topic content, the target topic content can be displayed. For example, the terminal can display the result feedback information of the target virtual object based on the location of the target virtual object through the topic dialogue interface, and the result feedback information is used to indicate the target topic content; and / or, the terminal can display a target topic content card through the topic dialogue interface, and the content in the target topic content card is used to indicate the target topic content; and / or, the terminal can display a notification message through the message interface, and the notification message includes the target topic content. Then, the terminal can receive a message viewing operation on the notification message through the message interface and display the target topic content.
[0084] The feedback information mentioned above includes, but is not limited to, displaying the results in the form of object animation of the target virtual object and / or message bubbles. The specific settings can be configured according to the needs and are not limited here. For example, under the constellation theme, "XX constellation is doing well today" can be displayed in the form of message bubbles; or, under the cleaning theme, if wiping the table is mentioned, the target virtual object can be controlled to wipe the table in the form of object animation, etc.
[0085] For example, such as Figure 5 The target theme content illustration shown is set under the constellation theme. In illustration 501, a target theme content card is provided, which displays information about the current user account. In illustration 502, a message bubble sent by the target virtual object is provided, which displays the message "Aww, XX constellation is also doing well today".
[0086] In addition, the 501 diagram includes result sharing controls and content publishing controls, namely the "Share" and "Post Note" controls in the 501 diagram, which allow users to share the target topic content card. Furthermore, the 501 diagram displays the message "Saved to Pet Album," indicating that the current target topic content card has been saved to the appropriate storage space.
[0087] The constellation card in Figure 501 includes: the card date "April 2nd", which is the content generation time of the target topic; the dialogue topic "constellation" under the card date, which is the topic feature description information; the card title "XXXXX", which is the topic title; the overall topic score "88", and the scores "1 to 3 corresponding to different topic scoring dimensions", which are the topic scoring information; the results of the two topic items of the constellation topic "lucky color, lucky number", which are the topic item results; and the comprehensive topic description text of the constellation topic "today's advice".
[0088] In some embodiments, generating target topic content using a target language model based on the target dialogue topic and the user information includes: generating a content generation instruction corresponding to the target dialogue topic based on the target dialogue topic and the user information; and inputting the content generation instruction into the target language model so that the target language model generates the topic title and / or the comprehensive topic description text based on the content generation instruction.
[0089] It is understandable that different dialogue topics correspond to different instruction templates, so the corresponding content can be generated based on the instruction template corresponding to the target dialogue topic.
[0090] Specifically, generating a content generation instruction corresponding to the target dialogue topic based on the target dialogue topic and the user information includes: obtaining a first instruction template configured for the target dialogue topic, the first instruction template including at least one of a first basic configuration sub-template, a first topic information sub-template, a content guidance generation sub-template, and a first content limitation sub-template, the at least one sub-template corresponding to a template field; and filling the template field with content based on the target dialogue topic and / or the user information to generate a content generation instruction.
[0091] The first basic configuration sub-template in the content generation instruction includes at least one of the following: the object profile of the target virtual object, the object type of the target virtual object, the object behavior of the target virtual object, and / or the relationship between the target virtual object and the current user account.
[0092] Specifically, the object profile of the aforementioned target virtual object is used to describe the basic information of the target virtual object, such as the target virtual object's name, personality, age, gender, etc. Furthermore, it can also be an object profile related to the target dialogue topic, such as the role setting information of the target virtual object under the target dialogue topic, such as occupation, personality, age, gender, etc.
[0093] Specifically, the object type of the aforementioned target virtual object is used to describe the type of role that the aforementioned target virtual object plays under the target dialogue topic, such as an object conducting a constellation dialogue.
[0094] Specifically, the object behavior of the aforementioned target virtual object is used to describe the corresponding role behavior of the target virtual object, such as the behavior that the target virtual object should perform under the role setting, such as constellation dialogue behavior.
[0095] Specifically, the relationship between the target virtual object and the current user account varies under different dialogue topics. For example, under the zodiac topic, the relationship between the target virtual object and the current user account is that the target virtual object is the current user account's pet, and the target virtual object refers to the current user account as "XXX".
[0096] The first topic information sub-template in the content generation instruction includes: the current date, user topic features of the current user account associated with the target dialogue topic, feature description information associated with the user topic features, user profile of the current user account, topic rating information associated with the target dialogue topic, topic item results, at least one dimension of memory information related to the current user account, and at least one other preset content. The at least one dimension of memory information is a specific memory extracted from a preset memory database that matches the topic rating dimension and / or the topic item dimension of the target dialogue topic. The current date mentioned above is the date when the content generation instruction is currently generated.
[0097] Specifically, the user topic features of the current user account associated with the target dialogue topic are different under different target dialogue topics. For example, under the zodiac topic, the user's zodiac sign and birthday are corresponding to the user's zodiac sign. The user's zodiac sign can be calculated based on the user's birthday.
[0098] Specifically, the feature description information associated with the aforementioned user topic features is at least one descriptive information associated with the user topic features. For example, if the user topic feature is the user's zodiac sign, then the feature description information is a specific descriptive text obtained from a preset information repository to introduce the user's zodiac sign. The user's zodiac sign obtained in the previous step can be used to obtain the specific descriptive text corresponding to the user's zodiac sign from the preset information repository. Thus, under the zodiac theme, content can be generated based on the characteristics and personality traits of each user's zodiac sign, such as a description of the challenges, opportunities, and changes that each user's zodiac sign may face within a specific time period.
[0099] Specifically, the user profile of the current user account can be a user profile related to the target dialogue topic, such as the user's personality, age, gender, etc. under the target dialogue topic.
[0100] Specifically, the aforementioned topic rating information may include the current user account's overall topic score under the target dialogue topic and the scores under different topic rating dimensions, such as the career score under the career dimension of the astrology topic.
[0101] Specifically, the aforementioned topic item results are used to indicate the results under at least one topic item dimension configured for the target dialogue topic, such as the color value under the lucky color dimension under the constellation topic.
[0102] Specifically, the memory information of at least one dimension of the current user account is obtained by searching the memory database based on the search conditions generated by the topic rating dimension and the topic item dimension of the target dialogue topic.
[0103] The content generation sub-template in the content generation instruction includes the generation logic for the target topic content.
[0104] Specifically, the generation logic for the aforementioned target topic content includes, but is not limited to, generation logic based on at least one of the predicted target, short-term suggested target, and long-term suggested target.
[0105] Specifically, the aforementioned prediction target can be to predict emotional and psychological states, that is, to provide the current user account with the emotional fluctuations or psychological states that the user may experience on that day, such as feeling restless, bursting with curiosity, or feeling calm.
[0106] Specifically, the aforementioned short-term advice can be to provide specific suggestions for the day. These suggestions include, but are not limited to, suggestions generated from at least one short-term dimension. These short-term dimensions include, but are not limited to, action guidance, interpersonal relationships, life guidelines, and special reminders. For example, action guidance can help the current user account better cope with the day's situation; interpersonal relationships can involve small suggestions on interpersonal communication to help the current user account be more adept at social activities, such as how to get along with friends and how to handle minor conflicts; life guidelines can be some tips for daily life, such as tidying up the living environment, maintaining good eating habits, and paying attention to physical health; special reminders can be reminders in the horoscope regarding possible special situations or important events.
[0107] Specifically, the goal of the aforementioned long-term recommendations may be to provide specific long-term suggestions for the future, such as encouragement and outlook; or to offer outlooks or suggestions for the future.
[0108] The first content-defined sub-template in the content generation instruction includes at least one of the following: the relationship between the content to be generated and at least one content in at least one sub-template; the requirement that the content to be generated must include part of the output content of the content-guided generation sub-template; the rhetorical devices used in the content to be generated; the emotional tendency of the content to be generated; and the characteristics of the scene described in the content to be generated.
[0109] Specifically, the relationship between the generated content and at least one content in at least one sub-template can be defined as follows: the generated content should make reasonable inferences and suggestions based on the current user account's zodiac characteristics and current user account profile, combined with [related memories] to provide more personalized fortune guidance.
[0110] Specifically, the generated content must include some of the output content guided by the content-guided sub-template. This can be a requirement that the generated content must include the output content guided by the content-guided sub-template, such as combining emotions with suggestions. For example, the generated content should include a description of a certain emotional state and corresponding coping suggestions. For instance, it could describe a common psychological state and provide one or two positive coping suggestions.
[0111] Specifically, limiting the rhetorical devices used in generated content can be limited to vivid metaphors. That is, when providing advice, vivid and easily understood metaphors should be used to make the advice more appealing and memorable. Metaphors should be closely related to daily life and resonate with current user accounts. In addition, appropriate use of figurative sentences is also acceptable.
[0112] Specifically, limiting the emotional tone of the generated content can be to maintain a positive tone, that is, the overall tone should be positive and encouraging, and even when discussing challenges or difficulties, the methods for solving problems and the importance of facing them positively should be emphasized.
[0113] Specifically, the characteristics of the scenarios described in the generated content can be that they depict relatable scenes, such as scenarios that are close to daily life, in order to enhance the resonance between the text and the current user account and make the suggestions more specific and practical.
[0114] Furthermore, the first content-limiting sub-template in the content generation instruction can also limit content format issues, such as limiting the content interaction method, i.e., unfolding the content in the form of a dialogue. For example, if the target virtual object is directly conversing with the current user account and telling the current user account today's horoscope, then the current user account name will not appear, and the dialogue perspective will be second person. It can also limit the word count requirement, such as controlling the overall word count between 80 and 120 words. It can also limit the content output method, such as directly outputting the content without repeating specific scores, lucky colors, lucky constellations, etc., using pure text and not using emoticons. It can also limit the use of interjections, such as avoiding the use of uncertain descriptions such as "I heard" or "it is said," the content should be authoritative and certain, and interjections such as "ba" or "ne" should not be used at the end.
[0115] In some embodiments, to enhance the user experience, an introductory message and / or a target theme content generation animation can be displayed before generating the target theme content. The target theme content generation animation can be generated by loading a progress bar, and the target theme content is generated and displayed when the progress bar reaches 100%. The target theme content generation animation can also involve the target virtual object in generating an animation, etc. The specific settings can be configured according to the requirements and are not limited here.
[0116] For example, such as Figure 6The diagram shown illustrates the target theme content generation process. Assuming the current theme is a zodiac sign, the theme dialogue interface provided in diagram 601 can display an opening message via a message bubble from the target virtual object. For example, if the user's zodiac sign is determined to be Pisces based on their birthday, the message bubble could display "So you're a Pisces baby~ Let me do XXX," and so on. Figure 6 The animation shown in Figure 602 is a video animation featuring the target virtual object displayed on the main dialog interface.
[0117] Optionally, before generating the target topic content, the current user account can enter content in the input box, but cannot send it. After clicking send, a message will pop up saying "The target virtual object is casting a spell."
[0118] In some embodiments, after a target topic content card is displayed via the aforementioned topic dialogue interface, in order to facilitate interaction between the current user account and the target virtual object playing the target virtual role, and to allow the current user account to view the information on the target topic content card and continue the dialogue at any time during the interaction, the target topic content card can be shrunk. That is, the terminal can receive a card shrunk operation via the aforementioned topic dialogue interface, shrunk the target topic content card, obtain a shrunk card, and display the shrunk card via the aforementioned topic dialogue interface. When there is a need to view it, the shrunk card can be enlarged via a card zoom-in operation.
[0119] The aforementioned card shrinking operation can be a shrinking gesture operation performed on the target topic content card, such as swiping inward with two fingers; the aforementioned card shrinking operation can also be a trigger operation on the area of the topic dialogue interface where the non-target topic content card is located, such as a trigger operation on the area adjacent to the target topic content card.
[0120] The area where the shrunk card is displayed on the main dialogue interface can be any area outside the area where the target virtual character is located, such as the area on the right side of the main dialogue interface, or the area on the left side of the main dialogue interface, etc.
[0121] For example, such as Figure 7 The diagram shown is a scaled-down version of the card. Figure 7 As you can see, the card, when shrunk, is located in the right-hand area of the main dialogue interface.
[0122] 103. In response to a received dialogue message from the current user account, based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic, the target language model is used to generate the response information of the target virtual object.
[0123] Specifically, the step of generating response information for the target virtual object based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic, using a target language model, includes: generating a dialogue generation instruction corresponding to the target dialogue topic based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic; and inputting the dialogue generation instruction into the target language model so that the target language model generates response information based on the dialogue generation instruction.
[0124] It is understandable that different dialogue topics correspond to different instruction templates, so corresponding instructions can be generated to produce reply information based on the instruction template corresponding to the target dialogue topic.
[0125] Specifically, generating a dialogue generation instruction corresponding to the target dialogue topic based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic includes: obtaining a second instruction template configured for the target dialogue topic, the second instruction template including at least one of a second basic configuration sub-template, a second topic information sub-template, a dialogue content generation sub-template, and a second content limitation sub-template, the at least one sub-template corresponding to a template field; and filling the template field with content based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic to generate a dialogue generation instruction.
[0126] The second basic configuration sub-template in the dialogue generation instruction includes at least one of the following: the object profile of the target virtual object, the object type of the target virtual object, the object behavior of the target virtual object, the dialogue characteristics description of the target virtual object, and the relationship between the target virtual object and the current user account.
[0127] Specifically, the aforementioned object profile of the target virtual object is used to describe the basic information of the target virtual object, such as the target virtual object's name, personality, age, gender, etc. Furthermore, it can also be an object profile related to the target dialogue topic, such as the role setting information of the target virtual object under the target dialogue topic, such as occupation, age, gender, role setting, etc. For example, the target virtual object is set as a fortune teller wearing a purple fortune-telling hat, and the role setting of the target virtual object is set as having a great understanding of the twelve constellations and their meanings, being able to accurately interpret constellations, and knowing the influence of planetary positions on human life.
[0128] Specifically, the object type of the aforementioned target virtual object is used to describe the type of role that the aforementioned target virtual object plays under the target dialogue topic, such as an object conducting a constellation dialogue.
[0129] Specifically, the object behavior of the aforementioned target virtual object is used to describe the corresponding role behavior of the target virtual object, such as the behavior that the target virtual object should perform under the role setting, such as constellation dialogue behavior.
[0130] Specifically, the relationship between the target virtual object and the current user account varies under different dialogue topics. For example, under the zodiac topic, the relationship between the target virtual object and the current user account is that the target virtual object is the current user account's pet, and the target virtual object refers to the current user account as "XXX".
[0131] The second topic information sub-template in the dialogue generation instruction includes at least one of the following: at least a portion of the target topic content, the user profile of the current user account, and at least one dimension of memory information of the current user account. The at least one dimension of memory information is a specific memory extracted from preset memory data that matches at least one of the topic rating dimension, the topic item dimension, the dialogue message, and the historical dialogue information of the target dialogue topic.
[0132] Specifically, the user profile of the current user account can be a user profile related to the target dialogue topic, such as the user's personality, age, gender, etc. under the target dialogue topic.
[0133] Specifically, the memory information of the current user account in at least one dimension is obtained by searching the memory database based on search conditions generated from the topic rating dimension, the topic item dimension, the dialogue messages, and the historical dialogue information of the target dialogue topic.
[0134] The dialogue content generation sub-template in the dialogue generation instruction includes the logic for generating the response information.
[0135] Specifically, the logic behind generating the aforementioned response information includes, but is not limited to, suggestions in at least one dimension, and / or content that cannot be described in the corresponding suggestions. At least one dimension includes, but is not limited to, suggestions on emotions and mindset, action guidance, interpersonal communication advice, life tips, and emotional and personal growth, thus providing broad suggestions related to the zodiac, but not specific methods for changing one's fortune or specific zodiac guidance.
[0136] For example, the above suggestions on emotions and mindset could be about the emotional fluctuations or psychological states you might encounter that day, along with advice on maintaining a calm, curious, and patient attitude. Metaphors can be used appropriately to describe the overall fortune. The above action guidance could offer broadly applicable suggestions, such as trying new hobbies, tidying up your living environment, and pursuing a work-life balance. The above interpersonal relationship advice could provide suggestions for interpersonal interactions, such as avoiding impulsiveness, listening more, and making appropriate compromises. The above life tips could offer small suggestions for daily life, such as enjoying the present moment, drinking cool water, paying attention to your health, and maintaining good eating habits. The above analysis could also cover emotions and personal growth, such as how to handle intimate relationships and maintain composure when facing emotional turmoil.
[0137] The second content-limited sub-template in the dialogue generation instruction includes at least one of the following: limiting the supported topics when conversing with the target virtual object under the target dialogue topic; limiting the reply information to include at least a first type of text and a second type of text; and limiting the guidance logic that guides the user back to the supported topics when the dialogue message does not match any of the supported topics. The first type of text is the dialogue reply text, the second type of text is the action description text associated with the dialogue reply text, the first type of text and the second type of text are consistent in emotion, and are displayed in a specific format.
[0138] Specifically, when conversing with a target virtual object under the target dialogue theme, the supported topics can include discussions about one's own interpersonal relationships, financial matters, and health. These interpersonal relationship discussions include, but are not limited to, topics such as love, friendship, career, or studies.
[0139] Specifically, the response should include at least the first type of text and the second type of text, which can be the target virtual object. The response should use text within parentheses to represent actions, and these actions must be consistent with the emotion. For example: (Circling its own tail) That's great! I'm so glad you shared your happy experience with me~; I'm always happy talking to you~ (happily lies down); Your concerns about this situation are reasonable. Let's analyze the situation together and see what feasible solutions are possible (affectionately rubs against it).
[0140] Specifically, when the dialogue message does not match any of the supported topics, the guidance logic to return the user to a supported topic can be that if the current user account discusses a non-supported topic, the target virtual object needs to guide the user back to a supported topic. For example, "How about we talk about a zodiac-related topic?" That is, the target virtual object can reply to questions related to several supported topics in the target dialogue. If the current user account asks a question outside the target dialogue topic, the target virtual object can refuse to answer and guide the current user account to continue with topics related to the target dialogue topic until the current user account ends the conversation.
[0141] In addition, the second content-limiting sub-template in the dialogue generation instruction can also limit content format issues, such as limiting dialogue effects, such as dialogue initiative, i.e., asking more questions to guide the current user account to talk more, for example, "Is there anything else you want to ask?"; or limiting word count requirements or structure, such as the dialogue consisting of 2 to 3 short sentences, with a total word count not exceeding 50 words.
[0142] In some embodiments, after obtaining the target topic content, the target virtual object can guide the current user account to ask detailed questions related to the target dialogue topic in the form of a dialogue. For example, it can select an opening line from the opening line word library and send the opening line, such as "Ask me questions now" to prompt the current user account that it can now engage in free dialogue.
[0143] In some embodiments, the method further includes: in response to entering a dialogue scene under the target dialogue topic, if there is target topic content that is within the content validity period during the time period, displaying the target topic content; in response to a received dialogue message sent by the current user account, generating response information of the target virtual object based on the dialogue message, the target topic content, and the historical dialogue information of the current user account under the target dialogue topic, using a target language model.
[0144] It is understandable that the target topic content can be produced in a preset time period, such as on a daily basis, that is, once within 0 to 24 hours. The target topic content produced in different time periods is different, and the target topic content displayed at least once within the same time period is the same, that is, the content of the target topic content is valid within the preset time period.
[0145] For example, if the validity period of the target topic content is set to 1 day, then if the time period for entering the dialogue scene under the target dialogue topic is the second or more times of the day, then since the content of the target topic content is still valid within that time period, the target topic content can be displayed, and the target virtual object can continue to control the dialogue between the current user account based on the previous dialogues.
[0146] In some embodiments, after generating and displaying the target topic content for the above-mentioned interactive information, the terminal can also perform further interactions based on the target topic content to better meet user needs. For example, the target topic content can be published or shared with relevant friends, thereby increasing the topicality of interaction and encouraging more users to choose the corresponding target dialogue topic and interact with the target virtual object.
[0147] Specifically, after generating target topic content using the target language model, the terminal may further include: in response to a content publishing trigger operation for the target topic content, generating content to be published based on the target topic content and / or the target virtual object.
[0148] The content to be published includes, but is not limited to, images and / or videos, text, titles, topics, activities, tags, etc. The specific content can be set according to needs and is not limited here.
[0149] For example, the terminal can receive a content publishing trigger operation for the target topic content via the aforementioned topic dialogue interface, display a content editing page, and display multimedia content, including the target topic content, on the content editing page. Then, in response to an edit event on the content editing page, the terminal can generate and publish content based on the content on the content editing page. For example, the content trigger operation could be a trigger operation on the "Post Note" control shown in Figure 501.
[0150] Alternatively, the terminal can receive a content sharing trigger operation for the target topic content via the aforementioned topic dialogue interface, determine the target object indicated by the content sharing trigger operation, and share the target topic content with the target object, which is an object associated with the current user account. For example, the aforementioned content sharing operation could be a trigger operation on the "Share" control in Figure 501.
[0151] In some embodiments, the method may further include: In response to the current user account entering the object interface of the target virtual object, if there is target topic content within its validity period, recommended content is displayed via an action prompt control near the target virtual object on the object interface; the recommended content is generated based on the target topic content. If there is no target topic content, but the topic triggering conditions are met, a jump control is displayed via the action prompt control on the object interface; the jump control is used to interactively jump to the topic dialogue interface corresponding to the target dialogue topic. The action prompt control may be displayed in the form of an action bubble.
[0152] Specifically, the aforementioned topic triggering conditions include, but are not limited to, at least one of the following: user messages entered by the current user account that indicate the target dialogue topic, a specific state of the current user account and / or the target virtual object, and a specific interactive behavior between the current user account and the target virtual object. In another embodiment, the topic triggering conditions are determined based on the number of times the current user enters the virtual scene (e.g., the object interface) where the target virtual object is located and / or the number of times the current user has dialogues with the target virtual object. For example, if the number of times the current user enters the virtual scene (e.g., the object interface) where the target virtual object is located reaches a first threshold, and the number of times the current user has dialogues with the target virtual object reaches a second threshold, then a jump control is displayed through the action prompt control on the object interface. The jump control is used to interactively jump to the topic dialogue interface corresponding to the target dialogue topic.
[0153] For example, under the zodiac theme, the current user account can enter a specific user message "I want to know about a certain zodiac sign" to trigger a target dialogue topic about that zodiac sign, thereby triggering the display of a jump control to jump to the topic dialogue interface corresponding to the target dialogue topic.
[0154] For example, under the constellation theme, the current user account's specific state can be the first entry state. For instance, when the current user account enters the object interface for the first time, a suggestion event about the target dialogue topic is triggered, thereby triggering the display of a jump control to jump to the theme dialogue interface corresponding to the target dialogue topic.
[0155] Specifically, the above-mentioned methods for generating recommended content based on target topic content include, but are not limited to: retrieving matching content from preset different types of content based on at least one piece of information in the target topic content as recommended content, automatically generating corresponding content based on at least one piece of information in the target topic content as recommended content, etc. The specific settings can be configured according to the needs and are not limited here.
[0156] The recommended content includes, but is not limited to, virtual props that act on the target virtual object (such as clothing that matches the lucky color in the target theme content) and activities that the target virtual object can participate in (such as game activities that match the theme rating dimensions in the target theme content). The specific settings can be made according to the needs and are not limited here.
[0157] For example, the terminal can use the lucky color under the constellation theme to find content that matches the lucky color, and display the content that matches the lucky color in the action prompt control, thereby realizing the recommendation for the current user account.
[0158] In some embodiments, the method further includes: the terminal can respond to the current user account entering the content display interface, and if there is target topic content that is within its validity period during the specified time period, then determine at least one target published content based on the target topic content, and display the target published content on the content display interface. The content display interface can be an information feed page on a content platform, or a preset page on the content platform.
[0159] Specifically, the methods for determining the target published content include, but are not limited to: selecting matching user-published content from multiple candidate user-published content based on at least one piece of information in the target topic content, or automatically generating corresponding content as the target published content based on at least one piece of information in the target topic content. These methods can be configured according to requirements and are not limited here. Specifically, keyword retrieval can be performed based on at least one piece of information in the target topic content to select the target published content from multiple candidate user-published content.
[0160] For example, the terminal can use the lucky number under the constellation theme to find target content published by other user accounts that match the lucky number, and recommend the target content published by other user accounts that match the lucky number to the current user account, that is, display the target content published by other user accounts that match the lucky number on the content display interface.
[0161] In some embodiments, the method further includes: in response to the current user account entering the live room interface of the target live room, if there is target topic content that is within the content validity period during the time period, the terminal can determine at least one live event, live product, or live virtual resource to be recommended from the target live room based on the target topic content, and display or highlight it.
[0162] Specifically, the methods for determining the aforementioned live streaming activities, live streaming products, and live streaming virtual resources to be recommended include, but are not limited to, selecting matching live streaming activities, live streaming products, and / or live streaming virtual resources from all live streaming activities, all live streaming products, and all live streaming virtual resources in the target live streaming room as the live streaming activities, live streaming products, and live streaming virtual resources to be recommended based on at least one piece of information in the target theme content.
[0163] For example, the terminal can use the lucky number and lucky color under the constellation theme to find the live broadcast event in the target live broadcast room that matches the lucky number and lucky color, and display the live broadcast event that matches the lucky number and lucky color in a pop-up window on the live broadcast room interface of the current user account.
[0164] In some embodiments, the method further includes: the terminal can respond to the current user account entering the map interface, and if there is target topic content that is within the content validity period during the time period, recall at least one interactive content based on the target topic content and display it on the map interface.
[0165] Specifically, the recall methods for the aforementioned interactive content include, but are not limited to: determining candidate interactive content that can be displayed on the map interface, including but not limited to points of interest (POIs), notes, live streams, group chats, events, and other virtual objects. Then, the terminal can select matching interactive content from multiple candidate interactive content based on at least one piece of information in the target theme content and display it on the map interface. Specific settings can be configured according to requirements and are not limited here. For example, the terminal can use lucky numbers and lucky colors under a zodiac theme to find interactive content on the map interface that matches the lucky numbers and lucky colors, and display the interactive content matching the lucky numbers and lucky colors on the map interface.
[0166] In some embodiments, the method further includes: the terminal can respond to the current user account entering the private message page corresponding to the target virtual object, displaying the target topic content that is valid within the time period, and / or chat history related to the target dialogue topic, and / or content recommended based on the target topic content; if no target topic content exists, a page jump control associated with the target virtual object is displayed, the page jump control being used to jump to the topic dialogue interface associated with the target virtual object.
[0167] Specifically, the content recommended on the private message page based on the target topic content includes, but is not limited to: retrieving matching activities or content from preset activities or content based on at least one piece of information in the target topic content, generating corresponding links, and having the target virtual object send them to the current user account on the private message page so that the current user account can enter the corresponding activity or content by triggering the corresponding link.
[0168] For example, the terminal can find the highest-scoring target topic rating dimension based on the topic rating information in the target topic content, and use the target topic rating dimension to recommend content to the current user account via private message, such as displaying activity links for activities like treasure hunting, blessing, or group photos on the private message page.
[0169] For example, such as Figure 8 The notification message illustration shown indicates that the target topic content that is within its validity period and / or chat history related to the target conversation topic, and / or content recommended based on the target topic content can be sent to the current user account via private message from the target virtual object.
[0170] In some embodiments, the current user account can also view the historical interaction process between the target virtual object with which it interacts. The terminal can receive the historical interaction record viewing operation through the above-mentioned topic dialogue interface and display the historical interaction record page. The historical interaction record page includes a first interaction record and a second interaction record corresponding to at least one historical dialogue topic. The at least one historical dialogue topic includes the target dialogue topic. The second interaction record displays topic indication information associated with the historical dialogue topic. The display styles of the first interaction record and the second interaction record are different. After the second interaction record is operated, an interaction record details window is displayed. The interaction record details window includes record details information under the above-mentioned historical dialogue topic.
[0171] The aforementioned operation of viewing historical interaction records can be achieved by setting a record control on the topic dialogue interface, such as... Figure 2 The "Chat History" control in the interface can be accessed by triggering the record control. The above-mentioned operation of viewing historical interaction records can also be achieved by setting a shortcut gesture on the topic dialogue interface and implementing the shortcut gesture. The specific settings can be configured according to the needs and are not limited here.
[0172] The interaction records presented on the aforementioned historical interaction record page include, but are not limited to, chat logs between the current user account and the target virtual object, and behavior records corresponding to the interaction between the current user account and the target virtual object (such as petting, feeding, etc.).
[0173] It is understandable that, since dialogue topics are introduced in this embodiment, in order to intuitively distinguish the interaction records when the target virtual object plays different target virtual roles, the interaction records can be displayed in different display styles. That is, the interaction records of the target virtual object that is not playing the target virtual role are displayed in one display style, and the interaction records of the target virtual object that is playing the target virtual role are displayed in another display style. Since there may be multiple dialogue topics, and the target virtual object needs to play different virtual roles under multiple dialogue topics, the second interaction records under different dialogue topics can also be distinguished, such as by display style, or by interaction record blocks, etc. The specific settings can be set according to the needs and are not limited here. The interaction record block is used to indicate the information block that carries the interaction record of a dialogue topic. The information displayed on the information block can be part of the interaction record of the dialogue topic, or it can be all the interaction record of the dialogue topic, etc.
[0174] Optionally, since there may be multiple dialogue topics, and the target virtual object needs to play different virtual roles under multiple dialogue topics, in order to facilitate the current user account to accurately and quickly find the interaction record under a certain dialogue topic that the current user account wants to view from the interaction records corresponding to multiple dialogue topics, the terminal can preset the topic identifiers corresponding to each historical dialogue topic and display the topic identifiers corresponding to each historical dialogue topic on the historical interaction record page. Thus, the terminal can respond to the selection operation of the target topic identifier in the topic identifier and display the interaction record of the historical dialogue topic to which the selected target topic identifier belongs, so as to realize the quick search of interaction records.
[0175] For example, such as Figure 9 The diagram shown illustrates the process of viewing interaction records. The historical interaction record page provided by Figure 901 displays the first interaction record and the second interaction record under the constellation theme. The second interaction record exists in the form of an interaction record block. Only part of the information is displayed in the interaction record block of the second interaction record, while the first interaction record displays all the information in the aforementioned historical interaction record page.
[0176] The interactive record block carrying the second interactive record displays the information "Zodiac Record with Pets" to indicate the zodiac theme. The terminal can respond to the triggering operation of this interactive information block to display the interactive record details window shown in Figure 902. This window displays record details for the zodiac theme, including the target theme content generated under the zodiac theme, i.e., the target theme content card. The terminal can respond to the triggering operation of the target theme content card to display the enlarged target theme content card details shown in Figure 903. These card details include the enlarged target theme content card and card interaction controls that allow interaction with the target theme content card, such as "Share" and "Post Note" controls.
[0177] In addition, the 901 diagram also provides record interaction controls for interacting with the interaction records on the history interaction record page, such as the "screenshot sharing" control and the "post note" control, so that you can share privately or publish content through both.
[0178] In some embodiments, after generating and displaying the target topic content for the above-mentioned interactive information, the target topic content can be stored, such as storing the target topic content card in the album space of the target application of the current user account, so that by entering the album space, the album page is triggered to display, and the target topic content card can be interacted with in the album page, such as content posting, private message sharing, viewing details, etc. The specific settings can be set according to the needs and are not limited here.
[0179] Specifically, based on the aforementioned target dialogue topic and the aforementioned current user account, the content of the aforementioned target topic is stored as historical target topic content. The associated storage page includes historical target topic content of at least one historical dialogue topic, as well as a jump control. The aforementioned associated storage page allows the aforementioned current user account to view the result details of the aforementioned historical target topic content, and / or, jump to the topic dialogue interface of the corresponding historical dialogue topic through the aforementioned historical target topic content and the aforementioned jump control, and / or, jump to the aforementioned topic dialogue interface through the aforementioned jump control.
[0180] Specifically, the result details of the current user account viewing the aforementioned historical target topic content can be the current user account's viewing operation of the historical target topic content on the associated storage page, to display the result details of the viewed historical target topic content. This viewing operation can be a click operation, a swipe operation, a shortcut key operation, etc.
[0181] Specifically, the current user account can jump to the topic dialogue interface of the corresponding historical dialogue topic through the historical target topic content and the jump control. This can be achieved by the current user account selecting a historical target topic content in the associated stored page, so that the selected historical target topic content is in a selected state, and then the current user account can jump to the topic dialogue interface of the historical dialogue topic to which the selected historical target topic content belongs by triggering the jump control. The selection operation and triggering operation can be a click operation, a swipe operation, a shortcut key operation, etc.
[0182] Specifically, the current user account can jump to the topic dialogue interface through the jump control by triggering the jump control, thereby allowing the user account to perform operations such as confirming the topic of the dialogue.
[0183] For example, such as Figure 10 The diagram shown illustrates the interaction process of the album page. This album page is the page that stores the aforementioned target theme content as historical target theme content. The album page provided in Figure 1001 displays four target theme content cards, the first of which is the target theme content card under the constellation theme.
[0184] The terminal can respond to the viewing operation of the target topic content card under the topic in the illustration 1001 to display the card details of the target topic content card under the constellation topic in the illustration 1002. The card details include the enlarged target topic content card and card interaction controls that can be interacted with on the target topic content card, such as the "share" control and the "post note" control.
[0185] The terminal can respond to the selection operation of the target topic content card under the constellation theme in the diagram 1001, so that the target topic content card under the constellation theme is selected. Then the terminal can respond to the trigger operation of the "Go to Magic Chat" control in the diagram 1001, so as to jump to the topic dialogue interface of the constellation theme in the diagram 1003.
[0186] As can be seen from the above, by receiving a target dialogue topic for a target virtual object and obtaining user information related to the target dialogue topic; generating target topic content using a target language model based on the target dialogue topic and the user information; and responding to a received dialogue message from the current user account, generating the response information of the target virtual object based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic, thereby receiving the target dialogue topic required for the user's current interaction and generating the target topic content corresponding to that target dialogue topic, and controlling the dialogue between the target virtual object and the current user account based on the target topic content, the interaction between the two becomes more in line with user needs, thus greatly improving the interaction effect between the user and the virtual object.
[0187] To better implement the above methods, this application also provides an interactive device, which can be integrated into an electronic device, such as a computer device, which can be a terminal, server, or other device.
[0188] The terminal can be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, personal computer, etc.; the server can be a single server or a server cluster composed of multiple servers.
[0189] For example, in this embodiment, the method of this application embodiment will be described in detail by taking the interactive device specifically integrated into the terminal as an example. This embodiment provides an interactive device, such as... Figure 11 As shown, the interactive device may include:
[0190] The information acquisition module 1101 is used to receive a target dialogue topic for a target virtual object and acquire user information related to the target dialogue topic;
[0191] Content generation module 1102 is used to generate target topic content based on the target dialogue topic and the user information using a target language model;
[0192] The dialogue module 1103 is used to respond to a dialogue message sent by the current user account and, based on the dialogue message, the target topic content, and / or the historical dialogue information of the current user account under the target dialogue topic, generate the response information of the target virtual object using the target language model.
[0193] In some embodiments, the target topic content is specifically used for at least one of the following: the content generation time of the target topic content, topic feature description information, topic title, topic rating information, topic project results, and comprehensive topic description text.
[0194] In some embodiments, the content generation module 1102 is specifically used for:
[0195] Based on the target dialogue topic and the user information, generate a content generation instruction corresponding to the target dialogue topic;
[0196] The content generation instruction is input into the target language model so that the target language model generates the topic title and / or the comprehensive topic description text based on the content generation instruction.
[0197] In some embodiments, the content generation module 1102 is specifically used for:
[0198] Obtain a first instruction template configured for the target dialogue topic. The first instruction template includes at least one of a first basic configuration sub-template, a first topic information sub-template, a content guidance generation sub-template, and a first content limitation sub-template. At least one sub-template has a template field.
[0199] Based on the target dialogue topic and / or the user information, the template fields are populated with content to generate a content generation instruction, wherein...
[0200] The first basic configuration sub-template in the content generation instruction is specifically used for at least one of the following: the object profile of the target virtual object, the object type of the target virtual object, the object behavior of the target virtual object, and / or the relationship between the target virtual object and the current user account;
[0201] The first topic information sub-template in the content generation instruction is specifically used for: the current date, the user topic features of the current user account associated with the target dialogue topic, the feature description information associated with the user topic features, the user profile of the current user account, the topic rating information associated with the target dialogue topic, the topic item results, at least one dimension of memory information related to the current user account, and at least one other preset content. The at least one dimension of memory information is a specific memory extracted from a preset memory database that matches the topic rating dimension and / or the topic item dimension of the target dialogue topic.
[0202] The content-guided generation sub-template in the content generation instruction is specifically used for: the generation logic of target topic content;
[0203] The first content-limited sub-template in the content generation instruction is specifically used to: limit the association between the generated content and at least one content in at least one sub-template; limit the generated content to include part of the output content of the content-guided generation sub-template; limit the rhetorical devices used in the generated content; limit the emotional tendency of the generated content; and limit the characteristics of the scene described in the generated content.
[0204] In some embodiments, the information acquisition module 1101 is specifically used for:
[0205] If the user theme characteristics are not obtained from the local machine or the server, then guide information is displayed via an information window or an object message containing guide information is sent through the target virtual object;
[0206] In response to an information editing operation on the guidance information, the user theme characteristics are determined based on the editing information indicated by the information editing operation.
[0207] In some embodiments, the dialogue module 1103 is specifically used for:
[0208] Based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic, generate a dialogue generation instruction corresponding to the target dialogue topic;
[0209] The dialogue generation instruction is input into the target language model so that the target language model generates response information based on the dialogue generation instruction.
[0210] In some embodiments, the dialogue module 1103 is specifically used for:
[0211] Obtain a second instruction template configured for the target dialogue topic. The second instruction template includes at least one of a second basic configuration sub-template, a second topic information sub-template, a dialogue content generation sub-template, and a second content limitation sub-template. At least one sub-template has a template field.
[0212] Based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic, the template fields are populated with content to generate a dialogue generation instruction, wherein,
[0213] The second basic configuration sub-template in the dialogue generation instruction is specifically used for at least one of the following: the object profile of the target virtual object, the object type of the target virtual object, the object behavior of the target virtual object, the dialogue characteristic description of the target virtual object, and the relationship between the target virtual object and the current user account;
[0214] The second topic information sub-template in the dialogue generation instruction is specifically used for: at least a portion of the target topic content, the user profile of the current user account, and at least one dimension of memory information of the current user account, wherein the at least one dimension of memory information is a specific memory extracted from a preset memory database that matches at least one of the topic rating dimension, topic item dimension, dialogue message, and historical dialogue information of the target dialogue topic;
[0215] The dialogue content generation sub-template in the dialogue generation instruction is specifically used for: the logic of generating the reply information;
[0216] The second content-limiting sub-template in the dialogue generation instruction is specifically used for: limiting a number of topics supported when conversing with a target virtual object under a target dialogue topic; limiting the reply information to include at least a first type of text and a second type of text; and limiting the guidance logic to guide the user back to a supported topic when the dialogue message does not match any of the supported topics. The first type of text is the dialogue reply text, the second type of text is the action description text associated with the dialogue reply text, the first type of text and the second type of text are consistent in emotion, and are displayed in a specific format.
[0217] In some embodiments, the interactive device further includes a content display module, which is specifically used for:
[0218] In response to entering a dialogue scenario under the target dialogue topic, if there is target topic content that is within the content validity period within the time period, the target topic content is displayed;
[0219] In response to a received dialogue message from the current user account, based on the dialogue message, the target topic content, and the current user account's historical dialogue information under the target dialogue topic, a response message for the target virtual object is generated using a target language model.
[0220] In some embodiments, the interactive device further includes a content publishing module, which is specifically used for:
[0221] In response to a content publishing trigger operation for the target topic content, content to be published is generated based on the target topic content and / or the target virtual object.
[0222] In some embodiments, the interactive device further includes a page navigation module, which is specifically used for:
[0223] In response to the current user account entering the private message page corresponding to the target virtual object, the system displays the target topic content that is still valid within the specified time period, and / or chat history related to the target conversation topic, and / or recommended content based on the target topic content;
[0224] If no target topic content exists, a page navigation control associated with the target virtual object is displayed. This page navigation control is used to navigate to the topic dialog interface associated with the target virtual object.
[0225] In some embodiments, the interactive device further includes a recommendation module, which is specifically used for:
[0226] In response to the current user account entering the object interface of the target virtual object, if there is target topic content that is within the content validity period during the time period, recommended content is displayed through the action prompt control located near the target virtual object on the object interface, and the recommended content is generated based on the target topic content;
[0227] If no target topic content exists, and the topic triggering conditions are met, a jump control is displayed through the action prompt control on the object interface. The jump control is used to interactively jump to the topic dialogue interface corresponding to the target dialogue topic.
[0228] In some embodiments, the interactive device further includes a content determination module, which is specifically used for:
[0229] In response to the current user account entering the content display interface, if there is target topic content that is within the content validity period within the time period, at least one target published content is determined based on the target topic content, and the target published content is displayed on the content display interface.
[0230] In some embodiments, the interactive device further includes an information display module, which is specifically used for:
[0231] In response to the current user account entering the live room interface of the target live room, if there is target topic content that is within the content validity period, then based on the target topic content, at least one live event, live product, or live virtual resource to be recommended is determined from the target live room and displayed or highlighted.
[0232] In some embodiments, the interactive device further includes a recall module, which is specifically used for:
[0233] In response to the current user account entering the map interface, if there is target topic content that is within the content validity period within the time period, at least one interactive content is recalled based on the target topic content and displayed on the map interface.
[0234] As can be seen from the above, the interactive device in this embodiment receives a target dialogue topic for a target virtual object and obtains user information related to the target dialogue topic; based on the target dialogue topic and the user information, it generates target topic content using a target language model; in response to a received dialogue message from the current user account, it generates the response information of the target virtual object based on the dialogue message, the target topic content, and / or the historical dialogue information of the current user account under the target dialogue topic, using a target language model. Thus, by receiving the target dialogue topic required for the user's current interaction and generating the target topic content corresponding to the target dialogue topic, the device controls the dialogue between the target virtual object and the current user account based on the target topic content, making the interaction between the two more in line with user needs, thereby greatly improving the interaction effect between the user and the virtual object.
[0235] Accordingly, this application also provides an electronic device, which can be a terminal, such as a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. Figure 12 As shown, Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 1200 includes a processor 1201 with one or more processing cores, a memory 1202 with one or more computer-readable storage media, and a computer program stored in the memory 1202 and executable on the processor. The processor 1201 and the memory 1202 are electrically connected. Those skilled in the art will understand that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0236] The processor 1201 is the control center of the electronic device 1200. It connects various parts of the electronic device 1200 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 1202, and calling data stored in the memory 1202, it performs various functions of the electronic device 1200 and processes data, thereby monitoring the electronic device 1200 as a whole.
[0237] In this embodiment, the processor 1201 in the electronic device 1200 loads the computer program corresponding to the process of one or more application programs into the memory 1202 according to the following steps, and the processor 1201 runs the application programs stored in the memory 1202 to realize various functions:
[0238] Receive a target dialogue topic for a target virtual object, and obtain user information related to the target dialogue topic;
[0239] Based on the target dialogue topic and the user information, target topic content is generated using the target language model;
[0240] In response to a received dialogue message from the current user account, based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic, a response message for the target virtual object is generated using a target language model.
[0241] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0242] Optional, such as Figure 12 As shown, the electronic device 1200 also includes: a touch display screen 1203, a radio frequency circuit 1204, an audio circuit 1205, an input unit 1206, and a power supply 1207. The processor 1201 is electrically connected to the touch display screen 1203, the radio frequency circuit 1204, the audio circuit 1205, the input unit 1206, and the power supply 1207. Those skilled in the art will understand that... Figure 12 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0243] The touch display screen 1203 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 1203 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), and generate corresponding operation commands, which then execute the corresponding program. Optionally, the touch panel may include a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 1201. It can also receive and execute commands from the processor 1201. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 1201 to determine the type of touch event. Subsequently, the processor 1201 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 1203 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 1203 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 1203 can also be used as part of the input unit 1206 to achieve input functions.
[0244] The radio frequency circuit 1204 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices, and to transmit and receive signals with network devices or other electronic devices.
[0245] Audio circuit 1205 can be used to provide an audio interface between a user and an electronic device via a speaker and a microphone. Audio circuit 1205 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 1205, converted back into audio data, and then processed by processor 1201 before being transmitted via radio frequency circuit 1204 to, for example, another electronic device, or output to memory 1202 for further processing. Audio circuit 1205 may also include an earphone jack to provide communication between peripheral headphones and electronic devices.
[0246] The input unit 1206 can be used to receive input numbers, characters, or user characteristic information (such as fingerprints, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
[0247] Power supply 1207 is used to supply power to various components of electronic device 1200. Optionally, power supply 1207 can be logically connected to processor 1201 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 1207 may also include one or more DC or AC power supplies, charging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0248] although Figure 12 As not shown in the diagram, the electronic device 1200 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.
[0249] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0250] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by a computer program, or by a computer program controlling related hardware. The computer program can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0251] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs, which can be loaded by a processor to execute any of the interactive methods provided in embodiments of this application. For example, the computer program can perform the following steps:
[0252] Receive a target dialogue topic for a target virtual object, and obtain user information related to the target dialogue topic;
[0253] Based on the target dialogue topic and the user information, target topic content is generated using the target language model;
[0254] In response to a received dialogue message from the current user account, based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic, a response message for the target virtual object is generated using a target language model.
[0255] As can be seen, a computer program can be loaded by a processor to execute any of the interactive methods provided in the embodiments of this application, thereby bringing about the following technical effects: improving the interaction between the user and the virtual object.
[0256] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0257] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0258] Since the computer program stored in the computer-readable storage medium can execute any of the interactive methods provided in the embodiments of this application, it can achieve the beneficial effects that any of the interactive methods provided in the embodiments of this application can achieve, as detailed in the preceding embodiments, and will not be repeated here.
[0259] The foregoing has provided a detailed description of an interactive method, apparatus, electronic device, and computer-readable storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. An interactive method, characterized in that, The method includes: Receive a target dialogue topic for a target virtual object, and obtain user information related to the target dialogue topic; Based on the target dialogue topic and the user information, target topic content is generated using the target language model; In response to a received dialogue message from the current user account, based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic, a response message for the target virtual object is generated using a target language model.
2. The interactive method as described in claim 1, characterized in that, The target topic content includes at least one of the following: the content generation time of the target topic content, topic feature description information, topic title, topic rating information, topic project results, and comprehensive topic description text.
3. The interactive method as described in claim 2, characterized in that, The step of generating target topic content using a target language model based on the target dialogue topic and the user information includes: Based on the target dialogue topic and the user information, generate a content generation instruction corresponding to the target dialogue topic; The content generation instruction is input into the target language model so that the target language model generates the topic title and / or the comprehensive topic description text based on the content generation instruction.
4. The interaction method as described in claim 3, characterized in that, The step of generating content generation instructions corresponding to the target dialogue topic based on the target dialogue topic and the user information includes: Obtain a first instruction template configured for the target dialogue topic. The first instruction template includes at least one of a first basic configuration sub-template, a first topic information sub-template, a content guidance generation sub-template, and a first content limitation sub-template. At least one sub-template has a template field. Based on the target dialogue topic and / or the user information, the template fields are populated with content to generate a content generation instruction, wherein... The first basic configuration sub-template in the content generation instruction includes at least one of the following: the object profile of the target virtual object, the object type of the target virtual object, the object behavior of the target virtual object, and / or the relationship between the target virtual object and the current user account; The first topic information sub-template in the content generation instruction includes: the current date, user topic features of the current user account associated with the target dialogue topic, feature description information associated with the user topic features, user profile of the current user account, topic rating information associated with the target dialogue topic, topic item results, at least one dimension of memory information related to the current user account, and at least one other preset content. The at least one dimension of memory information is a specific memory extracted from a preset memory database that matches the topic rating dimension and / or topic item dimension of the target dialogue topic. The content generation sub-template in the content generation instruction includes: the generation logic of the target topic content; The first content-defined sub-template in the content generation instruction includes at least one of the following: the association between the content to be generated and at least one content in at least one sub-template; the requirement that the content to be generated must include part of the output content of the content-guided generation sub-template; the rhetorical devices used in the content to be generated; the emotional tendency of the content to be generated; and the characteristics of the scene described in the content to be generated.
5. The interactive method as described in claim 1, characterized in that, The acquisition of user information related to the target dialogue topic includes: If the user theme characteristics are not obtained from the local machine or the server, then guide information is displayed via an information window or an object message containing guide information is sent through the target virtual object; In response to an information editing operation on the guidance information, the user theme characteristics are determined based on the editing information indicated by the information editing operation.
6. The interaction method as described in claim 1, characterized in that, The step of generating response information for the target virtual object based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic, using the target language model, includes: Based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic, generate a dialogue generation instruction corresponding to the target dialogue topic; The dialogue generation instruction is input into the target language model so that the target language model generates response information based on the dialogue generation instruction.
7. The interactive method as described in claim 6, characterized in that, The step of generating a dialogue generation instruction corresponding to the target dialogue topic based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic includes: Obtain a second instruction template configured for the target dialogue topic. The second instruction template includes at least one of a second basic configuration sub-template, a second topic information sub-template, a dialogue content generation sub-template, and a second content limitation sub-template. At least one sub-template has a template field. Based on the dialogue message, the target topic content, and / or the current user account's historical dialogue information under the target dialogue topic, the template fields are populated with content to generate a dialogue generation instruction, wherein, The second basic configuration sub-template in the dialogue generation instruction includes at least one of the following: the object profile of the target virtual object, the object type of the target virtual object, the object behavior of the target virtual object, the dialogue characteristics description of the target virtual object, and the relationship between the target virtual object and the current user account; The second topic information sub-template in the dialogue generation instruction includes at least one of the following: at least part of the target topic content, the user profile of the current user account, and at least one dimension of memory information of the current user account. The at least one dimension of memory information is a specific memory extracted from a preset memory database that matches at least one of the topic rating dimension, topic item dimension, dialogue message, and historical dialogue information of the target dialogue topic. The dialogue content generation sub-template in the dialogue generation instruction includes: the logic for generating the response information; The second content-limited sub-template in the dialogue generation instruction includes at least one of the following: limiting the supported topics when conversing with the target virtual object under the target dialogue topic; limiting the reply information to include at least a first type of text and a second type of text; and limiting the guidance logic that guides the user back to the supported topics when the dialogue message does not match any of the supported topics. The first type of text is the dialogue reply text, the second type of text is the action description text associated with the dialogue reply text, the first type of text and the second type of text are consistent in emotion, and are displayed in a specific format.
8. The interaction method as described in claim 1, characterized in that, Also includes: In response to entering a dialogue scenario under the target dialogue topic, if there is target topic content that is within the content validity period within the time period, the target topic content is displayed; In response to a received dialogue message from the current user account, based on the dialogue message, the target topic content, and the current user account's historical dialogue information under the target dialogue topic, a response message for the target virtual object is generated using a target language model.
9. The interactive method as described in claim 1, characterized in that, After generating target topic content using the target language model, the process also includes: In response to a content publishing trigger operation for the target topic content, content to be published is generated based on the target topic content and / or the target virtual object.
10. The interaction method as described in claim 1, characterized in that, Also includes: In response to the current user account entering the private message page corresponding to the target virtual object, the system displays the target topic content that is still valid within the specified time period, and / or chat history related to the target conversation topic, and / or recommended content based on the target topic content; If no target topic content exists, a page navigation control associated with the target virtual object is displayed. This page navigation control is used to navigate to the topic dialog interface associated with the target virtual object.
11. The interaction method as described in claim 1, characterized in that, Also includes: In response to the current user account entering the object interface of the target virtual object, if there is target topic content that is within the content validity period during the time period, recommended content is displayed through the action prompt control located near the target virtual object on the object interface, and the recommended content is generated based on the target topic content; If no target topic content exists, and the topic triggering conditions are met, a jump control is displayed through the action prompt control on the object interface. The jump control is used to interactively jump to the topic dialogue interface corresponding to the target dialogue topic.
12. The interaction method as described in claim 1, characterized in that, Also includes: In response to the current user account entering the content display interface, if there is target topic content that is within the content validity period within the time period, at least one target published content is determined based on the target topic content, and the target published content is displayed on the content display interface.
13. The interaction method as described in claim 1, characterized in that, Also includes: In response to the current user account entering the live room interface of the target live room, if there is target topic content that is within the content validity period, then based on the target topic content, at least one live event, live product, or live virtual resource to be recommended is determined from the target live room and displayed or highlighted.
14. The interaction method as described in claim 1, characterized in that, Also includes: In response to the current user account entering the map interface, if there is target topic content that is within the content validity period within the time period, at least one interactive content is recalled based on the target topic content and displayed on the map interface.
15. An interactive device, characterized in that, The device includes: The information acquisition module is used to receive a target dialogue topic for a target virtual object and acquire user information related to the target dialogue topic; The content generation module is used to generate target topic content based on the target dialogue topic and the user information using a target language model; The dialogue module is used to respond to a dialogue message sent by the current user account, and generate the response information of the target virtual object based on the dialogue message, the target topic content, and / or the historical dialogue information of the current user account under the target dialogue topic, using the target language model.
16. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the interactive method according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that, It includes a computer program that, when run on an electronic device, causes the electronic device to perform the interactive method according to any one of claims 1 to 14.