Sharing Chat History Between Characters Across Scenes

Hi Convai Team,

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?

Thanks in advance for your help!

Hello @nickamoah54,

Welcome to the Convai Developer Forum!

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).

Here’s the relevant documentation to help you get started: Dynamic Information Context - Convai Unity Plugin

Thank you very much for your reply. I will work on that and let you know if i have any more questions.

1 Like

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.

Hello @K3 , I wanted to follow up if you received my follow up question. Thank you.

Could you share a screen recording showing the problem? Make sure that the console logs are also visible.

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.