Code Examples
Examples
Explore these examples to learn how to build different types of agents using the VoiceRun framework. Each example demonstrates specific concepts and patterns you can apply to your own projects.
Simple Greeting Agent
A basic greeting agent that demonstrates fundamental concepts like event handling, A/B testing, and outcome tracking.
Background Tasks Agent
An agent that demonstrates how to run long-running operations in the background without blocking the main conversation flow.
LLM Integration Example
Demonstrates how to integrate OpenAI's GPT models into your voice agent for intelligent conversations.
A/B Testing Agent
An advanced A/B testing agent that automatically optimizes conversion rates with sophisticated stop conditions and notifications.
These examples are designed to help you understand the framework's capabilities. Start with the Simple Greeting Agent if you're new to VoiceRun, or jump into more advanced examples if you're ready for complex patterns.