Method, device and electronic device for communicating with virtual characters

By presenting conversation suggestions based on interactive stories, users can interact with virtual characters more interesting and diversely, solving the problem of difficult conversation content promotion in virtual character interactions and improving the sense of participation and complexity of interactive stories.

CN118192868BActive Publication Date: 2024-12-13BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410296425.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-14
Publication Date
2024-12-13
Estimated Expiration
2044-03-14

AI Technical Summary

Technical Problem

When conducting an interactive story with a virtual character, the user may not know how to continue the conversation or the input message is not conducive to the plot progress, resulting in the plot development of the interactive story being blocked. The lack of conversation suggestions leads to the inability to promote the interaction between the user and the virtual character to be properly promoted. .

Method used

Provide a method and device to show a session interface for conversation with a virtual character, respond to a user's session suggestion request, display candidate session suggestions based on virtual characters in an interactive story, based on which the user can determine a target message and send it to the virtual. character, thus promoting the plot.

Benefits of technology

By providing conversation suggestions, it stimulates users' interactive inspiration, reduces users' interaction costs in interactive stories, improves the fun of interactive stories and the diversity of plot development, and helps users better promote the development of plots.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118192868B_ABST
    Figure CN118192868B_ABST
Patent Text Reader

Abstract

The disclosed embodiments provide a method, device, and electronic device for conducting a conversation with a virtual character, the method comprising: displaying a first conversation interface, wherein the first conversation interface is used for conducting a conversation with a first character, and the conversation is associated with a first interactive story; the first character is a virtual character; in response to receiving a conversation suggestion request, displaying candidate conversation suggestions, wherein the candidate conversation suggestions are generated based on story information related to the first character in the first interactive story and / or character information of the first character, and are associated with the story content of the first interactive story; determining a target message based on a user's first preset operation on the candidate conversation suggestion; and sending the target message to the first character. The method realizes displaying candidate conversation suggestions related to the plot to the user according to the user's request, which helps promote the development of the plot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of computer technology, and more particularly to a method, device, and electronic device for conducting a conversation with a virtual character. Background Art

[0002] With the development of artificial intelligence technology, users can interact with chat applications using natural language. Users can enjoy the fun of interacting with chat applications.

[0003] When interacting with a chat application, the machine learning model corresponding to the chat application can generate reply information based on the user's current input. Summary of the invention

[0004] Embodiments of the present disclosure provide a method, device, and electronic device for conducting a conversation with a virtual character.

[0005] In a first aspect, an embodiment of the present disclosure provides an information processing method, comprising: displaying a first conversation interface, wherein the first conversation interface is used for conducting a conversation with a first character, and the conversation is associated with a first interactive story; the first character is a virtual character; in response to receiving a conversation suggestion request, displaying candidate conversation suggestions, wherein the candidate conversation suggestions are generated based on story information related to the first character in the first interactive story and / or character information of the first character, and are associated with story content of the first interactive story; determining a target message based on a first preset operation of a user on the candidate conversation suggestions; and sending the target message to the first character.

[0006] In a second aspect, an embodiment of the present disclosure provides an apparatus for conducting a conversation with a virtual character, comprising: a first display unit, for displaying a first conversation interface, wherein the first conversation interface is used for conducting a conversation with a first character, and the conversation is associated with a first interactive story; the first character is a virtual character; a second display unit, for displaying candidate conversation suggestions in response to receiving a conversation suggestion request, wherein the candidate conversation suggestions are generated based on story information related to the first character in the first interactive story and / or character information of the first character, and are associated with story content of the first interactive story; a first determination unit, for determining a target message based on a first preset operation of a user on the candidate conversation suggestions; and a sending unit, for sending the target message to the first character.

[0007] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0008] The memory stores computer-executable instructions;

[0009] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method described in the first aspect and various possible designs of the first aspect.

[0010] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the method described in the first aspect and various possible designs of the first aspect are implemented.

[0011] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in the first aspect and various possible designs of the first aspect.

[0012] The method, device and electronic device for conducting a conversation with a virtual character provided in this embodiment display a first conversation interface, wherein the first conversation interface is used for conducting a conversation with a first character, and the conversation is associated with a first interactive story; the first character is a virtual character; in response to receiving a conversation suggestion request, a candidate conversation suggestion is displayed, the candidate conversation suggestion is generated based on story information related to the first character in the first interactive story and / or character information of the first character, and is associated with the story content of the first interactive story; a target message is determined based on a first preset operation of the user on the candidate conversation suggestion; and the target message is sent to the first character, thereby displaying conversation suggestions to the user according to the user's request, which helps to inspire the user to interact with the virtual character. The target message generated according to the above conversation suggestion can better promote the development of the plot. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0014] Figure 1 A schematic flow chart of a method for communicating with a virtual character provided by the present invention Figure 1 ;

[0015] Figure 2 This is a schematic diagram of an application scenario;

[0016] Figure 3 A schematic flow chart of a method for communicating with a virtual character provided by the present invention Figure 2 ;

[0017] Figure 4 This is a schematic diagram of an application scenario;

[0018] Figure 5 A schematic flow chart of a method for communicating with a virtual character provided by the present invention Figure 3 ;

[0019] Figure 6 This is a schematic diagram of an application scenario;

[0020] Figure 7 A schematic flow chart of a method for communicating with a virtual character provided by the present invention Figure 4 ;

[0021] Figure 8 This is a schematic diagram of an application scenario;

[0022] Fig. 9 A schematic structural diagram of a device for communicating with a virtual character provided by the present disclosure;

[0023] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0025] Users can interact with artificial intelligence (AI) chatbots (virtual humans) in chat applications. AI chatbots can receive messages input by users and then generate reply messages based on the messages currently input by users; or generate reply messages based on the messages currently input by users.

[0026] In these interaction methods, users use natural language input and the AI ​​chatbot responds. Or some fixed interactive content waiting for user input is displayed in the chat application interface, and the above interactive content can be pre-generated. Users can send these fixed interactive contents to the AI ​​chatbot to trigger the interaction between the user and the chatbot.

[0027] In some application scenarios, users need to have conversations with virtual characters in interactive stories. Interactive stories, also known as interactive stories, are a form of interactive stories. Interactive stories combine traditional linear narratives with the interactivity of modern technology, allowing users to decide the direction and ending of the story. In interactive stories, users can influence the development of the story through their own actions, and different actions may lead to different endings. This interactivity makes users feel more involved, in control, and fun, while also increasing the complexity of the story.

[0028] An interactive story may include one or more virtual characters. In an interactive story, a virtual character may have pre-configured character information and / or plot information. Character information and plot information of different virtual characters and the content of conversations between the user and different virtual characters may be stored. The electronic device providing services for the interactive story may generate relevant knowledge and memory of different virtual characters based on the above information.

[0029] The above-mentioned pre-configured plot information includes a plot summary but does not include specific plot content. Specifically, the plot content may be formed by the interaction between the user and the virtual character, and the plot development may be promoted by the interaction between the user and the virtual character. When the user interacts with the virtual character, the user may have a conversation with the virtual character. For example, the user may send a conversation message to the virtual character, and the virtual character may generate a reply content based on the conversation message input by the user to interact with the user.

[0030] In some application scenarios, users may not know how to continue the conversation, or the messages input by the users are not conducive to the advancement of the plot, resulting in the inability of the conversation content between the users and the virtual characters to normally promote the development of the interactive story.

[0031] In these application scenarios, users need conversation suggestions from a third party, that is, they need interaction inspiration from a third party, in order to realize conversation messages between users and virtual characters in interactive stories, which can better promote the development of the plot.

[0032] The solution provided by the present disclosure displays candidate conversation suggestions to the user according to the user's request when the user is having a conversation with a virtual character in an interactive story, and the user can start a conversation with the virtual character according to the candidate conversation suggestions. Since the above-mentioned candidate conversation suggestions are generated based on story information related to the first character in the first interactive story and / or character information of the first character, and are associated with the story content of the first interactive story, the above-mentioned candidate conversation suggestions are related to the plot of the first character and the first interactive story, and the conversation started with the virtual character according to the above-mentioned candidate conversation suggestions helps to promote the development of the plot.

[0033] Please refer to Figure 1 , Figure 1Schematic flow of the method for conducting a conversation with a virtual character provided by the present disclosure Figure 1 .like Figure 1 As shown, the method comprises the following steps:

[0034] S101: Displaying a first conversation interface, wherein the first conversation interface is used to conduct a conversation with a first character, and the conversation is associated with a first interactive story; the first character is a virtual character.

[0035] In this embodiment, the execution subject of the method for conducting a conversation with a virtual character may be a client or a server.

[0036] The first interactive story here may be any one of the multiple interactive stories. The first character may be a virtual character that appears in the first interactive story. In some application scenarios, the first character may also appear in other interactive stories.

[0037] In an interactive story, a virtual character may have pre-set plot information and / or character information. An interactive story requires the user to interact with the virtual character to advance the story's plot development.

[0038] The first interactive story may be an interactive story including the first character. In some application scenarios, the first interactive story may include one or more virtual characters.

[0039] The conversation between the user and the first character may serve as a script for the plot between the first character and the user in the first interactive story.

[0040] The plot information related to the first character and / or the character information of the first character can be displayed on the first conversation interface to facilitate the user to understand the first character. The above-mentioned plot information related to the first character includes the plot summary (or plot introduction) of the first character in the first interactive story.

[0041] In some application scenarios, the first conversation interface may display historical conversation messages between the user and the first character.

[0042] The conversation message sent by the first character displayed in the first conversation interface may be generated by the first machine learning model. In some application scenarios, the first conversation message of the first character may be preset.

[0043] S102: In response to receiving a conversation suggestion request, displaying candidate conversation suggestions, where the candidate conversation suggestions are generated based on story information related to the first character in the first interactive story and / or character information of the first character, and are associated with story content of the first interactive story.

[0044] The story information related to the first character in the above-mentioned first interactive story includes the title of the first interactive story, the introduction of the first interactive story, the plot summary of the first character in the first interactive story, and the story goals related to the first character.

[0045] The role information of the first role includes role identification, role settings, etc.

[0046] The user may send the conversation suggestion request to the execution subject. After receiving the conversation suggestion request, the execution subject may obtain candidate conversation suggestions in various ways and display the candidate conversation suggestions.

[0047] In some embodiments, the execution entity may generate candidate conversation suggestions based on story information related to the first character in the first interactive story and / or role information of the first character.

[0048] The candidate conversation suggestions may be generated from story information and / or role information related to the first role in the first interactive story.

[0049] In some embodiments, the candidate conversation suggestions may include one or more, and the candidate conversation suggestions are used to promote the plot development related to the first character in the first interactive story, and each candidate conversation suggestion corresponds to a direction for promoting the plot development.

[0050] In these embodiments, based on the user's conversation suggestion request, a candidate conversation suggestion for promoting the development of the plot may be provided to the user, and multiple candidate conversation suggestions for promoting the development of the plot in different directions may also be provided to the user.

[0051] Providing users with multiple candidate suggestions for promoting the plot in different directions, and allowing users to choose from the multiple candidate suggestions, is conducive to achieving diversified development of the plot and improving the interest of the plot.

[0052] As an implementation manner, one or more candidate conversation suggestions may be displayed in the first conversation interface.

[0053] As an implementation manner, the one or more candidate conversation suggestions may be displayed in a pop-up window or a floating window.

[0054] In some embodiments, the candidate conversation suggestion further includes expression information and / or action information, wherein the expression information and / or action information is represented by a combination of preset symbols and text.

[0055] The above-mentioned preset symbol is, for example, a bracket, and the above-mentioned text can be set in the bracket. For example, it can be any text describing the expression information and / or action information, and the above-mentioned expression information and / or action information can be, for example, "(smiled and said)", "(sneered and said)", etc.

[0056] Displaying expression information and / or action information in the candidate conversation suggestions helps to reflect the user's emotional information in the interactive story. In addition, the combination of symbols and text to represent the expression information makes the conversation content on the conversation interface similar to the text of the script, which facilitates the generation of the script from the above conversation content.

[0057] The conversation suggestion request in step S102 may be generated based on a trigger operation performed by the user on a first control displayed in the first conversation interface. The first control is a control for obtaining conversation suggestions.

[0058] For example, the user may perform a triggering operation such as clicking or touching the first control. After receiving the user's click or touch operation on the first control, the execution subject generates a conversation suggestion request.

[0059] S103: Determine a target message based on a first preset operation suggested by the user to the candidate conversation.

[0060] S104: Send a target message to the first character.

[0061] The user may perform a first preset operation on the displayed candidate conversation suggestion, and the execution subject may determine the target message according to the first preset operation.

[0062] In some embodiments, the first preset operation may be a selection operation for the candidate conversation suggestion. In these embodiments, after receiving the first preset operation, the execution subject uses the candidate conversation suggestion indicated by the first preset operation as the target message.

[0063] As an implementation method, the user can perform a click or touch operation on any position of the display area of ​​the candidate conversation suggestion. After receiving the click or touch operation performed by the user on the display area of ​​the candidate conversation suggestion, the above-mentioned execution entity can use the candidate conversation suggestion as the target message.

[0064] In some embodiments, the above step S103 includes the following steps:

[0065] First, displaying a first send control near the candidate conversation suggestion;

[0066] Secondly, according to the operation of the first sending control, the candidate conversation suggestion is used as the target message.

[0067] In these embodiments, according to a trigger operation performed by the user on the candidate conversation suggestion, such as hovering a cursor or a short-time long touch operation, a first send control may be displayed near the candidate conversation suggestion. The user may perform a trigger operation on the first send control, and the candidate conversation suggestion is used as a target message.

[0068] The vicinity of the candidate conversation suggestion includes a display area such as the right side, the upper side, or the lower side of the candidate conversation suggestion.

[0069] In these embodiments, by displaying the first sending control near the candidate conversation suggestion, the user can determine the target message and send the target message by performing a trigger operation on the first sending control, thereby improving the efficiency of sending the target message.

[0070] In some embodiments, the above step S104 includes: sending the target message in voice form or text form.

[0071] In some application scenarios, the current input mode is a text input mode. In these application scenarios, the target message can be sent to the first character in text form.

[0072] In some application scenarios, the current input mode is a voice input mode. In these application scenarios, the target message can be converted into voice, and the target message in voice form is sent to the first role.

[0073] In these optional embodiments, a target message in voice or text form is sent to the first character, and the form of the target message is related to the current input method, so that the carrier form of the target message is consistent with the input method currently set by the user, which conforms to the user's habits.

[0074] In this embodiment, a first conversation interface is displayed, wherein the first conversation interface is used to have a conversation with a first character, and the conversation is associated with a first interactive story; the first character is a virtual character; in response to receiving a conversation suggestion request, a candidate conversation suggestion is displayed, the candidate conversation suggestion is generated based on the story information related to the first character in the first interactive story and / or the character information of the first character, and is associated with the story content of the first interactive story; based on the first preset operation of the user on the candidate conversation suggestion, a target message is determined; and the target message is sent to the first character. Thus, the candidate conversation suggestion is displayed to the user according to the user's conversation suggestion request, which helps to inspire the user's interaction inspiration with the virtual character. Since the candidate conversation suggestion is generated based on the story information related to the first character in the first interactive story and / or the character information of the first character, and is associated with the first interactive story, the plot development can be better promoted by the target message generated according to the above candidate conversation suggestion. The cost of the user interacting with the virtual character in the interactive story can be reduced.

[0075] In some embodiments, the first conversation interface also displays conversation messages sent by the first character; wherein the conversation messages sent by the first character are generated by a first machine learning model based on first input information, and the first machine learning model is used to generate conversation messages for the virtual character; the first input information includes story information related to the first character in the first interactive story, and one or more rounds of conversation messages between the first character and the user; candidate conversation suggestions are generated by a second machine learning model, and the candidate conversation suggestions are generated by the second machine learning model based on second input information, and the second machine learning model is used to generate conversation suggestions for the user; the second input information includes story information related to the first character in the first interactive story, and historical conversation messages between the first character and the user.

[0076] In these embodiments, the first machine learning model and the second machine learning model may be various models that can analyze and process natural language information and generate natural language based on input information.

[0077] The first machine learning model can generate conversation messages for the virtual character to interact with the user. The second machine learning model can generate conversation suggestions for the user, which can promote the plot development of the interactive story.

[0078] The input of the first machine learning model may include story information related to the first character in the first story and one or more rounds of conversation message content between the first character and the user. The first machine learning model may generate conversation messages between the first character and the user based on the above input.

[0079] The input of the second machine learning model includes story information related to the first character in the first interactive story and historical conversation messages between the user and the first character.

[0080] The story information related to the first character in the first interactive story includes, but is not limited to: the title of the first interactive story, the introduction to the first interactive story, the plot summary of the first character in the first interactive story, and the story goal related to the first character.

[0081] The historical conversation messages between the first character and the user may include all or part of the historical conversation messages generated between the user and the first character.

[0082] The second machine learning model can generate conversation suggestions (ie, candidate conversation suggestions) that promote the development of the plot according to the second input information. Different conversation suggestions can correspond to different plot development directions.

[0083] The second machine learning model generates one or more candidate conversation suggestions that promote the development of the plot based on the input information of the first interactive story and the historical conversation messages between the first character and the user. The candidate conversation suggestions do not directly point to the ending of the story. This helps to promote the development of the plot based on the target message generated by the candidate conversation suggestions, without directly providing the user with the content of how to reach the ending of the interactive story, which helps to reduce the cost of the user's interaction with the virtual character in the interactive story and can also improve the fun of the interactive story.

[0084] Please refer to Figure 2 , Figure 2 A schematic diagram of an application scenario is shown in FIG. Figure 2 As shown, background information related to the first character A is displayed in the first conversation interface 21. The background information related to the first character can be, for example, a virtual image of the first character. The first conversation interface can display a plot summary 22 related to the first character in the first interactive story. Figure 2 In the first conversation interface, a first control 23 may be displayed, and the first control is used to obtain conversation suggestions. The user may perform a trigger operation on the first control to display a floating window 24, and the floating window 24 may display candidate conversation suggestions, such as candidate conversation suggestion 1, candidate conversation suggestion 2, and candidate conversation suggestion 3. The user may perform a first preset operation on candidate conversation suggestion 1, and a target message may be generated according to the first preset operation on candidate conversation suggestion 1.

[0085] Please refer to Figure 3 , Figure 3 Schematic flow of the method for conducting a conversation with a virtual character provided by the present disclosure Figure 2 .like Figure 3 As shown, the method comprises the following steps:

[0086] S301: Displaying a first conversation interface, wherein the first conversation interface is used to conduct a conversation with a first character, and the conversation is associated with a first interactive story; the first character is a virtual character.

[0087] S302: In response to receiving request information for obtaining conversation suggestion information, display candidate conversation suggestions, where the candidate conversation suggestions are generated based on story information and / or character information related to the first character in the first interactive story, and are used to promote plot development related to the first character.

[0088] The execution subject of the information processing method in this embodiment can be a client or a server. The specific implementation of the above steps S301 and S302 can refer to Figure 1 The description of steps S101 to S102 in the illustrated embodiment will not be repeated here.

[0089] S303: Receive the editing operation suggested by the user on the candidate conversation.

[0090] The candidate conversation suggestion corresponding to the editing operation here may be a candidate conversation suggestion selected by the user from one or more candidate conversation suggestions.

[0091] The user may perform an edit operation on the candidate conversation suggestion to modify the content of the candidate conversation suggestion. In some embodiments, the user may perform an edit trigger operation on the candidate conversation suggestion, thereby displaying an edit window for the candidate conversation suggestion. The content of the candidate conversation suggestion may be displayed in the edit window. The user may perform an edit operation on the content of the candidate conversation suggestion in the edit window.

[0092] As an illustrative explanation, the user can right-click the display area of ​​the candidate conversation suggestion, or perform a touch operation of a preset duration to display the editing control, and the user can perform a selection operation on the editing control to trigger an editing operation on the candidate conversation suggestion.

[0093] In some application scenarios, when a user's edit trigger operation on a candidate conversation suggestion is received, the candidate conversation suggestion may be displayed in a message input box of the first conversation interface. The user may edit the content of the candidate conversation suggestion in the message input box.

[0094] The editing operations suggested for the candidate conversation include, but are not limited to, deletion, modification, and addition of content.

[0095] In some embodiments, the candidate conversation suggestions displayed in step S302 include editable content. Other content in the candidate conversation suggestions is displayed in a first state, and the editable content is displayed in a second state.

[0096] The first state in which other content is displayed in the candidate conversation suggestion is different from the second state in which editable content is displayed.

[0097] The first state of displaying other contents includes the display style and / or background color of other contents. The second state of displaying editable contents includes the display style and / or background color of editable contents.

[0098] In these embodiments, by using the first state to display other content in the candidate conversation suggestion and using the second state to display editable content, a reference is provided for the user as to which content of the candidate conversation suggestion to edit. In addition, since the display states of other content and editable content in the candidate conversation suggestion are different, it is helpful for the user to quickly identify the editable content in the candidate conversation suggestion, thereby improving the efficiency of the user in editing the candidate conversation suggestion.

[0099] In some embodiments, the above step S303 includes:

[0100] Receives an edit operation performed by a user on editable content in a candidate conversation suggestion.

[0101] In these embodiments, the user can edit the editable content in the candidate conversation suggestions, and the plot of the first interactive story is advanced according to the target message obtained after editing the candidate conversation suggestions, thereby increasing the user's participation in the first interactive story and improving the user experience.

[0102] In some application scenarios, one or more replacement contents may be provided in advance for the editable content. In these application scenarios, in response to receiving a display instruction for displaying replacement contents, a replacement content list is displayed. The user may perform a selection operation on one or more replacement contents in the replacement content list. The target replacement content is determined according to the user's selection operation, and the original editable content is updated using the target replacement content.

[0103] As an implementation, the user may hover the cursor or perform a touch operation of a preset duration on the editable content in the candidate conversation suggestion, thereby displaying the display control. The user may perform a trigger operation on the display control, thereby displaying the list of replacement contents. The user may perform a selection operation on one or more replacement contents in the list of replacement contents. The one or more replacement contents indicated by the user's selection operation are the target replacement contents.

[0104] In some embodiments, the above step S303 includes:

[0105] In response to a user's switching operation on the editable content, generating new editable content corresponding to the editable content;

[0106] Alternatively, in response to a user input operation on the editable content, new editable content is generated.

[0107] In some application scenarios, the user may perform one or more switching operations on the editable content, and each switching operation may generate new editable content corresponding to the editable content. The new editable content may replace the original editable content.

[0108] Illustratively, a switching control may be displayed in the display area of ​​the editable content according to a trigger operation of the user, and the user may perform a trigger operation on the switching control to initiate a switching operation on the editable content, thereby generating a new editable content.

[0109] Illustratively, the user may directly perform a click operation or a touch operation on the display area of ​​the editable content, thereby initiating a switch operation on the editable content, and further generating a new editable content.

[0110] In these application scenarios, generating new editable content through the switching operation performed by the user on the editable content can reduce the user's input operations, reduce the time required for the user to edit the candidate conversation suggestions, and improve the efficiency of the user in editing the candidate conversation suggestions.

[0111] In some application scenarios, the user can directly enter new editable content in the editing window for editing the candidate conversation suggestion or in the input box for displaying the candidate conversation suggestion. The new editable content may include text, symbols, etc. In these application scenarios, new editable content is generated according to the user's input operation, which can increase the complexity of the plot and improve the user's sense of participation.

[0112] S304: Generate a target message according to the edited candidate conversation suggestion.

[0113] After the user performs the above-mentioned editing operation on the candidate conversation suggestion, after the editing operation is completed, a target message is generated according to the edited candidate conversation suggestion.

[0114] For example, the candidate conversation suggestions after the editing operation is completed are directly used as the target message. For another example, the candidate conversation suggestions after the editing operation is completed are adjusted, and then the target message is generated. The above adjustments include the modification of typos, the blocking or replacement of banned words, etc.

[0115] S305: Send a target message to the first role.

[0116] Please refer to Figure 4 , Figure 4 A schematic diagram of an application scenario is shown in FIG. Figure 4 As shown, candidate conversation suggestions may be displayed in the first conversation interface 21 for a conversation between a user and a first character A in a first interactive story. The candidate conversation suggestions are generated according to a conversation suggestion request of the user for obtaining conversation suggestions. The user may perform an editing operation on the candidate conversation suggestions. The candidate conversation suggestions include editable content.

[0117] In an illustrative manner, the content of the candidate conversation suggestion 41 may be "XXX, BBXX". Figure 4 As shown, BB is editable content. Other content in the candidate conversation suggestion is displayed in a first state, and the editable content is displayed in a second state, and the first state is different from the second state. For example, the background color of the editable content "BB" in the candidate conversation suggestion 1 41 is different from the background color of other content in the candidate conversation suggestion 1. The user can perform a trigger operation on the candidate conversation suggestion 1 41, so that the content of the candidate conversation suggestion 1 41 is displayed in the message input box 42, and the user can edit the content of the candidate conversation suggestion 1 in the message input box 42.

[0118] In one implementation, the user can perform a trigger operation on the editable content "BB" to display an editing window, and the user can perform an input operation in the editing window. After the input operation in the editing window is completed, new editable content is generated according to the content input by the user.

[0119] In another implementation, the user can perform a switching operation on the editable content "BB" (for example, click the editable content "BB"), and each switching operation corresponds to a new editable content. The new editable content can replace the original content in the editable content display area.

[0120] In this embodiment, the content of the target message is generated according to the editing operation of the user on the candidate conversation suggestion. While the target message can promote the development of the plot, it can also improve the user's participation in the interactive story.

[0121] Please refer to Figure 5 , Figure 5 Schematic flow of the method for conducting a conversation with a virtual character provided by the present disclosure Figure 3 .like Figure 5 As shown, the method comprises the following steps:

[0122] S501: Displaying a first conversation interface, wherein the first conversation interface is used to conduct a conversation with a first character, and the conversation is associated with a first interactive story; the first character is a virtual character.

[0123] The execution subject of the information processing method in this embodiment can be a client or a server. The specific implementation of the above step S501 can refer to Figure 1 The relevant description of step S101 in the illustrated embodiment is not repeated here.

[0124] S502: In response to receiving a conversation suggestion request, display candidate conversation suggestions, wherein the candidate conversation suggestions are generated based on story information related to the first character in the first interactive story and / or role information of the first character, and are associated with the story content of the first interactive story, wherein one or more candidate conversation suggestions include information of the second character; wherein the second character is a virtual character in the first interactive story, or the second character is a second user.

[0125] In this embodiment, some specific implementations of step S502 can refer to Figure 1 Description of step S102 of the illustrated embodiment.

[0126] In some application scenarios, the second character may be a virtual character in the first interactive story.

[0127] In some application scenarios, the second role may be a real user participating in the first interactive story.

[0128] The information of the second role may include the identifier of the second role, or the name of the second role by the first role, etc. The first role and the second role have a preset association relationship. The preset association relationship may be, for example, any virtual relationship between the first role and the second role, such as a kinship relationship, a teacher-student relationship, a friend relationship, a classmate relationship, an enemy relationship, etc.

[0129] In some application scenarios, other content in the candidate conversation suggestion is displayed in the third state, and the information of the second role is displayed in the fourth state. The third state and the fourth state can be different display states. The display state includes but is not limited to: display style, background color, etc.

[0130] Since the display state of the second character's information in the candidate conversation suggestion is different from the display state of other contents of the candidate conversation suggestion, the user can quickly identify the second character's information, which facilitates the user to determine whether to generate a target message based on the candidate conversation suggestion including the second character's information.

[0131] In some embodiments, the method further includes: in response to receiving a second preset operation performed on the information of the second character, displaying the role information and / or plot information of the second character in the first interactive story.

[0132] In these embodiments, the second preset operation may include, for example, preview operations such as cursor hovering and touching.

[0133] Through the above-mentioned second preset operation, the role information and / or plot information of the second character in the first interactive story can be displayed.

[0134] Illustratively, the role information and / or plot information of the second character in the first interactive story may be displayed in a pop-up window or a floating window in the form of a card.

[0135] The role information and / or plot information of the second character in the first interactive story is displayed in the pop-up window in the form of a card, so that the user can quickly browse the role information and / or plot information of the second character, and return to the above-mentioned first conversation interface from the role information and / or plot information of the second character.

[0136] S503: Determine a target message based on a first preset operation suggested to be performed by the user on the candidate conversation including the information of the second role, wherein the target message includes the information of the second role.

[0137] The user may perform a first preset operation on the candidate conversation suggestion including the information of the second role, thereby obtaining a target message including the information of the second role.

[0138] For the specific implementation of performing the first preset operation on the candidate conversation suggestion, please refer to Figure 1Step S103 of the illustrated embodiment and Figure 3 The steps S303 to S304 are not described in detail here.

[0139] S504: Send a target message to the first role.

[0140] The specific implementation of step S504 can refer to Figure 1 The relevant description of step S104 of the illustrated embodiment is not repeated here.

[0141] The target message sent to the first character includes the information of the second character, so that the plot information between the user and the first character expands the plot development branch related to the second character, which can increase the complexity of the first interactive story plot.

[0142] In some implementations, the method further includes: continuing to display background information related to the first character in the first conversation interface; or, switching the background information in the first conversation interface to background information related to the first character and the second character.

[0143] In the first conversation interface in which the user is conversing with the first character, background information related to the first character may be displayed. The background information may be, for example, a virtual image of the first character. Displaying the background information related to the first character in the first conversation interface allows the user to experience the feeling of having a conversation with a real user.

[0144] As an implementation manner, after detecting that the user has sent a target message including information about the second character to the first character, the execution subject may determine to continue to display background information related to the first character in the first conversation interface according to a preconfigured display rule.

[0145] As another implementation, after detecting that the user has sent a target message including information about the second character to the first character, the execution entity may switch the background information from background information related to the first character to background information related to the first character and the second character according to preconfigured display rules.

[0146] The background information related to the first character and the second character may include, for example, images of the first character and the second character.

[0147] In these implementations, by switching the background information of the first conversation interface to background information related to the first character and the second character, the user can understand that the current plot development is related to the first character and the second character, thereby facilitating the grasp of the direction of the development of the interactive story plot.

[0148] In this embodiment, by displaying the information of the second character in the candidate conversation suggestion, a target message including the information of the second character is generated according to a first preset operation performed by the user on the candidate conversation suggestion including the information of the second character, thereby helping to increase the plot complexity of the interactive story and improve the user experience.

[0149] In some embodiments, the method further comprises the steps of:

[0150] In response to receiving a third preset operation performed on the information of the second character, the first conversation interface is switched to a second conversation interface for conducting a conversation with the second character; wherein the second conversation interface displays background information related to the second character.

[0151] In these embodiments, the third preset operation may include, for example, a selection operation such as clicking or touching. Upon receiving the third preset operation performed by the user on the information of the second role, the execution subject may be regarded as receiving a request to switch the session to the session with the second role. In response to the third preset operation, the execution subject switches the first session interface to the second session interface. The second session interface is used to conduct a session with the second role.

[0152] In order to remind the user that the session has been switched, background information related to the second character may be displayed in the second session interface. The background information related to the second character may include, for example, the image of the second character. In addition, plot information related to the second character may be displayed in the second session interface. The plot information of the second character may be the plot information of the second character in the first interactive story.

[0153] In some embodiments, the second conversation interface may also display historical conversation content between the user and the second character.

[0154] Please refer to Figure 6 , Figure 6 A schematic diagram of an application scenario is shown in FIG. Figure 6 As shown, candidate conversation suggestions may be displayed in the first conversation interface 21 for the conversation between the user and the first character A in the first interactive story. The candidate conversation suggestions are generated according to the conversation suggestion request executed by the user for obtaining conversation suggestions.

[0155] The candidate conversation suggestion may include information about the second role. Schematically, the content of the candidate conversation suggestion 61 may be "discuss this issue with CC". Figure 6 As shown, “CC” is the identifier of the second character in the first interactive story.

[0156] The other contents in the candidate conversation suggestion are displayed in the third state, and the information of the second character is displayed in the fourth state. For example, the background color of the identifier CC of the second character in the candidate conversation suggestion 1 61 is different from the background color of the other contents in the candidate conversation suggestion 1 61. The user can perform a preview operation on the candidate conversation suggestion 1 61, thereby displaying the plot information and / or character information of the second character in the first interactive story. In an illustrative manner, the plot information and / or character information of the second character in the first interactive story can be displayed in a card.

[0157] In some application scenarios, the user may perform a first preset operation on the candidate conversation suggestion 61 to generate a target message including the identifier CC of the second role. The target message may be sent to the first role, so that the target message is displayed in the first conversation interface.

[0158] In some application scenarios, a third preset operation may be performed on the candidate conversation suggestion 61, or the identifier CC of the second character appearing in the target message sent in the first conversation interface, so as to enter the second conversation interface. The second conversation interface may display background information related to the second character, and may also display plot information of the second character in the first interactive story.

[0159] In these embodiments, by entering into a conversation interface with the second character in response to receiving a third preset operation on the displayed information of the second character, the user can quickly switch from the conversation interface with the first character to the conversation interface with the second character, thereby increasing the speed at which the user switches between plots of different characters.

[0160] Please refer to Figure 7 , Figure 7 Schematic flow of the method for conducting a conversation with a virtual character provided by the present disclosure Figure 4 .like Figure 7 As shown, the method comprises the following steps:

[0161] S701: Display a first conversation interface, wherein the first conversation interface is used to conduct a conversation with a first character, and the conversation is associated with a first interactive story; the first character is a virtual character.

[0162] The execution subject of the information processing method in this embodiment can be a client or a server. The specific implementation of the above step S701 can refer to Figure 1 The relevant description of step S101 in the illustrated embodiment is not repeated here.

[0163] S702: In response to receiving a conversation suggestion request, display candidate conversation suggestions, where the candidate conversation suggestions are generated based on story information related to the first character in the first interactive story and / or role information of the first character, and are associated with the story content of the first interactive story, wherein one or more candidate conversation suggestions include information of a second interactive story, and the second interactive story has an association relationship with the first character.

[0164] Among the candidate conversation suggestions generated by the conversation suggestion request, one or more candidate conversation suggestions may include information of the second interaction story.

[0165] The second interactive story and the first character are associated with each other, for example, the first character may be a virtual character in the second interactive story. The first character may have corresponding plot information and / or character information in the second interactive story.

[0166] The information of the second interactive story may include, for example, a title of the second interactive story.

[0167] In some embodiments, other content suggested by the candidate conversation is displayed in a fifth state, and information of the second interaction story is displayed in a sixth state.

[0168] The fifth state and the sixth state refer to the display states of the other contents and the information of the second interactive story, respectively. The fifth state and the sixth state may be different.

[0169] The above display status includes display style and / or background color.

[0170] In some embodiments, the method further includes: in response to receiving a fourth preset operation performed on the information of the second interactive story, displaying preview information of the second interactive story.

[0171] In these embodiments, the fourth preset operation may include, for example, preview operations such as cursor hovering and touching.

[0172] Through the fourth preset operation, the preview information of the second interactive story can be displayed. Schematically, the preview information of the second interactive story can be displayed in a pop-up window or a floating window in the form of a card.

[0173] The preview information of the second interactive story is displayed in the pop-up window in the form of a card, so that the user can browse the preview information of the second interactive story and return to the first conversation interface from the information of the second interactive story.

[0174] S703: Determine a target message based on a first preset operation suggested by the user for the candidate conversation including the information of the second interaction story, where the target message includes the information of the second interaction story.

[0175] The user may perform a first preset operation on the candidate conversation suggestion including the information of the second interactive story, thereby obtaining a target message including the information of the second character.

[0176] For the specific implementation of performing the first preset operation on the candidate conversation suggestion, please refer to Figure 1 Step S103 of the illustrated embodiment and Figure 3 The steps S303 to S304 are not described in detail here.

[0177] S704: Send a target message to the first role.

[0178] The specific implementation of step S704 can refer to Figure 1 The relevant description of step S104 of the illustrated embodiment is not repeated here.

[0179] In this embodiment, by presenting a candidate conversation suggestion that includes information about the second interactive story, a target message is generated and sent according to a first preset operation performed on the candidate conversation suggestion, so that the plot development of the first interactive story is related to the second interactive story, thereby increasing the diversity and interest of the plot development of the first interactive story.

[0180] In some embodiments, the method further includes the following steps: in response to receiving a fifth preset operation performed on information of the second interactive story, switching to a third conversation interface; wherein the third conversation interface is used for a conversation with the first character associated with the second interactive story.

[0181] The fifth preset operation may include, for example, clicking, long pressing, and other operations on the information of the second interactive story.

[0182] The execution subject receives the fifth preset operation on the information of the second interactive story, which can be regarded as the user wanting to switch from the first interactive story to the second interactive story. In response to the fifth preset operation, the execution subject can switch the first conversation interface to a third conversation interface. The third conversation interface is used for the user to have a conversation with the first character in the second interactive story.

[0183] The third conversation interface may include plot information or role information of the first role in the second interactive story, and may also include historical conversation content between the first role and the user in the second interactive story.

[0184] Please refer to Figure 8 , Figure 8 A schematic diagram of an application scenario is shown in FIG. Figure 8 As shown, candidate conversation suggestions may be displayed in the first conversation interface 21 for the conversation between the user and the first character A in the first interactive story. The candidate conversation suggestions are generated according to the conversation suggestion request executed by the user for obtaining conversation suggestions.

[0185] The candidate conversation suggestion may include information about the second interactive story. Schematically, the content of the candidate conversation suggestion 81 may be “XXX, did you have a nightmare?” Figure 8 As shown, nightmare is the identifier of the second interactive story. The background color of the identifier “nightmare” of the second interactive story in the candidate conversation suggestion 1 81 is different from the background color of other contents in the candidate conversation suggestion 1 81 .

[0186] The user can perform a preview operation on "nightmare" in the candidate conversation suggestion 81, so as to display the preview information of the second interactive story. Schematically, the preview information of the second interactive story can be displayed in a card.

[0187] In some application scenarios, the user may perform a first preset operation on the candidate conversation suggestion 81 to generate a target message including information of the second interactive story. The target message may be sent to the first character, so that the target message is displayed in the first conversation interface 21.

[0188] In some application scenarios, a fifth preset operation can be performed on the candidate conversation suggestion 81, or on the information of the second interactive story appearing in the target message sent in the first conversation interface, thereby entering into the third conversation interface, where the third conversation interface is used to conduct a conversation with the first character in the second interactive story.

[0189] In these embodiments, by displaying the third conversation interface through the fifth preset operation performed by the user on the information of the displayed second interactive story, it is possible to quickly switch from the plot of the first interactive story to the plot of the second interactive story, thereby improving the speed at which the user switches between different interactive stories.

[0190] Corresponding to the above Figure 1 The method for conducting a conversation with a virtual character in the illustrated embodiment, Fig. 9 This is a block diagram of the structure of the device for conducting a conversation with a virtual character provided by the embodiment of the present disclosure. For the convenience of explanation, only the part related to the embodiment of the present disclosure is shown. Fig. 9 The device 90 includes: a first display unit 901, a second display unit 902, a first determination unit 903 and a sending unit 904.

[0191] A first display unit 901 is used to display a first conversation interface, wherein the first conversation interface is used to conduct a conversation with a first character, and the conversation is associated with a first interactive story; the first character is a virtual character;

[0192] A second display unit 902 is configured to display candidate conversation suggestions in response to receiving a conversation suggestion request, wherein the candidate conversation suggestions are generated based on story information related to the first character in the first interactive story and / or character information of the first character, and are associated with the story content of the first interactive story;

[0193] A first determining unit 903, configured to determine a target message based on a first preset operation suggested by the user for the candidate conversation;

[0194] The sending unit 904 is used to send a target message to the first role.

[0195] In some embodiments, the candidate conversation suggestions include one or more, wherein each candidate conversation suggestion corresponds to a direction for promoting the development of the plot.

[0196] In some embodiments, the first determining unit 903 is further configured to:

[0197] displaying a first send control adjacent to the candidate conversation suggestion;

[0198] According to the operation of the first sending control, the candidate conversation suggestion is used as the target message.

[0199] In some embodiments, the sending unit 904 is further configured to:

[0200] Send targeted messages in voice or text form.

[0201] In some embodiments, the first determining unit 903 is further configured to:

[0202] receiving a user's suggested editing operation on the candidate conversation;

[0203] A target message is generated according to the edited candidate conversation suggestion.

[0204] In some embodiments, the candidate conversation suggestion includes editable content; other content in the candidate conversation suggestion is displayed in a first state, and the editable content is displayed in a second state.

[0205] In some embodiments, the first determining unit 903 is further configured to:

[0206] In response to a user's switching operation on the editable content, generating new editable content corresponding to the editable content;

[0207] Alternatively, in response to a user input operation on the editable content, new editable content is generated.

[0208] In some embodiments, one or more candidate conversation suggestions include information of a second character; wherein the second character is a virtual character having a preset association relationship with the first character in the first interactive story, or the second character is a second user.

[0209] In some embodiments, other content in the candidate conversation suggestion is displayed in a third state, and information of the second character is displayed in a fourth state.

[0210] In some embodiments, the device 90 further includes a third display unit (not shown in the figure), and the third display unit is used to:

[0211] In response to receiving a second preset operation performed on the information of the second character, the character information and / or plot information of the second character in the first interactive story is displayed.

[0212] In some embodiments, the first determining unit 903 is further configured to:

[0213] Based on a first preset operation suggested to be performed by the user on the candidate conversation including the information of the second role, a target message is determined, where the target message includes the information of the second role.

[0214] In some embodiments, the device 90 further includes a fourth display unit (not shown in the figure), and the fourth display unit is used to continue to display background information related to the first character in the first conversation interface after sending the target message to the first character;

[0215] Alternatively, the background information in the first conversation interface is switched to background information related to the first role and the second role.

[0216] In some embodiments, the device 90 further includes a first switching unit (not shown in the figure), and the first switching unit is used to:

[0217] In response to receiving a third preset operation performed on the information of the second character, the first conversation interface is switched to a second conversation interface for conducting a conversation with the second character; wherein the second conversation interface displays background information related to the second character.

[0218] In some embodiments, the one or more candidate conversation suggestions include information of a second interaction story, where the second interaction story has an association relationship with the first character.

[0219] In some embodiments, other content suggested by the candidate conversation is displayed in a fifth state, and information of the second interaction story is displayed in a sixth state.

[0220] In some embodiments, the first determination unit 903 is further used to: determine a target message including the information of the second interaction story based on a first preset operation suggested by the user to be performed on the candidate conversation including the information of the second interaction story.

[0221] In some embodiments, the device 90 further includes a fifth display unit (not shown in the figure), and the fifth display unit is used to:

[0222] In response to receiving a fourth preset operation performed on the information of the second interactive story, preview information of the second interactive story is displayed.

[0223] In some embodiments, the device 90 further includes a second switching unit (not shown in the figure), and the second switching unit is used to:

[0224] In response to receiving a fifth preset operation performed on the information of the second interactive story, switching to a third conversation interface; wherein the third conversation interface is used for conducting a conversation with the first character associated with the second interactive story.

[0225] In some embodiments, the first conversation interface further displays conversation messages sent by the first character; wherein the conversation messages sent by the first character are generated by a first machine learning model according to first input information, and the first machine learning model is used to generate conversation messages for the virtual character; the first input information includes story information related to the first character in the first interactive story, and one or more rounds of conversation messages between the first character and the user;

[0226] The candidate conversation suggestions are generated by a second machine learning model, which is used to generate conversation suggestions for the user based on second input information; the second input information includes story information related to the first character in the first interactive story and historical conversation messages between the first character and the user.

[0227] In order to implement the above embodiment, the embodiment of the present disclosure also provides an electronic device.

[0228] refer to Fig.10 , which shows a schematic diagram of the structure of an electronic device 1000 suitable for implementing the embodiment of the present disclosure, and the electronic device 1000 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0229] like Fig.10As shown, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 to a random access memory (RAM) 1003. Various programs and data required for the operation of the electronic device 1000 are also stored in the RAM 1003. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0230] Typically, the following devices may be connected to the I / O interface 1005: input devices 1006 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1008 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.10 The electronic device 1000 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0231] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 1009, or installed from a storage device 1008, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0232] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0233] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0234] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0235] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0236] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more computer execution instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0237] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0238] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0239] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0240] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0241] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0242] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for communicating with a virtual character, characterized in that: include: Displaying a first conversation interface, wherein the first conversation interface is used to conduct a conversation with a first character, and the conversation is associated with a first interactive story; the first character is a virtual character; In response to receiving a conversation suggestion request, displaying candidate conversation suggestions, wherein the candidate conversation suggestions are generated based on story information related to the first character in the first interactive story and / or role information of the first character, and are associated with story content of the first interactive story, wherein one or more of the candidate conversation suggestions include information of a second interactive story, and the second interactive story has an association relationship with the first character; Determining a target message based on a first preset operation suggested by the user to the candidate conversation; and Sending the target message to the first role; The determining of the target message based on the first preset operation of the user on the candidate conversation suggestion includes: determining the target message based on the first preset operation performed by the user on the candidate conversation suggestion including the information of the second interaction story; the target message including the information of the second interaction story; In response to receiving a fifth preset operation performed on the information of the second interactive story, switching to a third conversation interface; wherein the third conversation interface is used to conduct a conversation with the first character associated with the second interactive story.

2. The method according to claim 1, characterized in that The candidate conversation suggestions include one or more, wherein each candidate conversation suggestion corresponds to a direction for promoting the development of the plot.

3. The method according to claim 1, characterized in that The determining of the target message based on the first preset operation suggested by the user to the candidate conversation includes: displaying a first send control adjacent to the candidate conversation suggestion; According to the operation of the first sending control, the candidate conversation suggestion is used as the target message.

4. The method according to any one of claims 1 to 3, characterized in that The sending the target message to the first role includes: Send targeted messages in voice or text form.

5. The method according to claim 1, characterized in that The determining of the target message based on the first preset operation suggested by the user to the candidate conversation includes: receiving an editing operation suggested by a user for the candidate conversation; The target message is generated according to the edited candidate conversation suggestion.

6. The method according to claim 5, characterized in that The candidate conversation suggestion includes editable content; other content in the candidate conversation suggestion is displayed in a first state, and the editable content is displayed in a second state.

7. The method according to claim 6, characterized in that The receiving the editing operation suggested by the user on the candidate conversation includes: In response to a switching operation of the user on the editable content, generating new editable content corresponding to the editable content; Alternatively, in response to the user's input operation on the editable content, new editable content is generated.

8. The method according to claim 1, characterized in that One or more candidate conversation suggestions include information about the second role; wherein, The second character is a virtual character in the first interactive story that has a preset association relationship with the first character, or the second character is a second user.

9. The method according to claim 8, characterized in that The method further comprises: In response to receiving a second preset operation performed on the information of the second character, the character information and / or plot information of the second character in the first interactive story is displayed.

10. The method according to claim 8, characterized in that The determining of the target message based on the first preset operation suggested by the user to the candidate conversation includes: Based on a first preset operation performed by the user on a candidate conversation suggestion including information about the second role, a target message is determined, wherein the target message includes information about the second role.

11. The method according to claim 10, characterized in that After sending the target message to the first role, the method further includes: Continuing to display background information related to the first character in the first conversation interface; Alternatively, the background information in the first conversation interface is switched to background information related to the first role and the second role.

12. The method according to any one of claims 8 to 11, characterized in that The method further comprises: In response to receiving a third preset operation performed on the information of the second character, switching the first conversation interface to a second conversation interface for conversation with the second character; Among them, the second conversation interface displays background information related to the second role.

13. The method according to claim 1, characterized in that The method comprises: In response to receiving a fourth preset operation performed on the information of the second interactive story, preview information of the second interactive story is displayed.

14. The method according to claim 1, characterized in that The first conversation interface also displays conversation messages sent by the first character; wherein the conversation messages sent by the first character are generated by a first machine learning model according to first input information, and the first machine learning model is used to generate conversation messages for the virtual character; the first input information includes story information related to the first character in the first interactive story, and one or more rounds of conversation messages between the first character and the user; The candidate conversation suggestions are generated by a second machine learning model, which is used to generate conversation suggestions for users based on second input information. The second machine learning model is used to generate conversation suggestions for users. The second input information includes story information related to the first character in the first interactive story and historical conversation messages between the first character and the user.

15. A device for communicating with a virtual character, comprising: A first display unit is used to display a first conversation interface, wherein the first conversation interface is used to conduct a conversation with a first character, and the conversation is associated with a first interactive story; the first character is a virtual character; A second display unit is configured to display candidate conversation suggestions in response to receiving a conversation suggestion request, wherein the candidate conversation suggestions are generated based on story information related to the first character in the first interactive story and / or role information of the first character, and are associated with the story content of the first interactive story, wherein one or more of the candidate conversation suggestions include information of a second interactive story, and the second interactive story has an association relationship with the first character; A first determining unit, configured to determine a target message based on a first preset operation suggested by a user to the candidate conversation; and A sending unit, configured to send the target message to the first role; The first determining unit is specifically configured to determine a target message based on a first preset operation suggested by a user for a candidate conversation including information about a second interactive story; the target message including information about the second interactive story; The device further includes a second switching unit, wherein the second switching unit is configured to: In response to receiving a fifth preset operation performed on the information of the second interactive story, switching to a third conversation interface; wherein the third conversation interface is used for conducting a conversation with the first character associated with the second interactive story.

16. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 14.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the method according to any one of claims 1 to 14 is implemented.