Conversation interaction method based on artificial intelligence (AI) virtual character and electronic equipment
Interaction between virtual characters is realized in virtual character group chats through semantic summarization and matching technology, which solves the problem of virtual character awareness, and increases user freedom in script chat mode through weakly bound scripts and role settings, improving Authenticity and user experience in virtual chats.
Patent Information
- Application Number
- CN202410599009.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-27
AI Technical Summary
In existing virtual emotional companion robots, in group chat scenarios, there is a lack of interaction between virtual characters and they are unable to know the content of each other's conversations, resulting in an unreal conversation experience. In addition, users' freedom in script chat mode is limited and they cannot flexibly develop the plot.
By conducting semantic summarization between AI virtual characters and matching core keywords to generate echoing dialogue content, interaction between virtual characters is realized; weakly bound scripts and role settings are used in script chat mode, allowing users to freely choose roles. and trigger plot segments to increase dialogue freedom.
It improves the authenticity and user experience of virtual character group chat, making the interaction between virtual characters closer to real group chat, and retains the user's freedom of dialogue and plot development characteristics in the script chat mode.
Smart Images

Figure CN118551005A
Abstract
Description
Technical Field
[0001] The present application relates to the field of AI interactive technology, and in particular to a conversational interaction method and electronic device based on artificial intelligence (AI) virtual characters. Background Art
[0002] Today's society is fast-paced and stressful, especially for young people. They are busy at work every day and have little time to spend on daily social activities. Therefore, they have basically no social partners and cannot confide or tell about all kinds of problems. As a result, the proportion of mental illness among young people is increasing.
[0003] In response to the above situation, some virtual emotional companion robot products have appeared on the market, which can provide users with a variety of characters with different personalities and characteristics. Users will receive different replies when chatting with different characters, which can be rich in language and emotion. Users can also share screenshots of interesting conversations to make the chat more interesting, etc. Users can even create custom characters and talk to them, etc.
[0004] Although the above-mentioned virtual emotional companion robot products can chat with users, how to further improve the effect of the conversation so that users can get an experience close to chatting with real people has always been the focus of technical personnel in this field. Summary of the invention
[0005] The present application provides a conversation interaction method and electronic device based on artificial intelligence (AI) virtual characters, which can make the chat conversation based on AI virtual characters closer to the scene of chatting with real people, thereby improving the user experience.
[0006] This application provides the following solutions:
[0007] A conversation interaction method based on artificial intelligence (AI) virtual characters, comprising:
[0008] In response to a user's request for a multi-person conversation based on an AI virtual character, providing an optional AI virtual character;
[0009] After at least two AI virtual characters are selected, creating a multi-person session, and adding the user and the at least two AI virtual characters as session members to the multi-person session;
[0010] During the conversation between the first AI virtual character and the user, semantically summarizing the reply content generated by the AI from the perspective of the first AI virtual character to obtain core keywords;
[0011] Based on the personality label data and / or character label data of other AI virtual characters, determine whether there is a second AI virtual character that matches the core keyword. If so, generate dialogue content that echoes the reply content of the first AI virtual character from the perspective of the second AI virtual character; wherein the personality label data includes: label word information used to describe the character setting of the AI virtual character.
[0012] Among them, it also includes:
[0013] In the process of multi-person conversation, intelligent arrangement is performed based on the user's intention and the persona label data and / or personality label data of each AI virtual character to determine the AI virtual character used to communicate with the user in each conversation round;
[0014] Among them, the intelligent arrangement includes: performing intent analysis on the dialogue content input by the user in the current dialogue round, and matching the at least two AI virtual characters with the user's intent respectively according to the intention analysis result, the personality label data and / or character label data corresponding to the at least two AI virtual characters, and the context information generated during the dialogue process, and determining the target AI virtual character used to communicate with the user in the current dialogue round according to the matching result.
[0015] The character data associated with the AI virtual character includes the character label data and / or personality label data, and exemplary question-and-answer data for reflecting the expression habits of the AI virtual character in dialogue communication;
[0016] When AI generates reply content from the perspective of a certain AI virtual character, it is generated based on the character data of the AI virtual character, the user data of the user, and the semantic summary information of the conversation context between the AI virtual character and the user.
[0017] The optional AI virtual characters include AI virtual characters preset in the system, AI virtual characters customized by the user, and / or AI virtual characters created by users with creator identities in the system.
[0018] Among them, it also includes:
[0019] When a user customizes an AI virtual character or a user with a creator identity creates an AI virtual character, the user is assisted in generating character data for the AI virtual character through AI generation.
[0020] The method of assisting users in generating character data of AI virtual characters by AI generation includes:
[0021] Based on the personality label data and / or personality trait data of the AI virtual character, a plurality of exemplary question data for reflecting the expression habits of the AI virtual character in dialogue and communication are generated through AI generation, so that after the user provides corresponding answer data for the question data, exemplary question and answer data for reflecting the expression habits of the AI virtual character in dialogue and communication are generated, and the exemplary question and answer data are used to generate reply content when the corresponding AI virtual character replies.
[0022] The method of assisting users in generating character data of AI virtual characters by AI generation includes:
[0023] According to the text-type character data of the AI virtual character, image-type character data is generated through AI generation, and the image-type character data includes an avatar and / or a chat background image.
[0024] The reply content generated by the AI virtual character includes multimodal reply content;
[0025] Before the AI generates reply content from the perspective of the AI virtual character, the content type of the reply content to be generated is determined so that the reply content can be generated by calling an AI model with a corresponding type of content generation capability.
[0026] A conversation interaction method based on artificial intelligence (AI) virtual characters, comprising:
[0027] In response to a user's request for scripted interaction based on an AI virtual character, a selectable script set and a selectable AI virtual character set are provided, wherein the script is associated with required character quantity information, character setting labels and / or personality labels, so that the user can select a corresponding AI virtual character from the AI virtual character set; the script is also associated with a plurality of key plot segments, wherein a plurality of key keyword entries are also configured around the key plot segments;
[0028] After the target script and the target AI virtual character are selected, creating a scripted session and adding the user and the target AI virtual character to the session;
[0029] In the scripted conversation, the plot is advanced to the next key plot segment based on whether the dialogue content input by the user hits the key words. If the dialogue content input by the user does not hit the key words, dialogue content is generated by the target AI virtual character to lead the next key plot segment based on the key words.
[0030] Among them, there is a limit on the maximum number of dialogue turns between adjacent key plot segments. If the dialogue content input by the user still does not hit the key word entry when approaching the maximum dialogue turn, the dialogue content guided by the target AI virtual character into the next key plot segment based on the key word entry is generated.
[0031] A conversation interaction method based on artificial intelligence (AI) virtual characters, comprising:
[0032] In response to a user's request for a conversational interaction based on an AI virtual character, providing an optional AI virtual character;
[0033] After the AI virtual character is selected, a corresponding session is created, and the user and the AI virtual character are added to the session as session members;
[0034] In the process of conducting a conversation based on the session, a prompt text is generated according to the semantic summary information of the conversation context generated in the conversation, the user's information and the role data of the AI virtual character, and the prompt text is input into the AI model so that the AI model can generate a reply content from the perspective of the AI virtual character; wherein the role data of the target AI virtual character includes: personality label data and character label data associated with the target AI virtual character, and exemplary question and answer data for reflecting the expression habits of the AI virtual character in conversation and communication, and the personality label data includes: label word information for describing the character setting of the AI virtual character.
[0035] The reply content generated by the AI virtual character includes multimodal reply content;
[0036] Before the AI generates reply content from the perspective of the AI virtual character, the content type of the reply content to be generated is determined so that the reply content can be generated by calling an AI model with a corresponding type of content generation capability.
[0037] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any of the methods described above.
[0038] An electronic device, comprising:
[0039] one or more processors; and
[0040] A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of any of the aforementioned methods.
[0041] A computer program product comprises a computer program / computer executable instructions, wherein the computer program / computer executable instructions implement the steps of any of the aforementioned methods when executed by a processor in an electronic device.
[0042] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0043] Through the first embodiment of the present application, in a multi-person dialogue mode based on AI virtual characters, during a dialogue between a first AI virtual character and a user, the reply content generated by AI from the perspective of the first AI virtual character can be semantically summarized to obtain core keywords. Then, based on the personality label data and / or character label data of other AI virtual characters, it can be determined whether there is a second AI virtual character that matches the core keywords. If so, a dialogue content is generated that echoes the reply content of the first AI virtual character from the perspective of the second AI virtual character. In this way, the group chat process based on AI virtual characters is no longer a dialogue between each virtual character and the user alone, but the virtual character can also "know" the dialogue content of other virtual characters and interact with different virtual characters, so that this multi-person dialogue mode based on AI virtual characters is closer to the real group chat scene and improves the user experience.
[0044] Through the second embodiment of the present application, in the "script chat" mode, the script, the role, and the plot can all adopt a weak binding mode. Regarding the plot, some key plot segments can be set, and some key words can also be set around the key plot segments. After selecting a script, the user can also freely select a virtual character from the character library. In the specific chat process, the next key plot segment can be triggered according to the user's conversation content hitting the key words; if the user's conversation content has not hit the key words, then generate the conversation content guided by the AI virtual character according to the key words, so as to guide the user to say the key words and advance the plot to the next key plot segment. In this way, the user can retain a certain degree of freedom in the dialogue process in the script chat mode, and can also retain the characteristics of the dialogue in the script chat mode during the plot development process, thereby improving the user experience.
[0045] Through Example 3 of the present application, since information on the dimension of exemplary question and answer data is added to the character data of the AI virtual character, this exemplary question and answer data can reflect the expression habits of the AI virtual character in the process of dialogue and communication, for example, whether it has certain catchphrases, etc. Therefore, the AI virtual character can be portrayed fuller, more three-dimensional and vivid. Specifically, in the process of dialogue with the user, the generated dialogue content is also richer, allowing the user to obtain an experience closer to having a conversation with a real person.
[0046] In addition, the specific generated dialogue content is not limited to text content, but can also include multimodal dialogue content such as voice, pictures, and videos. Therefore, the dialogue content is richer and the restoration of the dialogue scene with real people is further improved.
[0047] Of course, any product implementing the present application does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 It is a schematic diagram of the system architecture provided by the embodiment of the present application;
[0050] Figure 2 is a flow chart of the first method provided in an embodiment of the present application;
[0051] Figure 3 is a flow chart of the second method provided in an embodiment of the present application;
[0052] Figure 4 is a flowchart of the third method provided in an embodiment of the present application;
[0053] Figure 5 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0055] In the embodiment of the present application, with the help of the ability of the AI (artificial intelligence) model, various AI virtual characters can be created by organizing and debugging configuration prompt words to provide users with companion objects in their spare time, helping users to interact, talk and record various daily matters of users. Among them, when it is specifically implemented, the above services can be provided by the commodity information service system. In this way, the relevant knowledge base can be introduced into the chat system by combining the mature commodity system and search, recommendation and other capabilities in the commodity information service system, so that when the user needs friends to accompany him, help recommend, etc., the AI virtual character can also help the user to make decisions and analyze. In short, it is expected that through the solution provided by the embodiment of the present application, a companion assistant who understands him, accepts him infinitely, knows what he wants, and can obtain commodities that meet the user's demands can be provided to the user in the commodity information service system, and the listener and companion of the user can be used to bring real emotional value to the user. Of course, in actual applications, the above services can also be provided in other systems, or the service can be provided in the form of independent App (application).
[0056] For details, see Figure 1 , the embodiment of the present application provides a complete set of solutions for AI-based chat dialogues. First of all, regarding the entrance to the chat dialogue service based on AI virtual characters, it can be provided in a variety of ways. For example, if it is an independent App-style service, the user can enter the corresponding service interface after starting the App. If the above-mentioned services are provided in other systems, relevant access entrances can be provided in the system interface, or delivery inside and outside the station can also be carried out, etc. For example, in the case where the above-mentioned services are provided in the commodity information service system, it specifically includes a homepage icon (icon), a "search dome" (for example, by entering keywords such as "AI chat" in the search box on the page to obtain an access entrance), a "my" card, etc. Regarding delivery inside and outside the station, internally, it can exist as a full-link contact, which may appear in the information flow, the product details page, the product comment area, the shopping cart, and each product. Externally, it can run through multiple related apps and be delivered through multiple apps, etc.
[0057] Among them, on pages such as the "My" card, the above-mentioned entrances can exist in a permanent form and are important return visit paths. The "Homepage Icon" can be an entrance added by the user on his own initiative, and the "Search Dome" can be an entrance for users who have product awareness / are attracted to the product. In the case of on-site delivery, the target user selection, location matching (information flow, detail page, comment area, shopping cart), and entrance transmission can be carried out through operational strategies. In the case of off-site delivery, various materials generated in batches can be delivered through advertising to multiple off-site apps to divert off-site traffic, etc.
[0058] In short, users can initiate specific chat requests through the above-mentioned multiple different channels. When initiating requests through different source channels, different greeting methods can be provided through AI according to different needs that users may have. In addition, the specific greeting method can also be different depending on whether the user uses the function for the first time. For example, if a request is initiated from the homepage, it is usually an exploratory function discovery. At this time, if the user is found to be a "newcomer", the greeting method can be "Haha, you found me", and then the newcomer guidance animation can be played, and self-introduction, function introduction, and return visit mechanism can be introduced (the entrance in the homepage may not be permanent, and the user may not be able to find the entrance when opening the homepage next time, so the user can be told where to find the entrance next time, etc.). If the user enters from the "My" card, since the "My" page usually belongs to the user's personal homepage, which is mainly used to display information related to the user, including "My Orders", "My Rights", etc., therefore, if entered from such a personal homepage, the greeting method can be "Welcome Home", etc. In addition, if the user enters from a page such as a product details page, there is a certain probability that the user has some questions about the product, so the content of the greeting can also be related to the product, for example, "Would you like me to explain this product to you?", etc.
[0059] After greeting and introducing functions, the user can also be provided with a variety of optional chat modes, such as single chat, group chat, script chat, etc. After the user selects a chat mode, he can select an AI virtual character and then have a chat conversation with the selected AI virtual character.
[0060] Among them, in the specific implementation, an AI virtual character library can be provided, in which there can be multiple optional AI virtual characters. For example, one of them can be a role preset by the platform, and these roles can be roles created according to preset templates and shared by users. Another type can be a user-defined virtual character. For example, the user can add personality labels, character labels, etc. to a specific virtual character to create a more personalized virtual character, etc. Alternatively, in order to further enrich the virtual character library, the embodiment of the present application can also support users to participate in the production process of AI virtual characters as creators. Specifically, users can register as creators, and the AI virtual characters created by the creators can also be provided to other users for use. According to the user's use of the AI virtual character, a certain commission can also be provided to the creator according to the number of users and the user's evaluation of the virtual character, etc.
[0061] In the embodiment of the present application, in addition to being expressed through a combination of multiple personality labels (mainly including gender, age, occupation, hobbies, etc.), personality labels (for example, gentle, quiet, emotional, good at perceiving others, etc.), in the embodiment of the present application, the specific virtual character can also be expressed through other richer dimensions, so as to portray the image of the specific virtual character more three-dimensionally and fully. Specifically, since the virtual character in the embodiment of the present application is mainly used to communicate with the user, this richer dimension can include exemplary question-and-answer data for reflecting the expression habits of the AI virtual character in dialogue and communication. That is to say, when creating a virtual character, some exemplary questions can be provided. For example, exemplary questions can include "What would you do if your friend cheated on you?", etc. The creator (whether it is the operator of the platform, or a user with the identity of a creator or an ordinary user) can stand in the perspective of the virtual character, in the tone of the virtual character, and make corresponding answers. Through different answer texts, the expression habits of a virtual character in dialogue and communication can also be reflected. Afterwards, this exemplary question-and-answer data can be used as the role data of a fake role and saved in a virtual role library, so that in the process of a conversation between a virtual role and a user, a conversation content that is replied in the tone of the corresponding virtual role is generated. In this way, for different virtual roles that are similar in terms of personality labels, character labels, etc., the differences between different virtual roles can also be reflected according to the differences in their expression habits in the actual conversation and communication process with people. For virtual characters, their images are more three-dimensional and fuller. Virtual characters are no longer divided into certain categories (even if the number of these categories may be relatively large) through a combination of some labels. Instead, different virtual characters can also provide more diverse virtual character images through different expression habits in conversation and communication, so as to better meet the chat needs of users with countless emotions and various personality characteristics.
[0062] Among them, the above exemplary questions may be some questions preset in the system, or they may be some questions customized by the user, and the user may answer them in the tone of the virtual character created by the user to form exemplary question and answer data. Alternatively, the above exemplary questions may be generated by AI generation. For example, in the process of the creator creating the current virtual character, some human character labels or personality labels are first selected, and then some exemplary questions may be generated by AI generation based on these human character labels and personality labels. In other words, for the AI model, some questions may be designed based on these human character labels or personality labels when it is known that a virtual character has certain human character labels or personality labels, and then answered by the creator user. In specific implementation, the AI model may be trained in advance to obtain the ability to generate some questions based on the human character labels or personality labels of different virtual characters, that is, the AI model knows what questions can be asked to virtual characters with different human characters or personalities to show their expression habits in the process of dialogue and communication.
[0063] In addition, the character data of the virtual character may include not only the above-mentioned personality tags, character tags, and exemplary question and answer data expressed in text, but also some image data. Such image data can be used as the avatar of the virtual character, or the background image of the chat window, etc. In specific implementation, such image data can be uploaded by the creator, or, in an embodiment of the present application, it can also be generated by AI to help the creator generate such image character data. For example, after determining the personality tags, character tags, and exemplary question and answer data of a virtual character, an AI model with the ability to generate images based on text can generate an avatar for the corresponding virtual character, or a background image of a chat window, etc.
[0064] After determining the character data of the above-mentioned virtual character, it can be saved in the virtual character library. Later, when a virtual character needs to have a conversation with the user, these character data can be input into the AI model, so that the AI model can generate conversation content in the tone of the virtual character based on these character data, including reply content to the user's conversation content, etc.
[0065] It should be noted here that in the embodiment of the present application, the user can manage roles based on the virtual role library. For example, the user can select certain virtual roles from the virtual role library and add them as his or her friends. The user can also delete friends, set nicknames for friends, and so on.
[0066] When a user needs to have a chat conversation with an AI virtual character, a new chat session can be created. At this time, a specific chat mode can be selected, including single chat, group chat, script chat, etc. Alternatively, a chat can be conducted based on a historically created session. At this time, session search can also be supported. When searching for a session, the user can search by nickname or tag. Fuzzy search can also be supported, for example, based on certain conversation content. After searching for a session, the user can continue to have a chat conversation with the AI virtual character that has been added to the session based on the session.
[0067] Among them, during the chat process, users can input the content of the conversation through text, voice, etc., and the system can provide terminal capabilities such as text input, voice input, and voice recognition. In addition, in terms of terminal capabilities, click input can also be supported, for example, click on the information of a certain product, etc. Furthermore, the function introduction capability can also be provided. This capability is mainly for the situation where an AI chat function is provided based on a certain system. Some functions in the system can be brought into the AI chat process, including various functions on the entire link in the product information service system, etc. For example, an "AI assistant" can be provided through the floating layer of the product details page, and it can be clicked to analyze and compare other products that have been browsed and purchased, or the support capabilities can be exposed to the outside to guide and help users make decisions, such as "I can help you see the evaluation summary of users who have purchased", etc. Alternatively, a "store order-matching assistant" can be provided to help users make the best screening and order-matching for some stores with large coupons, so that they can buy the most suitable and best things at the most favorable prices, etc.
[0068] Whether it is a one-on-one chat, a group chat or a scripted chat, AI can be used to generate conversation content in the voice of a specific virtual character. The data specifically input into the AI model may include the character data of a specific virtual character (including the aforementioned personality labels, character labels, exemplary question and answer data, etc.), and may also include user information, including the user's own character information, etc. Furthermore, it may also include context information generated in the current chat session (in specific implementation, since the length of input information supported by the AI model is usually limited, this context information can be semantically summarized, and the summarized keywords and other information are used as representatives of the context information and input into the AI model).
[0069] In addition, in the embodiments of the present application, the conversation content generated by the specific AI may include multimodal content, that is, the conversation content generated by the specific AI may not be limited to text content, but may also include content in other modalities such as images and voice. In specific implementation, it can be arranged according to the context information of the conversation, and it can be determined which modality is suitable for replying. Accordingly, an AI model with the content generation capability of the corresponding modality can be called to generate content.
[0070] For the same modality of content, there may be multiple different AI models that have the corresponding generation capabilities. In the specific implementation, these AI models can be selected. Alternatively, different AI models can be used to generate the same modality of content, and a feedback mechanism can be provided to optimize and adjust the scores of the corresponding AI models according to the user's satisfaction with the content of the conversation, etc.
[0071] It should be noted that, in specific implementation, in order to support the generation of dialogue content during AI chat, some knowledge bases can also be provided. Such knowledge bases can include some general knowledge bases, plug-in knowledge bases, and proprietary knowledge bases related to specific systems. For example, when the above-mentioned AI chat function is provided in a commodity information service system, a commodity information knowledge base in the commodity information service system can also be provided, etc. The information in these knowledge bases can be provided to the AI model in the form of model support for the generation of dialogue content.
[0072] The above is a detailed introduction to the basic capabilities of AI-based chat (including the source of virtual characters, the specific dimensions from which virtual characters are defined, AI generation of multimodal dialogue content, etc.) provided in the embodiments of the present application. As mentioned above, in the embodiments of the present application, there may also be a variety of different chat modes, including single chat, group chat, script chat, etc. Specifically, after determining the chat mode, the user can select a specific virtual character from the aforementioned virtual character library for a chat dialogue. For example, assuming that the currently selected mode is a single chat mode, that is, a chat dialogue with a single virtual character, at this time, the user can select one of the virtual characters from the virtual character library, and then the system can create a chat session for the user and the virtual character. If it is a group chat mode, multiple virtual characters can be selected to join the group chat session. If it is a script chat, you can select a script and a virtual character, and conduct a dialogue according to the plot set in the script. Among them, for the group chat mode and the script chat mode, in addition to the aforementioned expression of the virtual character in the definition process, multimodal content generation, etc., the embodiments of the present application also provide some other targeted improvements, which are introduced below.
[0073] First, regarding the group chat mode, the so-called group chat, as the name implies, is a chat between multiple people. In the embodiment of the present application, multiple people can include users and multiple AI virtual characters, that is, users can select multiple AI virtual characters to form a group, and each member can speak in the group. Regarding the group chat mode, the inventor of the present application found in the process of implementing the present application that although the prior art can also provide an AI-based group chat mode, there is a problem that in the group chat process, which AI virtual character will reply to the user in each round of conversation is usually randomly determined, so that the content of the AI virtual character's reply is often inconsistent with the context of the conversation content entered by the user. In addition, different AI virtual characters do not know each other's conversation content. Although it is a group chat mode in form, it is actually more like multiple AI virtual characters chatting with users separately in the same session, which makes it difficult to effectively restore the real group chat scene.
[0074] In view of the problems existing in the above group chat scenario, in the embodiment of the present application, during the conversation between one of the virtual characters (which can be called virtual character A) and the user, the conversation content generated by AI with the tone of the virtual character A can be semantically summarized to summarize the semantic keywords and other information included therein. Then, the semantic keywords can be matched with the role data of other virtual characters in the same group chat session (here, mainly the character's personality label, character label and other data can be used). If there are other matching virtual characters (for example, which can be called virtual character B), the conversation content can be generated in which the virtual character B echoes the previous set of reply content of the virtual character A. For example, suppose the user said a sentence in the conversation, and the virtual character A replied (of course, the reply content is generated by AI): "I like to wear shoes of a certain brand when I play basketball." At this time, the virtual character B in the current group chat session happens to have the personality label of "basketball enthusiast", and the conversation content can be generated in which the virtual character B echoes the conversation content of the virtual character A, for example, "Me too", etc. In this way, different virtual characters can know each other's conversation content, so that virtual characters no longer have conversations with users alone, but can also form conversations between virtual characters, making the conversation content richer and closer to a real group chat scene.
[0075] In addition, intelligent arrangement can be implemented for which virtual character will reply to the user's conversation content between different virtual characters, instead of random virtual character selection. Specifically, during a group chat, user intent can be identified based on the conversation content input by the user. After that, each AI virtual character in the current group chat session can be matched with the user intent based on the user intent and the personality label data and / or character label data of each AI virtual character, as well as the contextual information generated during the chat. Then, the target AI virtual character for conversing with the user in the current conversation round can be determined based on the matching results.
[0076] That is to say, in the embodiment of the present application, which AI virtual character will reply to the user can be determined based on context information and the matching result between the virtual character and the user's intention, rather than random selection. For example, in the aforementioned example, suppose that virtual character A was talking to the user before, and virtual character B echoed virtual character A during the conversation. After that, whether virtual character A continues to talk to the user or virtual character B talks to the user instead can be determined by analyzing the intention of the next conversation input by the user and matching it with each virtual character.
[0077] Regarding the script chat mode, the inventor of the present application found in the process of implementing the present application that the existing script chat mode is usually that the platform provides the script, and the intelligent entities (virtual characters) with different personalities are set in the script, so that users can communicate, interact and establish emotional connections with the "intelligent entities" created based on AI technology in real time. However, after the user selects a script, the characters in the script are fixed; and all of its dialogues are based on fixed script settings, and the content of the dialogue is basically limited to the content of the script. Even if the dialogue content entered by the user during the dialogue deviates slightly from the content of the script, the "intelligent entity" will immediately guide the dialogue content to the content of the script. It can be seen that in this way, the script is strongly bound to the role, and the user's dialogue content is relatively limited, and the dialogue is basically carried out completely according to the development of the script story behind the role. Whether it is the chat object or the content of the dialogue, it cannot provide users with a high degree of freedom. In addition, during the dialogue process, the virtual character can only output text content, and cannot output dialogue content of other modes.
[0078] In the embodiment of the present application, on the basis of the aforementioned AI-based chat dialogue capability, further improvements have been made to the script chat mode. Specifically, first of all, the script can also be created in advance to generate a script library, but the script in the embodiment of the present application adopts the KeyPlot (i.e. key frame) mode. In other words, in theory, a script cannot lose frames in the process of telling a story, otherwise the story may be incomplete, and the characters in the script are usually fixed. It is for this reason that the script in the prior art is strongly bound to the characters, and the plot development also needs to be carried out in strict accordance with the settings in the script.
[0079] In the key frame mode of the embodiment of the present application, during the script creation process, weak role setting and weak plot development methods can be adopted, wherein, in terms of roles, only the number of required roles can be set, or the personality tags and character tags of the required roles can be simply configured; in terms of plot, only the central idea of the script and some discrete key plot fragments can be provided. In the process of a user selecting a script for chatting, a script can be selected first, and then virtual characters with corresponding number and corresponding personality tags / character tags can be selected from the virtual character library according to the number of roles, personality tags / character tags set in the script, and added to the current script chat session. In other words, the selection of the script and the selection of the role can be carried out separately, and only the number of roles, personality tags, etc. can be set in the script, and the user can also select which virtual character to play the role in the script from the virtual character library, so as to achieve the degree of freedom in the selection of the chat object. After establishing a script chat session, the user can develop according to the preset direction and plot of the script, or guide the plot development according to the user's autonomous consciousness, and provide an open ending, etc.
[0080] Among them, in order to be able to trigger the next key plot segment more flexibly through more ways, multiple keyword entries can be configured around each key plot segment, and these keyword entries can be used to trigger the corresponding key plot segment. That is to say, during the conversation, if the user's conversation content hits one of the keyword entries, it can directly trigger the corresponding key plot segment, rather than relying entirely on the virtual character to guide the conversation content. Of course, since the user's conversation freedom is relatively high, there may be a situation where the user's conversation content has not hit any keyword entry. Therefore, in the specific implementation, the maximum number of conversation rounds between adjacent key plot segments can also be set, for example, it can be 100 rounds, etc. In this way, if the conversation content input by the user still does not hit the keyword entry when approaching the above-mentioned maximum conversation round, the conversation content guided by the target AI virtual character to the next key plot segment based on the keyword entry can also be generated. In other words, the next key plot segment is triggered by the user himself first. If the user still fails to trigger it himself after many rounds of conversation, the virtual character guides the user to the next key plot segment. In this way, the user can retain a certain degree of conversation freedom during the conversation process, and can also retain the characteristics of conducting conversations during the plot development process in the script chat mode.
[0081] Based on the above, the present application provides a number of specific embodiments from different perspectives, which are introduced below respectively.
[0082] Embodiment 1
[0083] First, this embodiment provides a solution provided in the group chat mode, and provides a group chat interaction method based on artificial intelligence AI virtual characters, see Figure 2 , the method may include:
[0084] S201: In response to a user's request for a multi-person conversation based on an AI virtual character, an optional AI virtual character is provided.
[0085] Among them, AI virtual characters can include the aforementioned AI virtual characters pre-stored in the virtual character library, including virtual characters preset by the platform, user-defined virtual characters, virtual characters created by other creators, etc. Users can choose according to their own needs. In the selection process, the personality label, character label and other information of each virtual character can be displayed, and users can make choices based on this information.
[0086] S202: After at least two AI virtual characters are selected, a multi-person session is created, and the user and the at least two AI virtual characters are added to the multi-person session as session members.
[0087] After selecting an AI virtual character, a corresponding session can be created, and the current user and at least two AI virtual characters selected by the user can be added to a multi-person session (ie, a group chat session) as session members, thereby starting a specific group chat mode.
[0088] S203: During a conversation between the first AI virtual character and the user, semantically summarize the reply content generated by the AI from the perspective of the first AI virtual character to obtain core keywords.
[0089] S204: Based on the personality label data and / or character label data of other AI virtual characters, determine whether there is a second AI virtual character that matches the core keyword; if so, generate dialogue content that echoes the reply content of the first AI virtual character from the perspective of the second AI virtual character; wherein the personality label data includes: label word information for describing the character setting of the AI virtual character.
[0090] Among them, in the above-mentioned multi-person dialogue process, intelligent arrangement can also be performed according to the user's intention and the personality label data, personality label data, etc. of each AI virtual character to determine the AI virtual character used to communicate with the user in each dialogue round. Among them, the specific intelligent arrangement may include: performing intention analysis on the dialogue content input by the user in the current dialogue round, and matching the at least two AI virtual characters with the user's intention respectively according to the intention analysis results, the personality label data and personality label data corresponding to the at least two AI virtual characters, and the context information generated during the chat, and determining the target AI virtual character used to communicate with the user in the current dialogue round according to the matching results.
[0091] Among them, in the embodiment of the present application, the role data associated with a specific AI virtual character may include, in addition to the aforementioned personality label data and personality label data, exemplary question-and-answer data for reflecting the expression habits of the AI virtual character in dialogue and communication. When AI generates a reply content from the perspective of a certain AI virtual character, it can be generated based on the role data of the AI virtual character, the user data of the user, and the semantic summary information of the dialogue context between the AI virtual character and the user. Specifically, a prompt word text (Prompt) for interacting with the AI model can be generated based on the role data of the above-mentioned AI virtual character, the user data of the user, and the semantic summary information of the dialogue context between the AI virtual character and the user. By inputting this prompt word text into the AI model, the AI model generates a dialogue content for dialogue in the tone of the AI virtual character.
[0092] Among them, in the process of users customizing AI virtual characters or users with creator identities creating AI virtual characters, the embodiments of the present application can also assist users in generating character data of AI virtual characters through AI generation. For example, based on the personality label data and / or personality characteristic data of the AI virtual character, multiple exemplary question data for reflecting the expression habits of the AI virtual character in dialogue and communication can be generated through AI generation, so that after the user provides corresponding answer data for the question data, exemplary question and answer data for reflecting the expression habits of the AI virtual character in dialogue and communication are generated, and the exemplary question and answer data are used to generate the reply content when the corresponding AI virtual character replies.
[0093] Alternatively, image-type character data may be generated through AI generation based on the text-type character data of the AI virtual character, wherein the image-type character data includes an avatar and / or a chat background image.
[0094] In addition, during a specific conversation, the reply content generated by the AI virtual character through AI includes multimodal reply content. In this case, before AI generates reply content from the perspective of the AI virtual character, it is also possible to first determine the content type of the reply content to be generated, so as to generate the reply content by calling an AI model with the corresponding type of content generation capability. For example, for the above information in the current chat session, it can be determined which modality of content is more appropriate for replying to the user's current conversation content, for example, text or pictures, etc., and then the reply content is generated by an AI model with corresponding content generation capabilities. Of course, in the process of generating the reply content, the reply content that is replied in the tone of the AI virtual character will be generated in combination with the character data of the specific AI virtual character.
[0095] Through the above-mentioned embodiment 1, in the multi-person dialogue mode based on AI virtual characters, in the process of the first AI virtual character having a dialogue with the user, the reply content generated by AI from the perspective of the first AI virtual character can be semantically summarized to obtain core keywords. Then, it can be determined whether there is a second AI virtual character matching the core keywords based on the personality label data and / or personality label data of other AI virtual characters. If so, a dialogue content is generated to echo the reply content of the first AI virtual character from the perspective of the second AI virtual character. In this way, the multi-person dialogue process based on AI virtual characters is no longer a dialogue between each virtual character and the user alone, but the virtual character can also "know" the dialogue content of other virtual characters and interact with different virtual characters, so that this multi-person dialogue mode based on AI virtual characters is closer to the real group chat scene and improves the user experience.
[0096] In addition, in a preferred embodiment, during the group chat process, intelligent arrangement can be performed based on the user's intention and the persona label data and / or personality label data of each AI virtual character to determine the AI virtual character used to talk to the user in each conversation round. In this way, the AI virtual character used to talk to the user is no longer randomly assigned during the group chat process, so that the context of the group chat process can be more coherent, further improving the user experience.
[0097] Embodiment 2
[0098] This second embodiment is an improvement on the script chat mode of the embodiment of the present application, and provides a script-based interactive method based on artificial intelligence AI virtual characters, see Figure 3 , the method may specifically include:
[0099] S301: In response to a user-initiated request for scripted interaction based on AI virtual characters, a set of optional scripts and a set of optional AI virtual characters are provided, wherein the script is associated with information on the required number of characters so that the user can select a corresponding number of AI virtual characters from the set of AI virtual characters; the script is also associated with a plurality of key plot segments, wherein a plurality of keyword entries are also configured around the key plot segments.
[0100] S302: After the target script and the target AI virtual character are selected, a scripted session is created, and the user and the target AI virtual character are added to the session.
[0101] S303: In the script-like conversation, the plot is advanced to the next key plot segment based on whether the dialogue content input by the user hits the key word entry. If the dialogue content input by the user does not hit the key word entry, a dialogue content is generated to guide the target AI virtual character into the next key plot segment based on the key word entry.
[0102] In specific implementation, there may be a maximum dialogue round limit between adjacent key plot segments. If the dialogue content input by the user still does not hit the key word entry when approaching the maximum dialogue round, dialogue content is generated by the target AI virtual character based on the key word entry to guide the next key plot segment.
[0103] Of course, in this second embodiment, the various basic capabilities mentioned in the first embodiment may also be used, including the expression of the character data of the virtual character through information in more dimensions, the support of the virtual character creation process through AI generation, the AI generation capability of multimodal dialogue content, etc., which will not be described in detail here.
[0104] In short, through the second embodiment of the present application, in the "script chat" mode, the script, the role, and the plot can all adopt a weak binding mode. Regarding the plot, some key plot segments can be set, and some key words can also be set around the key plot segments. After selecting a script, the user can also freely select a virtual character from the character library. In the specific chat process, the next key plot segment can be triggered according to the hit of the key word item by the user's conversation content; if the user's conversation content has not hit the key word item, the conversation content guided by the AI virtual character for the plot is generated according to the key word item, so as to guide the user to say the key word item and advance the plot to the next key plot segment. In this way, the user can retain a certain degree of freedom in the dialogue process in the script chat mode, and can also retain the characteristics of dialogue in the script chat mode during the plot development process, thereby improving the user experience.
[0105] Embodiment 3
[0106] This embodiment 3 mainly provides some basic capabilities provided by the embodiment of the present application for AI-based chat, and provides a conversation interaction method based on artificial intelligence AI virtual characters, see Figure 4 , the method may specifically include:
[0107] S401: In response to a user's request for dialogue interaction based on an AI virtual character, an optional AI virtual character is provided.
[0108] S402: After the AI virtual character is selected, a corresponding session is created, and the user and the AI virtual character are added to the session as session members.
[0109] S403: In the process of conducting a conversation based on the conversation, a prompt text is generated according to the semantic summary information of the conversation context generated in the conversation, the user's information and the role data of the AI virtual character, and the prompt text is input into the AI model so that the AI model can generate a reply content from the perspective of the AI virtual character; wherein the role data of the target AI virtual character includes: personality label data and character label data associated with the target AI virtual character, and exemplary question and answer data for reflecting the expression habits of the AI virtual character in conversation and communication, and the personality label data includes: label word information for describing the character setting of the AI virtual character.
[0110] Among them, in the process of users customizing AI virtual characters or users with creator identities creating AI virtual characters, the embodiments of the present application can also assist users in generating character data of AI virtual characters through AI generation. For example, based on the personality label data and / or personality characteristic data of the AI virtual character, multiple exemplary question data for reflecting the expression habits of the AI virtual character in dialogue and communication can be generated through AI generation, so that after the user provides corresponding answer data for the question data, exemplary question and answer data for reflecting the expression habits of the AI virtual character in dialogue and communication are generated, and the exemplary question and answer data are used to generate the reply content when the corresponding AI virtual character replies.
[0111] In addition, during a specific conversation, the reply content generated by the AI virtual character through AI includes multimodal reply content. In this case, before AI generates reply content from the perspective of the AI virtual character, it is also possible to first determine the content type of the reply content to be generated, so as to generate the reply content by calling an AI model with the corresponding type of content generation capability. For example, for the above information in the current chat session, it can be determined which modality of content is more appropriate for replying to the user's current conversation content, for example, text or pictures, etc., and then the reply content is generated by an AI model with corresponding content generation capabilities. Of course, in the process of generating the reply content, the reply content that is replied in the tone of the AI virtual character will be generated in combination with the character data of the specific AI virtual character.
[0112] Through Example 3 of the present application, since information on the dimension of exemplary question and answer data is added to the character data of the AI virtual character, this exemplary question and answer data can reflect the expression habits of the AI virtual character in the process of dialogue and communication, for example, whether it has certain catchphrases, etc. Therefore, the AI virtual character can be portrayed fuller, more three-dimensional and vivid. Specifically, in the process of dialogue with the user, the generated dialogue content is also richer, allowing the user to obtain an experience closer to having a conversation with a real person.
[0113] In addition, the specific generated dialogue content is not limited to text content, but can also include multimodal dialogue content such as voice, pictures, and videos. Therefore, the dialogue content is richer and the restoration of the dialogue scene with real people is further improved.
[0114] For the parts not described in detail in the above-mentioned embodiments 1 to 3, please refer to the records in other parts of this specification, and no further details will be given here.
[0115] It should be noted that the embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described herein within the scope permitted by applicable laws and regulations, subject to the requirements of applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, etc.).
[0116] Corresponding to the first embodiment, the embodiment of the present application further provides a conversation interaction device based on an artificial intelligence AI virtual character, which may include:
[0117] An optional virtual character providing unit, configured to provide an optional AI virtual character in response to a user's request for a multi-person conversation based on an AI virtual character;
[0118] A multi-person session creation unit, configured to create a multi-person session after at least two AI virtual characters are selected, and add the user and the at least two AI virtual characters as session members to the multi-person session;
[0119] A core keyword acquisition unit, configured to semantically summarize the reply content generated by the AI from the perspective of the first AI virtual character during the conversation between the first AI virtual character and the user, so as to acquire core keywords;
[0120] A dialogue content generating unit is used to determine whether there is a second AI virtual character matching the core keyword based on the personality label data and / or personality label data of other AI virtual characters, and if so, generate dialogue content that echoes the reply content of the first AI virtual character from the perspective of the second AI virtual character; wherein the personality label data includes: label word information used to describe the character setting of the AI virtual character.
[0121] In a specific implementation, the device may further include:
[0122] An intelligent arrangement unit, used to perform intelligent arrangement during a multi-person conversation according to user intentions and the persona label data and / or personality label data of each AI virtual character, so as to determine the AI virtual character used to converse with the user in each conversation round;
[0123] Among them, the intelligent arrangement includes: performing intent analysis on the dialogue content input by the user in the current dialogue round, and matching the at least two AI virtual characters with the user's intent respectively according to the intention analysis result, the personality label data and / or character label data corresponding to the at least two AI virtual characters, and the context information generated during the dialogue process, and determining the target AI virtual character used to communicate with the user in the current dialogue round according to the matching result.
[0124] The character data associated with the AI virtual character includes the character label data and / or personality label data, and exemplary question-and-answer data for reflecting the expression habits of the AI virtual character in dialogue communication;
[0125] When AI generates reply content from the perspective of a certain AI virtual character, it is generated based on the character data of the AI virtual character, the user data of the user, and the semantic summary information of the conversation context between the AI virtual character and the user.
[0126] Specifically, the optional AI virtual characters include AI virtual characters preset in the system, the user-defined AI virtual characters, and / or AI virtual characters created by users with creator identity in the system.
[0127] In addition, the device may also include:
[0128] The character data generation unit is used to assist the user in generating character data of the AI virtual character through AI generation when the user customizes the AI virtual character or the user with the identity of a creator creates the AI virtual character.
[0129] The character data generating unit may be specifically used for:
[0130] Based on the personality label data and / or personality trait data of the AI virtual character, a plurality of exemplary question data for reflecting the expression habits of the AI virtual character in dialogue and communication are generated through AI generation, so that after the user provides corresponding answer data for the question data, exemplary question and answer data for reflecting the expression habits of the AI virtual character in dialogue and communication are generated, and the exemplary question and answer data are used to generate reply content when the corresponding AI virtual character replies.
[0131] Alternatively, the character data generating unit may be specifically used for:
[0132] According to the text-type character data of the AI virtual character, image-type character data is generated through AI generation, and the image-type character data includes an avatar and / or a chat background image.
[0133] Specifically, the reply content generated by the AI virtual character through AI includes multimodal reply content; before AI generates reply content from the perspective of the AI virtual character, the content type of the reply content to be generated is determined so that the reply content can be generated by calling an AI model with the corresponding type of content generation capability.
[0134] Corresponding to the second embodiment, the embodiment of the present application further provides a conversation interaction device based on an artificial intelligence AI virtual character, which may include:
[0135] A request receiving unit, for responding to a user's request for scripted interaction based on an AI virtual character, providing an optional script set and an optional AI virtual character set, wherein the script is associated with required character quantity information, persona tags and / or personality tags, so that the user can select a corresponding AI virtual character from the AI virtual character set; the script is also associated with a plurality of key plot segments, wherein a plurality of keyword entries are also configured around the key plot segments;
[0136] A conversation creation unit, configured to create a scripted conversation after a target script and a target AI virtual character are selected, and add the user and the target AI virtual character to the conversation;
[0137] The dialogue content generating unit is used to advance the plot to the next key plot segment in the script-like conversation according to whether the dialogue content input by the user hits the key words. If the dialogue content input by the user does not hit the key words, the dialogue content is generated so that the target AI virtual character can enter the next key plot segment based on the key words.
[0138] Among them, there is a limit on the maximum number of dialogue turns between adjacent key plot segments. If the dialogue content input by the user still does not hit the key word entry when approaching the maximum dialogue turn, the dialogue content guided by the target AI virtual character into the next key plot segment based on the key word entry is generated.
[0139] Corresponding to the third embodiment, the embodiment of the present application further provides a conversation interaction device based on an artificial intelligence AI virtual character, which may include:
[0140] A request receiving unit, configured to provide an optional AI virtual character in response to a request initiated by a user for dialogue interaction based on an AI virtual character;
[0141] A session creation unit, configured to create a corresponding session after the AI virtual character is selected, and add the user and the AI virtual character to the session as session members;
[0142] A reply content generating unit is used to generate a prompt text according to the semantic summary information of the dialogue context generated in the dialogue, the user's information and the role data of the AI virtual character during a dialogue based on the conversation, and input the prompt text into the AI model so that the AI model can generate a reply content from the perspective of the AI virtual character; wherein the role data of the target AI virtual character includes: personality label data and character label data associated with the target AI virtual character, and exemplary question and answer data for reflecting the expression habits of the AI virtual character in dialogue communication, and the personality label data includes: label word information for describing the character setting of the AI virtual character.
[0143] The reply content generated by the AI virtual character includes multimodal reply content;
[0144] Before the AI generates reply content from the perspective of the AI virtual character, the content type of the reply content to be generated is determined so that the reply content can be generated by calling an AI model with a corresponding type of content generation capability.
[0145] In addition, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the methods in the aforementioned method embodiments are implemented.
[0146] And an electronic device, comprising:
[0147] one or more processors; and
[0148] A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method described in any one of the aforementioned method embodiments.
[0149] A computer program product includes a computer program / computer executable instructions, which, when executed by a processor in an electronic device, implement the steps of the method described in the aforementioned method embodiment.
[0150] in, Figure 5 The architecture of an electronic device is exemplarily shown. For example, device 500 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, an aircraft, etc.
[0151] Reference Figure 5 , device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .
[0152] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the method provided by the technical solution of the present disclosure. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0153] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0154] Power supply component 506 provides power to various components of device 500. Power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 500.
[0155] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0156] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
[0157] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0158] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, and the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0159] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, or a mobile communication network such as 2G, 3G, 4G / LTE, 5G, etc. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0160] In an exemplary embodiment, the device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0161] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the above instructions can be executed by a processor 520 of the device 500 to complete the method provided by the technical solution of the present disclosure. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0162] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0163] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0164] The above is a detailed introduction to the conversation interaction method and electronic device based on artificial intelligence AI virtual character provided by this application. This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application; at the same time, for those of ordinary skill in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this application.
Claims
1. A conversational interaction method based on artificial intelligence (AI) virtual characters, characterized in that: include: In response to a user's request for a multi-person conversation based on an AI virtual character, providing an optional AI virtual character; After at least two AI virtual characters are selected, creating a multi-person session, and adding the user and the at least two AI virtual characters as session members to the multi-person session; During the conversation between the first AI virtual character and the user, semantically summarizing the reply content generated by the AI from the perspective of the first AI virtual character to obtain core keywords; Based on the personality label data and / or character label data of other AI virtual characters, determine whether there is a second AI virtual character that matches the core keyword. If so, generate dialogue content that echoes the reply content of the first AI virtual character from the perspective of the second AI virtual character; wherein the personality label data includes: label word information used to describe the character setting of the AI virtual character.
2. The method according to claim 1, characterized in that Also includes: In the process of multi-person conversation, intelligent arrangement is performed based on the user's intention and the persona label data and / or personality label data of each AI virtual character to determine the AI virtual character used to communicate with the user in each conversation round; Among them, the intelligent arrangement includes: performing intent analysis on the dialogue content input by the user in the current dialogue round, and matching the at least two AI virtual characters with the user's intent respectively according to the intention analysis result, the personality label data and / or character label data corresponding to the at least two AI virtual characters, and the context information generated during the dialogue process, and determining the target AI virtual character used to communicate with the user in the current dialogue round according to the matching result.
3. The method according to claim 1, characterized in that The character data associated with the AI virtual character includes the character label data and / or personality label data, and exemplary question-and-answer data for reflecting the expression habits of the AI virtual character in dialogue communication; When AI generates reply content from the perspective of a certain AI virtual character, it is generated based on the character data of the AI virtual character, the user data of the user, and the semantic summary information of the conversation context between the AI virtual character and the user.
4. The method according to claim 1, characterized in that: The optional AI virtual characters include AI virtual characters preset in the system, AI virtual characters customized by the user, and / or AI virtual characters created by users with creator identity in the system.
5. The method according to claim 4, characterized in that Also includes: When a user customizes an AI virtual character or a user with a creator identity creates an AI virtual character, the user is assisted in generating character data for the AI virtual character through AI generation.
6. The method according to claim 5, characterized in that The method of assisting the user in generating character data of an AI virtual character by AI generation includes: Based on the personality label data and / or personality trait data of the AI virtual character, a plurality of exemplary question data for reflecting the expression habits of the AI virtual character in dialogue and communication are generated through AI generation, so that after the user provides corresponding answer data for the question data, exemplary question and answer data for reflecting the expression habits of the AI virtual character in dialogue and communication are generated, and the exemplary question and answer data are used to generate reply content when the corresponding AI virtual character replies.
7. The method according to claim 5, characterized in that The method of assisting the user in generating character data of an AI virtual character by AI generation includes: According to the text-type character data of the AI virtual character, image-type character data is generated through AI generation, and the image-type character data includes an avatar and / or a chat background image.
8. The method according to claim 1, characterized in that The reply content generated by the AI virtual character includes multimodal reply content; Before the AI generates reply content from the perspective of the AI virtual character, the content type of the reply content to be generated is determined so that the reply content can be generated by calling an AI model with a corresponding type of content generation capability.
9. A conversational interaction method based on artificial intelligence (AI) virtual characters, characterized in that: include: In response to a user's request for scripted interaction based on an AI virtual character, a selectable script set and a selectable AI virtual character set are provided, wherein the script is associated with required character quantity information, character setting labels and / or personality labels, so that the user can select a corresponding AI virtual character from the AI virtual character set; the script is also associated with a plurality of key plot segments, wherein a plurality of key keyword entries are also configured around the key plot segments; After the target script and the target AI virtual character are selected, creating a scripted session and adding the user and the target AI virtual character to the session; In the scripted conversation, the plot is advanced to the next key plot segment based on whether the dialogue content input by the user hits the key words. If the dialogue content input by the user does not hit the key words, dialogue content is generated by the target AI virtual character to lead the next key plot segment based on the key words.
10. The method according to claim 9, characterized in that There is a maximum dialogue round limit between adjacent key plot segments. If the dialogue content input by the user still does not hit the key word entry when approaching the maximum dialogue round, the target AI virtual character will generate dialogue content to guide the next key plot segment based on the key word entry.
11. A conversational interaction method based on artificial intelligence (AI) virtual characters, characterized in that: include: In response to a user's request for a conversational interaction based on an AI virtual character, providing an optional AI virtual character; After the AI virtual character is selected, a corresponding session is created, and the user and the AI virtual character are added to the session as session members; In the process of conducting a conversation based on the session, a prompt text is generated according to the semantic summary information of the conversation context generated in the conversation, the user's information and the role data of the AI virtual character, and the prompt text is input into the AI model so that the AI model can generate a reply content from the perspective of the AI virtual character; wherein the role data of the target AI virtual character includes: personality label data and character label data associated with the target AI virtual character, and exemplary question and answer data for reflecting the expression habits of the AI virtual character in conversation and communication, and the personality label data includes: label word information for describing the character setting of the AI virtual character.
12. The method according to claim 11, characterized in that The reply content generated by the AI virtual character includes multimodal reply content; Before the AI generates reply content from the perspective of the AI virtual character, the content type of the reply content to be generated is determined so that the reply content can be generated by calling an AI model with a corresponding type of content generation capability.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 12 are implemented.
14. An electronic device, characterized in that: include: one or more processors; as well as A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method according to any one of claims 1 to 12.
15. A computer program product comprising a computer program / computer executable instructions, characterized in that: When the computer program / computer executable instructions are executed by a processor in an electronic device, the steps of the method according to any one of claims 1 to 12 are implemented.
Citation Information
Patent Citations
Multi-modal interaction method, device and system based on virtual character, storage medium and terminal
CN112162628A
AI virtual character language library classification management system based on artificial intelligence
CN116737936A
Dialogue generation method and device and electronic equipment
CN117763100A
Base station and data call connection control method performed in the base station, terminal device and control method thereof
KR1020230012317A
System and method for automatically identifying key dialogues in a media
US20230254552A1
Cited By
Multi-role interaction method and device
CN119476348A
Session interaction method and device, electronic equipment and storage medium
CN120162418A
Group chat method and device, electronic equipment and storage medium
CN120429406A
Interaction method and device based on virtual image
CN120526042A
Chat topic guiding method and device, equipment and medium
CN120567820A
