I’m working on a project using two Convai characters across three Unity scenes. In Scene 2, the player interacts with an NPC (Character A). Then in Scene 3, a different NPC (Character B) is supposed to give the player feedback based on their previous interaction — such as pointing out the player’s strengths, weaknesses, or key decisions made in Scene 2.
My question is:
How can I pass or share the chat history or long-term memory from Character A in Scene 2 to Character B in Scene 3, so that Character B can provide relevant, personalized feedback to the player?
Is there a built-in way to access and transfer the conversation context or memory across characters or scenes?
You can achieve this by using the Dynamic Information feature in Convai. In your case, you can capture Character A’s conversation during Scene 2 in Unity, and then pass this information to Character B in Scene 3 via Dynamic Information (essentially as a prompt or contextual input).
Hello @K3, thank you for your help. I’m using the Dynamic Info Context feature to pass chat history between scenes, and it’s working great. For example, Scene 2 history passes into Scene 3, Scene 4 into Scene 5, and so on — I have about 10 scenes total.
However, starting from around Scene 4 or 5, I’m running into a strange issue:
I ask the NPC a question.The character starts responding (mouth moves, eyes blink, gestures happen).
But suddenly, the “audio” cuts off mid-reply, and the “Convai transcript UI” becomes empty.
The character still finishes the response visually (lip sync and animation keep going), but there’s no sound or transcript.
It feels like the backend response is still happening but the UI and audio layer drop out halfway.
Could it be a memory issue, too much history being passed, or something with scene transitions? Thanks for your help.
Hey @K3, I have figured it out. Thanks. The error i hard was RpcException: StatusCode=Unavailable, Detail="enter idle" causing my audio to cut off while responding.