CN111309886B - Information interaction method and device and computer readable storage medium - Google Patents
Information interaction method and device and computer readable storage medium Download PDFInfo
- Publication number
- CN111309886B CN111309886B CN202010100497.XA CN202010100497A CN111309886B CN 111309886 B CN111309886 B CN 111309886B CN 202010100497 A CN202010100497 A CN 202010100497A CN 111309886 B CN111309886 B CN 111309886B
- Authority
- CN
- China
- Prior art keywords
- message
- user
- role
- conversation
- identification information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000003993 interaction Effects 0.000 title claims abstract description 192
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000004044 response Effects 0.000 claims abstract description 183
- 230000001960 triggered effect Effects 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 12
- 230000036651 mood Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 238000013473 artificial intelligence Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 235000011911 Echinocactus horizonthalonius horizonthalonius Nutrition 0.000 description 1
- 241000883504 Echinocactus texensis Species 0.000 description 1
- 206010020400 Hostility Diseases 0.000 description 1
- 108010001267 Protein Subunits Proteins 0.000 description 1
- 241000270295 Serpentes Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000002996 emotional effect Effects 0.000 description 1
- JEIPFZHSYJVQDO-UHFFFAOYSA-N iron(III) oxide Inorganic materials O=[Fe]O[Fe]=O JEIPFZHSYJVQDO-UHFFFAOYSA-N 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003058 natural language processing Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 210000002268 wool Anatomy 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/332—Query formulation
- G06F16/3329—Natural language query formulation or dialogue systems
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/53—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
- A63F13/533—Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/30—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
- A63F2300/308—Details of the user interface
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Optics & Photonics (AREA)
- Artificial Intelligence (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses an information interaction method, an information interaction device and a computer readable storage medium, wherein the embodiment of the invention can display a message interaction page, the message interaction interface is used for performing message interaction between a virtual object and a user, and the virtual object interacts with the user by using the identification of a target virtual character in a target game; acquiring a dialogue message input by the user in the message interaction interface; and acquiring a response message corresponding to the conversation message according to the role identification information of the target virtual role, the user identification information of the user and the conversation message, and displaying the response message on a message interaction interface. The method can improve the reality and the interest of the conversation, enrich the information and message interaction forms and improve the user experience.
Description
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to an information interaction method, an information interaction device and a computer readable storage medium.
Background
In recent years, a game assistant based on artificial intelligence has appeared, which can make a dialog with a user with the image of a certain virtual character in a game, help the user to know game information such as game settings, game strategies, game information, and provide functions such as game record inquiry and chat. However, at present, the game assistant only replies to the user with the image of the virtual character, actually does not have the personality attribute of the virtual character, replies to the user are all performed based on a set of very fixed reply techniques, and the contents of the reply are monotonous, hard and uninteresting, which results in poor user experience.
Disclosure of Invention
In view of this, embodiments of the present invention provide an information interaction method, an information interaction apparatus, and a computer-readable storage medium, which can improve reality and interest of a conversation and improve user experience.
In a first aspect, an embodiment of the present invention provides an information interaction method, including:
displaying a message interaction page, wherein the message interaction interface is used for performing message interaction between a virtual object and a user, and the virtual object interacts with the user by using the identification of a target virtual character in a target game;
acquiring a dialogue message input by the user in the message interaction interface;
and acquiring a response message corresponding to the conversation message according to the role identification information of the target virtual role, the user identification information of the user and the conversation message input by the user, and displaying the response message on the message interaction interface.
In one embodiment, the method further comprises:
acquiring a task message which is triggered and displayed in the message interaction interface by the virtual object;
and updating the information of the user or the target virtual role according to the triggering operation of the user aiming at the task message.
In a second aspect, an embodiment of the present invention further provides an information interaction apparatus, including:
the display unit is used for displaying a message interaction page, the message interaction interface is used for performing message interaction between a virtual object and a user, and the virtual object interacts with the user by using the identification of a target virtual character in a target game;
the obtaining unit is used for obtaining the dialogue information input by the user in the information interaction interface;
and the dialogue unit is used for acquiring a response message corresponding to the dialogue message according to the role identification information of the target virtual role, the user identification information of the user and the dialogue message input by the user and displaying the response message on the message interaction interface.
In a third aspect, embodiments of the present invention provide a computer-readable storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the information interaction method provided in any embodiment of the present invention.
The embodiment of the invention can display a message interaction page, wherein the message interaction interface is used for performing message interaction between a virtual object and a user, and the virtual object interacts with the user by using the identification of a target virtual character in a target game; acquiring a dialogue message input by the user in the message interaction interface; and acquiring a response message corresponding to the conversation message according to the role identification information of the target virtual role, the user identification information of the user and the conversation message input by the user, and displaying the response message on the message interaction interface. According to different virtual roles and different users, different response information can be acquired, so that the reality and the interestingness of the conversation can be improved, the virtual roles and the users are updated by triggering task messages, the information interaction and message interaction modes between the game assistant and the users are enriched, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of an information interaction method according to an embodiment of the present invention.
Fig. 2a is a schematic flowchart of an information interaction method according to an embodiment of the present invention.
Fig. 2b is another schematic flow chart of the information interaction method according to the embodiment of the present invention.
Fig. 2c is another schematic flow chart of the information interaction method according to the embodiment of the present invention.
Fig. 3a is a schematic structural diagram of an information interaction apparatus according to an embodiment of the present invention.
Fig. 3b is another schematic structural diagram of an information interaction apparatus according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a network device according to an embodiment of the present invention.
Fig. 5a is a schematic diagram of a message interaction interface when a task dialog is performed according to an embodiment of the present invention.
Fig. 5b is a schematic diagram of setting general reply content according to the embodiment of the present invention.
Fig. 5c is a diagram illustrating setting of the content of the role-specific response according to the embodiment of the present invention.
Fig. 5d is a schematic diagram of the function setup of the game aid in the terminal and the server according to the embodiment of the present invention.
Fig. 5e is a schematic diagram of a task triggering condition according to an embodiment of the present invention.
Fig. 5f is a schematic diagram of a reject answer scenario provided by an embodiment of the present invention.
FIG. 5g is a flow diagram of a game aid answering a conversation message according to an embodiment of the present invention.
Fig. 5h is a schematic flowchart of a game assistant answering a dialogue message in a chat scenario according to an embodiment of the present invention.
Fig. 5i is a schematic diagram of a message interaction interface when an enemy character is involved according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below by grouping the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an information interaction method, an information interaction device and a storage medium.
The embodiment of the invention provides an information interaction system, which comprises the information interaction device provided by any embodiment of the invention, wherein the information interaction device can be specifically integrated in network equipment, such as a terminal, and the terminal can be equipment such as a mobile phone, a tablet computer, a notebook computer and intelligent wearable equipment.
The information interaction device of the embodiment of the invention is connected with the game application, or the information interaction device can also be part of the target game application, so that a user is accompanied in a game, the user is helped to know game information such as game setting, game strategy and game information, and functions such as game record inquiry, chat and task triggering are provided. The information interaction of the invention is the information interaction among the game assistant, the game and the user, and comprises the interaction in the form of text messages and the interaction in the form of information in the operation of the user, the game assistant and the game. Thereby enriching the forms of information interaction and message interaction between the game assistant and the user.
The information interaction system may also include other network devices, such as servers, which may be a single server or a cluster of servers.
For example, referring to fig. 1, the information interaction system includes a terminal and a server, and the terminal and the server are linked through a network. The network includes network entities such as routers and gateways.
The terminal can display a message interaction page, the message interaction interface is used for performing message interaction between a virtual object and a user, and the virtual object interacts with the user by using the identification of a target virtual character in a target game; acquiring a dialogue message input by the user in the message interaction interface; and acquiring a response message corresponding to the conversation message according to the role identification information of the target virtual role, the user identification information of the user and the conversation message input by the user, and displaying the response message on the message interaction interface. According to different virtual roles and different users, different response information can be acquired, so that the reality and the interestingness of the conversation can be improved, the virtual roles and the users are updated by triggering task messages, the information interaction and message interaction modes between the game assistant and the users are enriched, and the user experience is improved.
The above example of fig. 1 is only an example of a system architecture for implementing the embodiment of the present invention, and the embodiment of the present invention is not limited to the system architecture shown in fig. 1, and various embodiments of the present invention are proposed based on the system architecture.
The following are detailed below. The numbers in the following examples are not intended to limit the order of preference of the examples.
Referring to fig. 2a, the embodiment will be described from the perspective of an information interaction method, which may be executed by a terminal, or may be executed by both the terminal and a server. Referring to fig. 5d, the game assistant in the terminal is used to display information, and includes a plurality of components for information display, and the server of the game assistant is used to manage the answer and answer logic of information interaction.
101. And displaying a message interaction page, wherein the message interaction interface is used for performing message interaction between a virtual object and a user, and the virtual object interacts with the user by using the identification of a target virtual character in a target game.
The information interaction device of the embodiment of the invention can be connected with a plurality of game application clients through application program interfaces, and the methods for triggering the information interaction mainly comprise two methods: firstly, a message interaction instruction can be obtained according to the triggering operation of a user on a target game application client, a message interaction page of an information interaction device is displayed, and then the user inputs a message to actively initiate message interaction; second, the game assistant may actively send task messages, triggering message interactions, when certain conditions are met.
The target virtual character is a non-player character which is in the target game and is currently in message interaction with the user.
Wherein, one information interaction device can be connected with a plurality of game applications, and the target game is the game which is currently used for information interaction.
In an embodiment, when a user actively initiates a message interaction, the displaying a message interaction page, where the message interaction interface is used for a virtual object to perform message interaction with the user, and the virtual object interacts with the user with an identifier of a target virtual character in a target game, may include the following steps:
receiving a message interaction instruction triggered by a user, and displaying a message interaction page, wherein the message interaction interface comprises a conversation control corresponding to a candidate virtual character in a target game;
and when detecting that the user selects the virtual role of the dialog control, determining that the virtual object interacts with the user by the identifier of the target virtual role selected by the user.
The candidate virtual character is a non-player character which can have a conversation in the target game.
Wherein, the virtual object interacting with the user by the identification of the target virtual character in the target game means: the virtual object is displayed in the form of the identification of the target virtual character in the message interaction interface, wherein the identification of the target virtual character refers to the image and the name of the target virtual character. It is understood that the avatar and name of the target avatar are used by the virtual object as the avatar and name displayed near the transmitted message. This avatar and name may be used to facilitate the user in specifying the identity of the message sender as a game aid and having the characteristics of the target virtual object when talking.
In the message interaction scenario, the game assistant is equivalent to a virtual object, and the virtual object can send messages to users (i.e. real players) with different character identities.
Referring to fig. 5a, a user operation interface of the target game application client is provided with a message interaction control, and when the terminal detects that the user triggers the message interaction control, a message interaction instruction is obtained, and a message interaction page is displayed according to the message interaction instruction. The message interaction control is an instruction interface for performing message interaction, and the instruction interface can be represented in various forms such as an icon, a selection box, an input box, a button and the like. Wherein the icon may represent a generic character and name of a candidate avatar in the target game, for example, referring to fig. 5a, in a swordsman game, the message interaction control may represent a generic character and name of a swordsman.
Wherein the message interaction interface includes an area for displaying a list of dialog controls in the target game in addition to a message display area for displaying messages. Each dialog control corresponds to a candidate avatar. The user clicks on a different dialog control and may select the game assistant to have the dialog with a different virtual character identity. A dialog control is an instruction interface that a user actively converses with a game assistant, and the instruction interface may take many forms such as icons, selection boxes, input boxes, buttons, and the like. To facilitate selection by the user, character identification information, such as avatar and name, of its corresponding avatar may be displayed within the dialog control.
In one embodiment, a user may have a conversation with a game assistant of a plurality of different avatar identities, and when the user clicks on a conversation control in the list, historical conversation messages previously conducted with the target avatar may also be displayed in the message display area. In addition, when a current conversation is performed, virtual characters that have previously performed a conversation with the user may be displayed in the left conversation control list in chronological order of the completion of the conversation. Besides displaying the head portrait and the name of the virtual character, the conversation control can also display the last message sent.
When a user clicks a dialog control corresponding to a target virtual character, a message display area refreshing instruction is triggered, the terminal acquires message display area data according to the message display area refreshing instruction, interface rendering is carried out according to the message display area refreshing data, information such as a head portrait and a name of the target virtual character is filled in a preset position on the message display area, and message display area refreshing corresponding to the target virtual character is obtained.
In one embodiment, when the game assistant actively triggers a message interaction, the displaying a message interaction page may include the steps of:
and when the viewing operation of the user for the task message is detected, displaying the message interaction interface.
102. And acquiring the dialogue information input by the user in the information interaction interface.
The messages displayed in the message interaction interface comprise two kinds of messages, namely dialog messages input by the user aiming at the target virtual character, and task messages triggered and displayed by the game assistant according to the target virtual character.
In an embodiment, referring to fig. 5a, the message display area includes a message input box, and the user clicks the message input box, i.e. an input keyboard is displayed, and based on the editing operation of the user on the input keyboard, the input text is obtained as the dialog message input by the user.
Preferably, the message display area further includes a voice input control, when the user clicks the voice input control, a voice recording interface is displayed, the voice recording interface includes a recording button, and when the user presses the recording button for a long time, the terminal collects a voice signal input by the user, converts the voice signal into an audio file, and uses the audio file as a dialog message input by the user.
When a user inputs voice, a voice recognition technology can be adopted to recognize an audio file to obtain corresponding text content, then a response message corresponding to the text content is obtained according to the role identification information of the target virtual role, the user identification information of the user and the text content, and the response message is displayed on the message interaction interface.
In another embodiment, when the game assistant detects that the current user task state information meets a preset task triggering condition corresponding to a target virtual character, a task message is acquired, when the task message is acquired, a message prompt can be displayed in the game interface to prompt a user of a new message, for example, a message icon corresponding to the target virtual character is displayed, and the user can display the message interactive interface by clicking the message icon, and view the task message in the message interactive interface.
After the game assistant is connected with the target game, the account number of the user in the target game is associated with the account number of the user in the game assistant, and the game assistant is allowed to acquire the state information of the user in the target game, such as the level of the user in the target game, the task execution condition, the property owned in the target game and the like.
Wherein, different components are needed for displaying different forms of messages, such as a text component and a picture component, a container component capable of displaying gifts or required gifts in the task message is also included, and in addition, an option component for displaying options in the task message is also included.
103. And acquiring a response message corresponding to the conversation message according to the role identification information of the target virtual role, the user identification information of the user and the conversation message input by the user, and displaying the response message on the message interaction interface.
The character identification information is information for representing the target virtual character, and may be represented in the form of id of the target virtual character, or name, head portrait, or the like of the target virtual character.
The user identification information is information for characterizing the user, and may be represented as an account of the user in the target game or an account of the user in the game assistant.
The role identification information and the user identification information can be used for inquiring various information of the target virtual role and the user from the server.
In an embodiment, the obtaining, according to the role identification information of the target virtual role, the user identification information, and the dialog message, a response message corresponding to the dialog message may specifically include the following steps:
inquiring response content corresponding to the conversation message from a preset response content set according to the role identification information of the target virtual role, the user identification information and the conversation message;
the role general response content refers to response content applicable to different roles. From FIG. 5c, the response content labeled as "unlimited" by the developer as a virtual character may be presented.
The preset style feature is a feature for expressing the language style of a character, and can be set according to basic setting information in a game, such as the character, the name of the character, the sex, the age, and the experience of the character.
For example, the user's naming mode can be modified according to the style characteristics of the target virtual character, the user's naming mode can be modified according to the gender setting of the user, and the user's naming mode can be modified according to the difference in the user's favorability of the target virtual character. The self-title may also be modified or added according to the gender of the target virtual character.
The response content is modified according to the style characteristics of the character, so that the conversation between the user and the character is more real and interesting. The user's understanding of the style of the character can be further deepened.
In an embodiment, the obtaining a response message corresponding to the dialog message according to the role identification information of the target virtual role, the user identification information, and the dialog message may include the following steps:
determining the role attribute of the target virtual role according to the role identification information and the user identification information;
determining a conversation scene where the current conversation is located according to the role attributes;
and acquiring a response message corresponding to the conversation message according to the conversation scene, the conversation message and the role identification information.
The role attribute is information used for representing the degree of closeness of the relationship between the target virtual role and the user, and the role attribute can be set by the user. For example, the user may set a certain candidate virtual character as the current character, and then other candidate characters are common characters. The role can answer the relevant questions of the game strategy, while the ordinary role can only carry out chatting and task conversation and can not answer the relevant questions of the game strategy. After the user sets the current role, the user account and the id of the current role can be established into role attribute association, and the role attribute association is stored in a server of the game assistant. The game assistant can inquire whether the target virtual character and the user have identity correlation attributes from the server according to the id of the target virtual character and the id of the user.
Wherein the dialog scenario can be used to distinguish between different dialog objects (target avatars) and different dialog purposes.
For example, a conversation scenario may include a first conversation scenario and a second conversation scenario. The first dialogue scenario is used to answer the relevant questions of the game play, such as "how do XX copies? ". The second dialogue scenario may be used to reply to other messaging issues besides game play and task messaging.
Referring to fig. 5a, in order to facilitate the user to determine a question that can be asked and an answer is obtained according to the role attribute, role attribute information, such as "the current role" or "the normal role", may be displayed in the selection control corresponding to the candidate virtual role.
In an embodiment, determining a dialog scenario in which a current dialog is located according to the role attribute may specifically include the following steps:
when the role attribute is consistent with a preset target role attribute, determining that the conversation scene is a first conversation scene;
and when the role attribute is inconsistent with the preset target role attribute, determining that the conversation scene is a second conversation scene.
The target role attribute is the identity set by the user and most closely related to the user. For example, the character attribute of the present designated character is a target character attribute.
In an embodiment, a natural language processing technology may be adopted to perform semantic recognition and intention recognition on the dialog message, so as to obtain query keywords and intention information of the dialog message. And according to the query keyword, the intention content and the role identification information, performing content matching in a response content set corresponding to the conversation scene. The query keywords are some terms most relevant to the meaning of the content of the dialog message, and include key terms directly extracted from the dialog message, association terms of the key terms, and the like.
In one embodiment, the first conversation scenario and the second conversation scenario may be preset in priority, and the conversation scenarios may be identified in order of priority. The first dialog scenario has the highest priority and the second dialog scenario has the lowest priority. This enriches the form of message interaction and thus stimulates the user's conversational interest.
In an embodiment, a developer may preset a response content set corresponding to different dialog scenarios, and label and define response content in the set according to a role name. Referring to fig. 5b, the developer can limit the response content to be specific to a certain virtual character, and can set the response content to be common to all characters. The response content special for a certain virtual character is designed by a developer according to the style characteristics of the virtual character, and the response content general for the character does not have any character style characteristics.
Referring to fig. 5g, when replying to a dialog message input by a user, since a first dialog scenario has a higher priority than a second dialog scenario, a response content corresponding to the dialog message may be queried from a preset response content set according to the following sequence of steps:
when the conversation scene is a first conversation scene, inquiring matched strategy content in a response content set corresponding to the first conversation scene according to the inquiry keyword and the role identification information;
if the query fails, updating the conversation scene into a second conversation scene;
and if the query is successful, acquiring the queried attack content as the queried response content.
Or,
when the conversation scene is a second conversation scene, inquiring chatting content corresponding to the conversation message in a response content set corresponding to the second conversation scene according to the inquiry keyword and the role identification information;
if the query fails, acquiring the general response content as the queried response content;
and if the query is successful, acquiring the queried chatting content as the queried response content.
The general answering content may also be referred to as linguistics, and is an answering content suitable for different dialogue messages and different virtual characters. And when the matched response content cannot be inquired, replying the general response content. For example, "XX does not understand wool! "," you say o ".
In an embodiment, the obtaining, according to the dialog scene, the dialog message, and the role identification information, a response message corresponding to the dialog message includes:
acquiring a current personality attribute parameter of the target virtual character at the current moment according to the character identification information and the conversation message;
inquiring response content corresponding to the conversation message from a preset response content set according to the conversation scene, the conversation message, the role identification information and the current personality attribute parameter;
and acquiring a response message corresponding to the conversation message according to the inquired response content.
The current personality attribute parameter refers to the personality attribute parameter of the target virtual character at the current moment, and the personality attribute parameter refers to a parameter for representing the personality attribute of the target virtual character, and the parameter can be changed due to interaction between a user and the target virtual character. The personality attribute parameters may include presentation forms such as a goodness value, a mood value, a role grade, and the like.
In an embodiment, the obtaining, according to the role identification information and the dialog message, a current personality attribute parameter of the target virtual role at the current time may specifically include the following steps:
acquiring historical personality attribute parameters corresponding to the target virtual role according to the role identification information;
and if the dialogue message is matched with the preset updating condition corresponding to the target virtual role, updating the historical personality attribute parameters according to the matched updating condition to obtain the current personality attribute parameters.
The historical personality attribute parameter is the personality attribute parameter of the target virtual role before the user sends the dialogue message.
In one embodiment, the update condition is considered to be satisfied when the dialog message contains a keyword that matches a preset keyword set.
For example, the developer may set the keyword set in advance according to style characteristics set in the game, such as the character and sex of the target virtual character. For example, for a female character, it may be set that when the dialogue message includes a keyword of a type of "i do not like you", the hedonic degree is reduced by "2", and when the dialogue message includes keywords of "not beautiful", "ugly", and the like, the hedonic degree is reduced by "2".
Preferably, the updating degree can be set according to the matching times of the keywords, for example, when the target virtual character is matched with the keywords such as 'unbleached' and 'ugly' for the first time, the goodness is reduced by '3', and when the target virtual character is matched with the keywords such as 'unbleached' and 'ugly' for the second time, the goodness is reduced by '2'.
In an embodiment, the obtaining a response message corresponding to the dialog message according to the role attribute, the role identification information, and the current personality attribute parameter may specifically include the following steps:
performing semantic recognition on the conversation message to obtain a query keyword of the conversation message;
determining a conversation scene where the current conversation is located according to the role attributes;
and inquiring response content corresponding to the conversation message from a preset response content set according to the conversation scene, the conversation message, the role identification information and the current personality attribute parameter.
In an embodiment, when a developer sets a response content set corresponding to different dialog scenarios, the developer may further set personality attribute parameters to label and define the response content in the set. Referring to fig. 5c, when the developer can limit the response content to be specific to a virtual character and set that the response content can be matched only when the personality attribute parameter reaches a preset value, for example, the response content can be matched when setting the affectability of the virtual character 1 to be more than 50% and the mood value to be more than 60, and the character level is not limited. Of course, the developer can also set the response content to be common to all roles.
For example, in the first dialogue scene, if the goodness of the virtual character 1 is 80% or more, the mood is 60 or more, and the character rank reaches 8, it is possible to reply to the contents of the response that is unique, and to reply to other contents related to the strategy that is being asked, for example, a detailed description of the skill used in the strategy.
For example, in the second dialogue scenario, if the popularity of the virtual character 1 is below 50% or the mood value is below 40, the answer corresponding to the dialogue message will not be answered, but the rejection content corresponding to the virtual character 1, such as rejection content like "i do not feel mood and you chat this now" or "i do not want to tell you" is replied.
According to personality attribute parameters of the role, different response contents can be obtained, so that the role is more consistent with 'real people', and the conversation between the user and the role is more uncertain and surprised.
In an embodiment, the foregoing process may specifically include the following steps:
the querying, according to the dialog scene, the dialog message, the role identification information, and the current personality attribute parameter, response content corresponding to the dialog message from a preset response content set includes:
when the conversation scene is a first conversation scene, inquiring matched strategy content in a response content set corresponding to the first conversation scene according to the conversation message, the role identification information and the current personality attribute parameter;
if the query fails, updating the conversation scene into a second conversation scene;
and if the query is successful, acquiring the queried attack content as the queried response content.
Or,
when the conversation scene is a second conversation scene, inquiring chatting content corresponding to the conversation message in a response content set corresponding to the second conversation scene according to the conversation message, the role identification information and the current personality attribute parameter;
if the query fails, acquiring the general response content as the queried response content;
and if the query is successful, acquiring the queried chatting content as the queried response content.
In another embodiment, referring to FIG. 5f, the developer may also set different mood values or different how responsive to different probabilities of rejecting an answer. After the user inquires the response content meeting the conditions according to the inquiry keyword, the character identification information and the current personality attribute parameter, if the mood value corresponding to the response content is 30-60, the probability is still 70%, the server of the game assistant gives up the response content and reacquires the response content for rejection.
Referring to fig. 5h, in an embodiment, the querying, according to the dialog message, the role identification information, and the current personality attribute parameter, for the chatting content corresponding to the dialog message in the response content set corresponding to the second dialog scenario may further include the following scenarios:
acquiring an enemy virtual character of the target virtual character according to the character identification information;
when the conversation message contains the enemy virtual role, inquiring response content for rejecting response in a response content set corresponding to the second conversation scene according to the role identification information;
and when the query keyword does not contain the enemy virtual character, querying chatting content corresponding to the dialogue message in a response content set corresponding to the second dialogue scene according to the dialogue message, the character identification information and the current personality attribute parameter.
Developers can preset a relationship map of candidate virtual characters in a target game, and determine whether the query keyword contains the enemy virtual character or not according to the relationship map and the character identification information of the target virtual character.
In which, when the dialogue message contains an enemy character, only response contents indicating rejection such as "i may not know his matter" are inquired. Referring to fig. 5i, reject response content of different styles, such as a role 3 reply, "can also be obtained according to the style characteristics of the role. . That devil's head, i may not know ", and character 4 reverts to" pooh, that bad woman playing with her snake, really annoying! "
When the query keyword contains the enemy avatar, 100% refuses to reply to a correct answer.
Referring to fig. 2b, in an embodiment, the information interaction method further includes step 104, which is described in detail as follows:
104. acquiring a task message which is triggered and displayed in the message interaction interface by the virtual object; and updating the information of the user or the target virtual role according to the triggering operation of the user aiming at the task message.
In an embodiment, the obtaining of the task message that is triggered and displayed in the message interaction interface by the virtual object may specifically include the following steps:
acquiring current user task state information of a user at the current moment according to user identification information of the user;
when the current user task state information meets a preset task triggering condition corresponding to the target virtual role, acquiring a task message according to the met task triggering condition;
and the virtual object interacts with the user by using the identifier of the target virtual role and sends the task message to the user in the information interaction interface.
The first aspect is information of the state of the task in the execution target game, including the user level in the game, the number of times of reaching a certain scene, the copy completion condition in the game, the props in the game, and the like, which can be stored in a server of the game. The second aspect is a state of performing a task in the game aid, including the number of times of talking to a certain virtual character in the game aid, the number of times of triggering a task conversation, the case of receiving a gift, and the like, may be stored in the server of the game aid.
In one embodiment, referring to fig. 5e, in addition to the current user task state information, it is also necessary to determine whether to display the task message according to the number and probability of task message triggering. For example, although the current user task state information satisfies the preset task triggering condition, if the task message has been triggered to be displayed for the preset maximum number of times, the task message will not be acquired and displayed. For another example, although the current user task state information satisfies the preset task triggering condition and the number of times of triggering and displaying the task message does not satisfy the preset maximum number of times, the task message still cannot be acquired and displayed with a certain probability.
Different target virtual roles can trigger different task messages, the different task messages correspond to different task triggering conditions, the task messages are determined according to the met task triggering conditions, and the target virtual roles corresponding to the task messages are determined.
The task message enriches the information interaction form between the user and the game assistant, and can improve the interaction interest of the user.
The task of the task dialog generally includes giving away an item and asking for an item, referring to fig. 5a, a task option control can be displayed in the task message, and based on the click operation of the user on the task option control, the interaction based on the task is completed. The task option control is an instruction interface for being triggered by a user to execute tasks in different ways, and can be represented in the forms of buttons, icons, selection frames and the like. In fig. 5a, the task option controls appear as buttons.
The user can change the task state information of the current user or the personality attribute parameters of the target virtual role aiming at the triggering operation of the task. For example, when the user presents a gift to the target virtual character, the goodness or mood value of the target virtual character may be changed, and when the user receives the gift presented by the target virtual character (actually, a kind of prop in the game), the task state information of the user in the game assistant and the target game may be changed.
In an embodiment, the updating information of the user or the target virtual role according to the trigger operation of the user for the task message includes:
when the task message requires giving away an item, updating the task state information of the current user based on the trigger operation of the user for the task message;
and when the task message requires an article, updating the personality attribute parameters of the target virtual role based on the triggering operation of the user for the task message.
In one embodiment, an information update prompt may also be displayed, and referring to fig. 5a, when the user triggers the gift presentation, a prompt message "XX is more emotional, mood +5" is displayed.
In an embodiment, when a task option control is displayed in a task message of a user, a message corresponding to the task option can be automatically acquired, and the message is sent in a message interaction interface by the identity of the user. For example, referring to fig. 5a, when the target virtual character asks for two boxes of rouge, if the user clicks the ok button, a corresponding message is displayed in the interface, which may be specifically "give you two boxes is.
Through the task conversation, the user can have more interaction with the game through the game assistant, and the information interaction form is enriched.
As can be seen from the above, the embodiment of the present invention may display a message interaction page, where the message interaction interface is used for a virtual object to perform message interaction with a user, and the virtual object interacts with the user by using an identifier of a target virtual character in a target game; acquiring a dialogue message input by the user in the message interaction interface; and acquiring a response message corresponding to the conversation message according to the role identification information of the target virtual role, the user identification information of the user and the conversation message input by the user, and displaying the response message on the message interaction interface. According to different virtual roles and different users, different response information can be acquired, so that the reality and the interestingness of the conversation can be improved, and the user experience is improved.
The present embodiment is described by taking an example that the information interaction method is executed by a server, and specifically, the information interaction method is executed by an information interaction device integrated in the server. As shown in fig. 2c, the specific flow of the information interaction method may be as follows:
201. the server acquires the dialogue message input by the user aiming at the target virtual character.
And when the user inputs a conversation message on the terminal interface and clicks and sends the conversation message, sending a conversation request to the server, wherein the conversation request carries the role identification information of the target virtual role, the user identification information of the user and the conversation message. The server can acquire the information carried by the terminal according to the conversation request sent by the terminal.
202. And the server acquires the role attribute and the current personality attribute parameter of the target virtual role.
The server can acquire information such as the role attribute of the target virtual role and the current personality attribute parameter according to the role identification information of the target virtual role and the user identification information of the user.
The process of obtaining is referred to the above embodiments, and is not described again.
203. And the server acquires a response message corresponding to the conversation message according to the role attribute and the current personality attribute parameter.
The server can determine the current dialog scenario according to the role attributes.
Virtual characters can be divided into two types according to character attributes, namely a life virtual character and a common virtual character, and only the life virtual character can answer the relevant problems of game strategy.
1) Each user can have a unique virtual role, and the virtual roles of the users can be different;
2) And each user can own a plurality of common virtual roles.
Chatting scenes:
the method includes designing a conversational answer that conforms to a character style characteristic, and relates to the design of a refusal scenario in a chat conversation. Where a utterance may be understood as a template of an utterance set by a developer.
When certain conditions are met (such as hostility relationship and personality attribute parameters), the target virtual character refuses to reply.
Developers can set and manage a response content set in the game based on the virtual characters and the personality attribute parameters, and corresponding modification needs to be carried out on the management platform:
1) The same problem is that different target virtual characters need to be set with the reply style dialogs according with the style characteristics of the characters.
2) The method comprises the steps of adding a target virtual role label on a management platform, setting a personality attribute parameter label after the target virtual role label is set, and setting different answers as response contents according to different personality parameter parameters.
The process of setting the response content refers to the above embodiment, and is not described again.
204. And the server acquires the task message according to the task state information of the current user.
When the preset task triggering condition is met, triggering a game assistant dialog: a conversation is actively initiated by the game assistant with the target virtual character. Task trigger conditions generally include two types:
1) The method comprises the steps of meeting task triggering conditions in a game, setting the triggering conditions according to properties, scenes, tasks and the like in the game, and triggering task conversation when a user refines a specific property to reach 10 levels.
2) And meeting the task triggering conditions in the game assistant, such as triggering after the conversation is completed for 10 times.
Different target virtual roles can trigger different task messages, the different task messages correspond to different task trigger conditions, the task messages are obtained according to the met task trigger conditions, and the target virtual roles corresponding to the task messages are determined. And sending the task message and the identification information of the target virtual role to the terminal. The game assistant is caused to display a task message to the user in the terminal interface with the target virtual character.
205. And the server updates the task state information of the current user or the personality attribute parameter of the target virtual role based on the triggering operation of the user aiming at the task message.
The task interaction scenario involves more game interactions with the user than the walk-through question-answer scenario and the chat scenario. The following two types of interactions are mainly involved in general:
1) Giving goods
2) Object for asking for
After the task is completed, the game assistant and the relevant numerical system in the game are changed. For specific changes, refer to the above embodiments, and are not described in detail.
As can be seen from the above, the embodiment of the present invention may display a message interaction page, where the message interaction interface is used for performing message interaction between a virtual object and a user, and the virtual object interacts with the user by using an identifier of a target virtual character in a target game; acquiring a dialogue message input by the user in the message interaction interface; and acquiring a response message corresponding to the conversation message according to the role identification information of the target virtual role, the user identification information of the user and the conversation message input by the user, and displaying the response message on the message interaction interface. According to different virtual roles and different users, different response information can be acquired, so that the reality and the interestingness of the conversation can be improved, and the user experience is improved.
In order to better implement the above method, correspondingly, an embodiment of the present invention further provides an information interaction apparatus, which may be integrated in a play terminal, and referring to fig. 3a, the information interaction apparatus may include a display unit 301, an obtaining unit 302, and a dialog unit 303, as follows:
(1) The display unit 301 is configured to display a message interaction page, where the message interaction interface is used for performing message interaction between a virtual object and a user, and the virtual object interacts with the user according to an identifier of a target virtual character in a target game.
In an embodiment, the display unit 301 may be specifically configured to: receiving a message interaction instruction triggered by a user, and displaying a message interaction page, wherein the message interaction interface comprises a conversation control corresponding to a candidate virtual character in a target game; and when detecting that the user selects the virtual role of the dialog control, determining that the virtual object interacts with the user by using the identifier of the target virtual role selected by the user.
(2) An obtaining unit 302, configured to obtain a dialog message input by the user in the message interaction interface.
(3) A dialog unit 303, configured to obtain a response message corresponding to the dialog message according to the role identification information of the target virtual role, the user identification information of the user, and the dialog message input by the user, and display the response message on the message interaction interface.
A. In one embodiment, the dialog unit 303 includes a response content acquisition sub-unit and a response content adjustment sub-unit, as follows:
a response content obtaining subunit, configured to query, according to the role identification information of the target virtual role, the user identification information, and the session message, response content corresponding to the session message from a preset response content set;
the response content adjusting subunit is configured to, when the inquired response content is a role general response content, adjust the response content according to a preset style characteristic of the target virtual role to obtain a response message corresponding to the conversation message; and when the inquired response content is the role-specific response content corresponding to the target virtual role, taking the inquired response content as a response message corresponding to the conversation message.
B. In one embodiment, the dialog unit 303 further includes a role attribute determination subunit, a personality attribute determination subunit, and a response subunit, as follows:
a role attribute determining subunit, configured to determine a role attribute of the target virtual role according to the role identification information and the user identification information;
a scene determining subunit, configured to determine, according to the role attribute, a dialog scene in which the current dialog is located
And the response subunit is used for acquiring a response message corresponding to the conversation message according to the conversation scene, the conversation message and the role identification information.
The scene determination subunit may be specifically configured to:
when the role attribute is consistent with a preset target role attribute, determining that the conversation scene is a first conversation scene;
and when the role attribute is inconsistent with the preset target role attribute, determining that the conversation scene is a second conversation scene.
The response subunit may specifically include a personality attribute determination subunit, an inquiry subunit, and a message generation subunit, as follows:
a personality attribute determining subunit, configured to obtain, according to the role identification information and the dialog message, a current personality attribute parameter of the target virtual role at the current time;
the query subunit is configured to query, according to the dialog scene, the dialog message, the role identification information, and the current personality attribute parameter, response content corresponding to the dialog message from a preset response content set;
and the response content adjusting subunit is used for acquiring the response message corresponding to the conversation message according to the inquired response content.
The personality attribute determination subunit may be specifically configured to:
acquiring historical personality attribute parameters corresponding to the target virtual role according to the role identification information;
and if the dialogue message is matched with the preset updating condition corresponding to the target virtual role, updating the historical personality attribute parameters according to the matched updating condition to obtain the current personality attribute parameters.
The query subunit may be specifically configured to:
when the conversation scene is a first conversation scene, inquiring matched strategy content in a response content set corresponding to the first conversation scene according to the conversation message, the role identification information and the current personality attribute parameter;
if the query fails, updating the conversation scene into a second conversation scene;
and if the query is successful, acquiring the queried attack content as the queried response content.
Or,
when the conversation scene is a second conversation scene, inquiring chatting content corresponding to the conversation message in a response content set corresponding to the second conversation scene according to the conversation message, the role identification information and the current personality attribute parameter;
if the query fails, acquiring the general response content as the queried response content;
and if the query is successful, acquiring the queried chatting content as the queried response content.
According to the query keyword, the role identification information and the current personality attribute parameter, the chat content corresponding to the conversation message is queried in the response content set corresponding to the second conversation scenario, and the following scenarios can also be included:
acquiring an enemy virtual character of the target virtual character according to the character identification information;
when the conversation message contains the enemy virtual character, inquiring response content for refusing response in a response content set corresponding to the second conversation scene according to the character identification information;
and when the query keyword does not contain the enemy virtual role, querying chatting content corresponding to the conversation message in a response content set corresponding to the second conversation scene according to the conversation message, the role identification information and the current personality attribute parameter.
C. In another embodiment, the dialog unit 303 may specifically include a role attribute determining subunit, a scene determining subunit, an identifying subunit, a querying subunit, and a message generating subunit, as follows:
a role attribute determining subunit, configured to determine a role attribute of the target virtual role according to the role identification information and the user identification information;
a scene determining subunit, configured to determine, according to the role attribute, a dialog scene in which the current dialog is located;
the recognition subunit is used for carrying out semantic recognition on the dialogue message to obtain a query keyword of the dialogue message;
the query subunit is configured to query, according to the conversation scene, the conversation message, and the role identification information, response content corresponding to the conversation message from a preset response content set;
and the response content adjusting subunit is used for acquiring the response message corresponding to the conversation message according to the inquired response content.
Wherein the personality attribute determining subunit may be specifically configured to:
acquiring historical personality attribute parameters corresponding to the target virtual role according to the role identification information;
and if the dialogue message is matched with the preset updating condition corresponding to the target virtual role, updating the historical personality attribute parameters according to the matched updating condition to obtain the current personality attribute parameters.
The scene determination subunit may be specifically configured to:
when the role attribute is consistent with a preset target role attribute, determining that the conversation scene is a first conversation scene;
and when the role attribute is inconsistent with the preset target role attribute, determining that the conversation scene is a second conversation scene.
The query subunit may be specifically configured to:
when the conversation scene is a first conversation scene, inquiring matched strategy content in a response content set corresponding to the first conversation scene according to the inquiry keyword and the role identification information;
if the query fails, updating the conversation scene into a second conversation scene;
and if the query is successful, acquiring the queried attack content as the queried response content.
Or,
when the conversation scene is a second conversation scene, inquiring chatting content corresponding to the conversation message in a response content set corresponding to the second conversation scene according to the inquiry keyword and the role identification information;
if the query fails, acquiring the general response content as the queried response content;
and if the query is successful, acquiring the queried chatting content as the queried response content.
In an embodiment, referring to fig. 3b, the information interaction apparatus further includes a task unit 304, configured to acquire a task message that the virtual object triggers to be displayed in the message interaction interface; and updating the information of the user or the target virtual role according to the triggering operation of the user aiming at the task message.
In an embodiment, the task unit 304 may specifically include a task message acquiring subunit and an information updating subunit, as follows:
a task message obtaining subunit, configured to:
acquiring current user task state information of a user at the current moment according to user identification information of the user;
when the current user task state information meets a preset task triggering condition corresponding to the target virtual role, acquiring a task message according to the met task triggering condition;
and the virtual object interacts with the user by using the identifier of the target virtual role and sends the task message to the user in the information interaction interface.
An information update subunit to:
when the task message requires presenting an item, updating the task state information of the current user based on the triggering operation of the user for the task message;
and when the task message requires an article, updating the personality attribute parameters of the target virtual role based on the triggering operation of the user aiming at the task message.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the embodiment of the present invention may display a message interaction page, where the message interaction interface is used for a virtual object to perform message interaction with a user, and the virtual object interacts with the user by using an identifier of a target virtual character in a target game; acquiring a dialogue message input by the user in the message interaction interface; and acquiring a response message corresponding to the conversation message according to the role identification information of the target virtual role, the user identification information of the user and the conversation message input by the user, and displaying the response message on the message interaction interface. According to different virtual roles and different users, different response information can be acquired, so that the reality and the interestingness of the conversation can be improved, and the user experience is improved.
In addition, an embodiment of the present invention further provides a computer device, where the computer device is generally a server, and as shown in fig. 4, a schematic structural diagram of the computer device according to the embodiment of the present invention is shown, specifically:
the computer device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, radio Frequency (RF) circuitry 403, a power supply 404, and an input unit 405. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 4 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, performs various functions of the computer device and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the computer device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402.
The RF circuit 403 may be used for receiving and transmitting signals during information transmission and reception, and in particular, for receiving downlink information of a base station and then processing the received downlink information by the one or more processors 401; in addition, data relating to uplink is transmitted to the base station.
The computer device also includes a power supply 404 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 401 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 404 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The computer device may further include an input unit 405, and the input unit 405 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
The computer device may also include a display unit that may be used to display information input by or provided to the user as well as various graphical user interfaces of the computer device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Specifically, in this embodiment, the processor 401 in the computer device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions as follows:
displaying a message interaction page, wherein the message interaction interface is used for performing message interaction between a virtual object and a user, and the virtual object interacts with the user by using the identification of a target virtual character in a target game;
acquiring a dialogue message input by the user in the message interaction interface;
and acquiring a response message corresponding to the conversation message according to the role identification information of the target virtual role, the user identification information of the user and the conversation message input by the user, and displaying the response message on the message interaction interface.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present invention further provides a storage medium, where a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the information interaction methods provided by the embodiments of the present invention.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions or the computer programs stored in the storage medium can execute the steps in any information interaction method provided by the embodiment of the present invention, the beneficial effects that can be achieved by any information interaction method provided by the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above detailed description is provided for an information interaction method, apparatus and storage medium according to the embodiments of the present invention, and the specific examples are applied herein to explain the principles and implementations of the present invention, and the descriptions of the above embodiments are only used to help understand the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (12)
1. An information interaction method, comprising:
displaying a message interaction page, wherein the message interaction interface is used for performing message interaction between a virtual object and a user, and the virtual object interacts with the user by using the identification of a target virtual character in a target game;
acquiring a dialogue message input by the user in the message interaction interface;
acquiring a response message corresponding to the conversation message according to the role identification information of the target virtual role, the user identification information of the user and the conversation message input by the user, and displaying the response message on the message interaction interface; the obtaining a response message corresponding to the dialog message according to the role identification information of the target virtual role, the user identification information of the user and the dialog message input by the user includes: determining the role attribute of the target virtual role according to the role identification information; determining a conversation scene where the current conversation is located according to the role attributes; acquiring a current personality attribute parameter of the target virtual character at the current moment according to the character identification information and the conversation message; inquiring response content corresponding to the conversation message from a preset response content set according to the conversation scene, the conversation message, the role identification information and the current personality attribute parameter; acquiring a response message corresponding to the conversation message according to the inquired response content; wherein, the querying response content corresponding to the dialog message from a preset response content set according to the dialog scene, the dialog message, the role identification information and the current personality attribute parameter includes: when the conversation scene is a first conversation scene, inquiring matched strategy content in a response content set corresponding to the first conversation scene according to the conversation message, the role identification information and the current personality attribute parameter; if the query fails, updating the conversation scene into a second conversation scene; and if the query is successful, acquiring the queried attack content as the queried response content.
2. The information interaction method of claim 1, wherein the determining a dialog scenario in which the current dialog is located according to the character attributes comprises:
when the role attribute is consistent with a preset target role attribute, determining that the conversation scene is a first conversation scene;
and when the role attribute is inconsistent with the preset target role attribute, determining that the conversation scene is a second conversation scene.
3. The information interaction method of claim 1, wherein the obtaining of the current personality attribute parameter of the target virtual character at the current time according to the character identification information and the session message comprises:
acquiring historical personality attribute parameters corresponding to the target virtual role according to the role identification information;
and if the dialogue message is matched with the preset updating condition corresponding to the target virtual role, updating the historical personality attribute parameters according to the matched updating condition to obtain the current personality attribute parameters.
4. The information interaction method according to claim 1, wherein the querying response content corresponding to the dialog message from a preset response content set according to the dialog scene, the dialog message, the character identification information, and the current personality attribute parameter further comprises:
when the conversation scene is a second conversation scene, inquiring chatting content corresponding to the conversation message in a response content set corresponding to the second conversation scene according to the conversation message, the role identification information and the current personality attribute parameter;
if the query fails, acquiring the general response content as the queried response content;
and if the query is successful, acquiring the queried chatting content as the queried response content.
5. The information interaction method of claim 4, wherein according to the dialog message, the role identification information and the current personality attribute parameter, a chatting content corresponding to the dialog message is queried in a response content set corresponding to the second dialog scenario, and further comprising:
acquiring an enemy virtual character of the target virtual character according to the character identification information;
and when the conversation message contains the enemy virtual role, inquiring response content for rejecting response in a response content set corresponding to the second conversation scene according to the role identification information.
6. The information interaction method of claim 1, wherein the obtaining of the response message corresponding to the dialog message according to the character identification information of the target virtual character, the user identification information, and the dialog message comprises:
inquiring response content corresponding to the conversation message from a preset response content set according to the role identification information of the target virtual role, the user identification information and the conversation message;
when the inquired response content is the role general response content, adjusting the response content according to the preset style characteristics of the target virtual role to obtain a response message corresponding to the conversation message;
and when the inquired response content is the role-specific response content corresponding to the target virtual role, taking the inquired response content as a response message corresponding to the conversation message.
7. The information interaction method of claim 1, wherein the displaying a message interaction page, the message interaction interface is used for a virtual object to perform message interaction with a user, and the virtual object interacts with the user with an identification of a target virtual character in a target game, and comprises:
receiving a message interaction instruction triggered by a user, and displaying a message interaction page, wherein the message interaction interface comprises a conversation control corresponding to a candidate virtual character in a target game;
and when the virtual role selection operation of the user for the dialog control is detected, determining that the virtual object interacts with the user by the identification of the target virtual role selected by the user.
8. The information interaction method of claim 1, further comprising:
acquiring a task message triggered and displayed in the message interaction interface by the virtual object;
and updating the information of the user or the target virtual role according to the triggering operation of the user aiming at the task message.
9. The information interaction method of claim 8, wherein the obtaining the virtual object triggers a task message displayed in the message interaction interface, comprising:
acquiring current user task state information of a user at the current moment according to user identification information of the user;
when the current user task state information meets a preset task triggering condition corresponding to the target virtual role, acquiring a task message according to the met task triggering condition;
and the virtual object interacts with the user by using the identifier of the target virtual role and sends the task message to the user in the information interaction interface.
10. The information interaction method of claim 8, wherein the updating information of the user or the target virtual character according to the trigger operation of the user for the task message comprises:
when the task message requires giving away an item, updating the task state information of the current user based on the trigger operation of the user for the task message;
and when the task message requires an article, updating the current personality attribute parameter of the target virtual role based on the triggering operation of the user aiming at the task message.
11. An information interaction apparatus, comprising:
the display unit is used for displaying a message interaction page, the message interaction interface is used for performing message interaction between a virtual object and a user, and the virtual object interacts with the user by using the identification of a target virtual character in a target game;
the obtaining unit is used for obtaining the dialogue information input by the user in the information interaction interface;
the dialogue unit is used for acquiring a response message corresponding to the dialogue message according to the role identification information of the target virtual role, the user identification information of the user and the dialogue message input by the user, and displaying the response message on the message interaction interface; the obtaining a response message corresponding to the dialog message according to the role identification information of the target virtual role, the user identification information of the user and the dialog message input by the user includes: determining the role attribute of the target virtual role according to the role identification information; determining a conversation scene where the current conversation is located according to the role attributes; acquiring a current personality attribute parameter of the target virtual character at the current moment according to the character identification information and the conversation message; inquiring response content corresponding to the conversation message from a preset response content set according to the conversation scene, the conversation message, the role identification information and the current personality attribute parameter; acquiring a response message corresponding to the conversation message according to the inquired response content; wherein, the querying response content corresponding to the dialog message from a preset response content set according to the dialog scene, the dialog message, the role identification information and the current personality attribute parameter includes: when the conversation scene is a first conversation scene, inquiring matched strategy content in a response content set corresponding to the first conversation scene according to the conversation message, the role identification information and the current personality attribute parameter; if the query fails, updating the conversation scene into a second conversation scene; and if the query is successful, acquiring the queried strategy content as the queried response content.
12. A computer-readable storage medium, on which a computer program is stored, which, when the computer program is run on a computer, causes the computer to execute the information interaction method according to any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010100497.XA CN111309886B (en) | 2020-02-18 | 2020-02-18 | Information interaction method and device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010100497.XA CN111309886B (en) | 2020-02-18 | 2020-02-18 | Information interaction method and device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111309886A CN111309886A (en) | 2020-06-19 |
CN111309886B true CN111309886B (en) | 2023-03-21 |
Family
ID=71149135
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010100497.XA Active CN111309886B (en) | 2020-02-18 | 2020-02-18 | Information interaction method and device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111309886B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111710338B (en) * | 2020-06-28 | 2023-07-25 | 度小满科技(北京)有限公司 | Speaking playing method and device |
CN112138410B (en) * | 2020-09-28 | 2023-01-20 | 腾讯科技(深圳)有限公司 | Interaction method of virtual objects and related device |
CN113760142B (en) * | 2020-09-30 | 2024-07-19 | 完美鲲鹏(北京)影视动漫有限公司 | Interaction method and device based on virtual roles, storage medium and computer equipment |
CN114338573B (en) * | 2020-09-30 | 2023-10-20 | 腾讯科技(深圳)有限公司 | Interactive data processing method and device and computer readable storage medium |
CN112231463B (en) * | 2020-11-10 | 2023-11-17 | 腾讯科技(深圳)有限公司 | Session display method, apparatus, computer device and storage medium |
TW202226002A (en) * | 2020-12-15 | 2022-07-01 | 萬達人工智慧科技股份有限公司 | Device and method for generating an electronic card |
CN112657186B (en) * | 2020-12-28 | 2024-02-02 | 网易(杭州)网络有限公司 | Game interaction method and device |
CN113436625A (en) * | 2021-06-25 | 2021-09-24 | 安徽淘云科技股份有限公司 | Man-machine interaction method and related equipment thereof |
CN113378583A (en) * | 2021-07-15 | 2021-09-10 | 北京小米移动软件有限公司 | Dialogue reply method and device, dialogue model training method and device, and storage medium |
CN113761366A (en) * | 2021-09-01 | 2021-12-07 | 上海来日梦信息科技有限公司 | Scene interaction method and device, storage medium and electronic equipment |
CN114053722A (en) * | 2021-11-12 | 2022-02-18 | 北京完美赤金科技有限公司 | Method and device for in-game reward interaction, storage medium and computer equipment |
CN114470759A (en) * | 2022-01-24 | 2022-05-13 | 腾讯科技(深圳)有限公司 | Prompt message display method and device, storage medium and electronic equipment |
CN114504824B (en) * | 2022-02-05 | 2024-09-20 | 腾讯科技(深圳)有限公司 | Object control method, device, terminal and storage medium |
CN115840806B (en) * | 2022-12-16 | 2023-09-05 | 深圳市人马互动科技有限公司 | Method and related device for acquiring scenario information based on natural language interaction |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009039769A1 (en) * | 2007-09-19 | 2009-04-02 | Tencent Technology (Shenzhen) Company Limited | Virtual pet system and virtual pet chatting method, apparatus |
CN105435453A (en) * | 2015-12-22 | 2016-03-30 | 网易(杭州)网络有限公司 | Bullet screen information processing method, device and system |
CN107340865A (en) * | 2017-06-29 | 2017-11-10 | 北京光年无限科技有限公司 | Multi-modal virtual robot exchange method and system |
CN108052765A (en) * | 2017-12-26 | 2018-05-18 | 四川大学 | Scheme of colour automatic generation method and device based on personality impression |
CN108646919A (en) * | 2018-05-10 | 2018-10-12 | 北京光年无限科技有限公司 | Visual interactive method and system based on visual human |
CN109885367A (en) * | 2019-01-31 | 2019-06-14 | 腾讯科技(深圳)有限公司 | Interactive chat implementation method, device, terminal and storage medium |
CN110339570A (en) * | 2019-07-17 | 2019-10-18 | 网易(杭州)网络有限公司 | Exchange method, device, storage medium and the electronic device of information |
CN110772799A (en) * | 2019-10-24 | 2020-02-11 | 腾讯科技(深圳)有限公司 | Session message processing method, device and computer readable storage medium |
-
2020
- 2020-02-18 CN CN202010100497.XA patent/CN111309886B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009039769A1 (en) * | 2007-09-19 | 2009-04-02 | Tencent Technology (Shenzhen) Company Limited | Virtual pet system and virtual pet chatting method, apparatus |
CN105435453A (en) * | 2015-12-22 | 2016-03-30 | 网易(杭州)网络有限公司 | Bullet screen information processing method, device and system |
CN107340865A (en) * | 2017-06-29 | 2017-11-10 | 北京光年无限科技有限公司 | Multi-modal virtual robot exchange method and system |
CN108052765A (en) * | 2017-12-26 | 2018-05-18 | 四川大学 | Scheme of colour automatic generation method and device based on personality impression |
CN108646919A (en) * | 2018-05-10 | 2018-10-12 | 北京光年无限科技有限公司 | Visual interactive method and system based on visual human |
CN109885367A (en) * | 2019-01-31 | 2019-06-14 | 腾讯科技(深圳)有限公司 | Interactive chat implementation method, device, terminal and storage medium |
CN110339570A (en) * | 2019-07-17 | 2019-10-18 | 网易(杭州)网络有限公司 | Exchange method, device, storage medium and the electronic device of information |
CN110772799A (en) * | 2019-10-24 | 2020-02-11 | 腾讯科技(深圳)有限公司 | Session message processing method, device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111309886A (en) | 2020-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111309886B (en) | Information interaction method and device and computer readable storage medium | |
US20220249959A1 (en) | Method and system for managing multiplayer game sessions | |
CN113521755B (en) | Team forming method, team forming device, computer equipment and storage medium | |
JP2022516748A (en) | Image search methods, devices, computer equipment and computer programs | |
CN113115114B (en) | Interaction method, device, equipment and storage medium | |
CN110604920A (en) | Game-based learning method and device, electronic equipment and storage medium | |
CN110812843A (en) | Interaction method and device based on virtual image and computer storage medium | |
CN113648650B (en) | Interaction method and related device | |
CN111131005A (en) | Dialogue method, device, equipment and storage medium of customer service system | |
US20210075747A1 (en) | Systems, methods, and storage media configured to integrate artificial intelligence chatbots into a communication between real-world users | |
CN112307166B (en) | Intelligent question-answering method and device, storage medium and computer equipment | |
WO2023138184A1 (en) | Prompt information display method and apparatus, storage medium and electronic device | |
CN112925462B (en) | Account head portrait updating method and related equipment | |
CN112947819B (en) | Message display method, device, storage medium and equipment for interactive narrative work | |
CN114146426A (en) | Control method and device for game in secret room, computer equipment and storage medium | |
US20100324908A1 (en) | Learning Playbot | |
US20130110866A1 (en) | Information system incorporating real-time data sources to enrich connections among users | |
CN110166351A (en) | A kind of exchange method based on instant messaging, device and electronic equipment | |
KR20190094080A (en) | Interactive ai agent system and method for actively providing an order or reservation service based on monitoring of a dialogue session among users, computer readable recording medium | |
CN112138410B (en) | Interaction method of virtual objects and related device | |
CN112448825B (en) | Session creation method, device, terminal and storage medium | |
CN115309304A (en) | Session message display method, device, storage medium and computer equipment | |
CN114390017A (en) | Session reminding method, device and equipment | |
CN114527913A (en) | Message display method and device and terminal equipment | |
KR101924217B1 (en) | Interactive ai agent system and method for actively providing an order or reservation service based on monitoring of a dialogue session among users and using previous history occuring in the dialogue session, computer readable recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40024291 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |