Hi, I have a bunch of prerecorded conversations b...
# ask-ai
s
Hi, I have a bunch of prerecorded conversations between Human agents and customers, I want to test my AI agent using the recordings by possibly streaming just the customer queries and comapring results between the human agent and AI agent responses. Are their any recommendations , pipelines to do this kind of testomg at scale? Thanks!
t
Thanks for reaching out, Sanskriti. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To test your AI agent using prerecorded conversations and compare results with human agent responses, here’s a friendly guide to help you through the process: • Simulate Customer Queries: You can use LiveKit's handy tools like
FakeUserSpeech
to stream prerecorded queries right into the AI agent pipeline. If you have real audio files, GStreamer is a great option to stream them into LiveKit rooms seamlessly. • Enable Agent-to-Agent Interaction: By configuring
RoomInputOptions
, you can set things up so the evaluation agent can interact directly with the AI agent you’re testing. • Load Conversation History: Bringing in historical chat context helps simulate natural, multi-turn conversations based on real interactions between humans and agents. • Write Behavioral Tests: LiveKit’s Python testing framework is perfect for validating responses, tool usage, and timing. Plus, you can compare how the AI responds versus human agents using evaluation agents or other tools. • Collect Metrics: It’s important to measure things like response accuracy, latency, turn-taking quality, and tool usage to really understand how your AI is performing. If you’d like, I’m here to walk you through any specific step—whether that’s streaming audio files or setting up evaluation agents. Just let me know! Sources: Testing and evaluation | LiveKit Docs | How to test your agent using another agent | Community & Support | livekit/livekit_composite | DeepWiki | Agent Testing & CI/CD | livekit/livekit_composite | DeepWiki | examples/warm-transfer/warm_transfer.py