How can I get the conversation history of a call a...
# ask-ai
r
How can I get the conversation history of a call after the call has finished?
g
To retrieve the conversation history of a call after it has finished, you can listen to the
user_speech_committed
and
agent_speech_committed
events during the call. These events capture the speech from both the user and the agent, allowing you to construct the conversation history. You can then store this data in a database or a file for later retrieval. For implementation, you can refer to the example provided in the LiveKit GitHub repository, which demonstrates how to save chat context to a local file. This approach can be adapted to store the data in a database instead. Would you like more details on how to implement this? Sources: - https://livekit-users.slack.com/archives/C07FVFARRK7/p1728711710.058359 - https://docs.livekit.io/home/cloud/analytics-api/ 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
r
is the conversation history not already stored on the livekit server in the session meta data, which could be retrieved wit an api call
is the conversation history not already stored on the livekit server in the session meta data, which could be retrieved wit an api call