Save interaction transcript

Original Discord Post by akster213 | 2024-09-03 17:06:47

Hi, wondering how to access the transcripts that get populated on the chatUI, I want to be able to save the transcript of each interaction, so both what the player says and the NPCs response. How can I access these fields easily, and if I want to implement a function that saves the transcript in some way should I extend some class and call my function in a separate script to ensure my changes are saved next time the SDK gets an update?

Reply by akster213 | 2024-09-03 18:39:42

Please let me know how to do this

Reply by k3kalinix | 2024-09-03 23:17:58

Hello <@443251260288794624> ,

Reply by k3kalinix | 2024-09-03 23:18:10

Which version of Convai are you using?

Reply by akster213 | 2024-09-05 00:44:46

3.1.0

Reply by akster213 | 2024-09-09 20:26:26

Hi, any updates on this? Please let me know how to do it

Reply by k3kalinix | 2024-09-09 20:28:45

Please check
ConvaiNPCAudioManager.cs

There is an event, public event Action OnAudioTranscriptAvailable;

Reply by k3kalinix | 2024-09-09 20:37:12

Or you can use ConvaiChatUIHandler.cs directly to get NPC and Player responses.

Images:

This conversation happened on the Convai Discord Server, so this post will be closed.