CN-121979426-A - Interaction method, device, electronic equipment, storage medium and program product
Abstract
The application relates to the technical field of computer processing and discloses an interaction method, an interaction device, electronic equipment, a storage medium and a program product, wherein the method comprises the steps of responding to an interaction instruction aiming at a user identifier, and determining a target virtual role corresponding to the user identifier; and determining the interaction information of the target virtual role aiming at the interaction instruction based on the history interaction data. When the interactive information of the target virtual character is determined, the historical interactive data of the cross-interactive scene is collected, so that the target virtual character can adopt the interactive performance consistent with that in the historical interactive scene when interacting with the interactive instruction, the unification of the interactive performance of the target virtual character when the target virtual character crosses the interactive scene is ensured, the preparation work of manpower on a new interactive scene is reduced, the operation is simple and convenient, and the manpower is saved.
Inventors
- CHEN JIANLIANG
- ZHU LIMING
- JIAO YUHANG
- Deng Zherui
Assignees
- 北京字跳网络技术有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260126
Claims (14)
- 1. A method of interaction, the method comprising: Responding to an interaction instruction aiming at a user identifier, and determining a target virtual role corresponding to the user identifier; Acquiring historical interaction data related to the target virtual role from historical scene data corresponding to the user identifier, wherein the historical scene data refer to interaction data of more than one historical interaction scene; And determining the interaction information of the target virtual role aiming at the interaction instruction based on the historical interaction data.
- 2. The method of claim 1, wherein the obtaining, from the historical scene data corresponding to the user identifier, historical interaction data related to the target virtual character includes: acquiring more than one first interaction scene in which the user identification participates; screening the first interaction scenes based on the target virtual roles and the interaction types corresponding to the first interaction scenes, and determining the historical interaction scenes; And acquiring the historical interaction data from the interaction data of the historical interaction scene.
- 3. The method of claim 2, wherein the screening the first interaction scenario based on the target virtual character and the interaction type corresponding to each of the first interaction scenario, and determining the historical interaction scenario includes at least one of: Under the condition that the first interaction scene is of an information release interaction type, determining the first interaction scene as the history interaction scene; and under the condition that the first interaction is of a non-information release interaction type, if the target virtual character participates in the first interaction scene, determining the first interaction scene as the historical interaction scene.
- 4. The method of claim 1, the determining, based on the historical interaction data, interaction information of the target avatar for the interaction instruction, comprising: Determining the interaction time of the target virtual character for the interaction instruction based on the historical interaction data; Acquiring first attribute information corresponding to the target virtual character, second attribute information corresponding to the user identifier and instruction interaction information corresponding to the interaction instruction; performing feature extraction processing on the historical interaction data, the first attribute information, the second attribute information and the instruction interaction information to obtain feature information; based on the characteristic information, determining the interaction action of the target virtual character aiming at the interaction instruction; wherein the interaction information includes the interaction time and the interaction action.
- 5. The method of claim 4, the determining, based on the characteristic information, an interaction action of the target avatar with respect to the interaction instruction, comprising: Determining a first interaction action set of the target virtual character aiming at the interaction instruction based on the characteristic information, wherein the first interaction action set comprises at least one first interaction action; the interaction frequency between each first interaction action and the user identifier is obtained within a target time period, wherein the target time period is used for representing an adjacent time period taking the instruction obtaining moment as an end point, and the instruction obtaining moment is the obtaining moment of the interaction instruction; And acquiring the interaction actions from the first interaction action set based on the interaction frequency of each first interaction action.
- 6. The method of claim 5, wherein the first set of interaction actions further comprises trigger probabilities corresponding to the respective first interaction actions; the obtaining the interactive action from the first interactive action set based on the interactive frequency of each first interactive action includes: Determining a first interaction action with the interaction frequency smaller than a frequency threshold value as a second interaction action in the first interaction action set to obtain a second interaction action set, wherein the second interaction action set comprises at least one second interaction action; And in the second interaction action set, determining the second interaction action with the largest triggering probability as the interaction action.
- 7. The method of claim 5, the determining a first set of interaction actions for the interaction instruction for the target avatar based on the characteristic information, comprising: and taking the characteristic information as input information of an interaction model to obtain a first interaction action set output by the interaction model.
- 8. The method of claim 4, the determining an interaction time of the target avatar for the interaction instruction based on the historical interaction data, comprising: Determining interaction distribution data corresponding to the user identifier based on the historical interaction data, wherein the interaction distribution data is used for representing the association relationship between the interaction occurrence times corresponding to the user identifier and the time period; Based on the interaction distribution data, determining an idle time period corresponding to the user identifier; and determining the interaction time in the idle time period.
- 9. The method of claim 1, the determining the target virtual character to which the user identification corresponds comprising: Acquiring the association strength between each first virtual character and the user identifier, wherein the association strength is used for limiting the frequency threshold of the first virtual character for the user identifier; acquiring the interaction times between each first virtual character and the user identifier in a target time period; determining a first virtual role with the interaction times smaller than a time threshold as a second virtual role to obtain a second virtual role set, wherein the second virtual role set comprises at least one second virtual role; And determining a second virtual role with association strength larger than a strength threshold value from the second virtual role set as the target virtual role.
- 10. The method of any of claims 1 to 9, the interaction information comprising interaction time and interaction action, the method further comprising: in the interaction time, controlling the target virtual character to execute the interaction action; and displaying the execution result of the interaction action in the interaction area of the interaction instruction.
- 11. An interactive apparatus, the apparatus comprising: The role determination module is used for determining a target virtual role corresponding to the user identifier in response to an interaction instruction aiming at the user identifier; The history acquisition module is used for acquiring history interaction data related to the target virtual role from history scene data corresponding to the user identifier, wherein the history scene data refer to interaction data of more than one history interaction scene; And the interaction determining module is used for determining the interaction information of the target virtual role aiming at the interaction instruction based on the historical interaction data.
- 12. An electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the interaction method of any of claims 1 to 10.
- 13. A computer readable storage medium having stored thereon computer instructions for causing a computer to perform the interaction method of any of claims 1 to 10.
- 14. A computer program product comprising computer instructions for causing a computer to perform the interaction method of any of claims 1 to 10.
Description
Interaction method, device, electronic equipment, storage medium and program product Technical Field The present application relates to the field of computer processing technologies, and in particular, to an interaction method, an interaction device, an electronic device, a storage medium, and a program product. Background Currently, interactive artificial intelligence (AI, artificial Intelligence) is capable of playing a virtual role to interact with a user. In the related art, virtual characters interact with an interaction scene and a preset rule corresponding to the scene. Specifically, after an interaction request is acquired, determining an interaction scene at this time, acquiring a preset rule corresponding to the interaction scene, and determining an interaction mode of the virtual character in response to the interaction request based on the preset rule. Disclosure of Invention The application provides an interaction method, an interaction device, electronic equipment, a storage medium and a program product, which are used for solving the problem of inconsistent interaction performance of virtual roles in different interaction scenes. In a first aspect, the present application provides an interaction method, the method comprising: Responding to an interaction instruction aiming at a user identifier, and determining a target virtual role corresponding to the user identifier; Acquiring historical interaction data related to the target virtual role from historical scene data corresponding to the user identifier, wherein the historical scene data refer to interaction data of more than one historical interaction scene; And determining the interaction information of the target virtual role aiming at the interaction instruction based on the historical interaction data. In a second aspect, the present application provides an interactive apparatus, the apparatus comprising: The role determination module is used for determining a target virtual role corresponding to the user identifier in response to an interaction instruction aiming at the user identifier; The history acquisition module is used for acquiring history interaction data related to the target virtual role from history scene data corresponding to the user identifier, wherein the history scene data refer to interaction data of more than one history interaction scene; And the interaction determining module is used for determining the interaction information of the target virtual role aiming at the interaction instruction based on the historical interaction data. In a third aspect, the present application provides an electronic device, including a memory and a processor, where the memory and the processor are communicatively connected to each other, and the memory stores computer instructions, and the processor executes the computer instructions, thereby executing the interaction method of the first aspect or any implementation manner corresponding to the first aspect. In a fourth aspect, the present application provides a computer readable storage medium having stored thereon computer instructions for causing a computer to perform the interaction method of the first aspect or any of its corresponding embodiments. In a fifth aspect, the present application provides a computer program product comprising computer instructions for causing a computer to perform the interaction method of the first aspect or any of its corresponding embodiments. According to the interactive method provided by the embodiment, the historical interaction data related to the target virtual role is obtained through the historical scene data corresponding to the user identifier, further, the interaction information of the target virtual role is determined based on the historical interaction data, namely, when the interaction information of the target virtual role is determined, the historical interaction data related to the target virtual role are collected from different historical interaction scenes corresponding to the user identifier, and the historical interaction data of the cross interaction scene are collected, so that the interaction information is determined under the condition that the historical performance of the target virtual role is fully considered, further, the target virtual role can adopt the interaction performance consistent with the historical interaction scene when interacting with respect to the interactive instruction, the unification of the interaction performance of the target virtual role in the cross interaction scene is facilitated, and when the target virtual role faces a new interaction scene, the target virtual role can present the interaction performance consistent with the previous time based on the historical interaction data, so that the preparation work of manpower on the new interaction scene is facilitated to be reduced, and if the new interaction rule is not required to be set for the new interaction scene manually, the interactive met