Loading...
Loading...
Compare original and translation side by side
find . -name "voice_agent.py" -o -name "prompts.py" -o -name "agent.py" | head -10
grep -rn "AgentSession\|VoicePipelineAgent\|LiveKit" --include="*.py" | head -10find . -name "voice_agent.py" -o -name "prompts.py" -o -name "agent.py" | head -10
grep -rn "AgentSession\|VoicePipelineAgent\|LiveKit" --include="*.py" | head -10Inbound Call → SIP Trunk → LiveKit Room → Agent Worker
↓
VAD → STT → LLM → TTS
↓
Function Tools (domain actions)Inbound Call → SIP Trunk → LiveKit Room → Agent Worker
↓
VAD → STT → LLM → TTS
↓
Function Tools (domain actions)SYSTEM_PROMPTS = {
"en": """You are a friendly and efficient AI assistant for {business_name}.SYSTEM_PROMPTS = {
"en": """You are a friendly and efficient AI assistant for {business_name}.undefinedundefinedGREETINGS = {
"en": "Hello! Thank you for calling {business_name}. How can I help you today?",
"es": "¡Hola! Gracias por llamar a {business_name}. ¿Cómo puedo ayudarle hoy?",
"fr": "Bonjour! Merci d'appeler {business_name}. Comment puis-je vous aider?",
"ar": "مرحباً! شكراً لاتصالك بـ {business_name}. كيف يمكنني مساعدتك؟",
"zh": "您好!感谢致电{business_name}。请问有什么可以帮您?",
}
UNIVERSAL_GREETING = """Hello! Thank you for calling.
Hola, gracias por llamar.
Bonjour, merci d'appeler.
How can I help you today?"""GREETINGS = {
"en": "Hello! Thank you for calling {business_name}. How can I help you today?",
"es": "¡Hola! Gracias por llamar a {business_name}. ¿Cómo puedo ayudarle hoy?",
"fr": "Bonjour! Merci d'appeler {business_name}. Comment puis-je vous aider?",
"ar": "مرحباً! شكراً لاتصالك بـ {business_name}. كيف يمكنني مساعدتك؟",
"zh": "您好!感谢致电{business_name}。请问有什么可以帮您?",
}
UNIVERSAL_GREETING = """Hello! Thank you for calling.
Hola, gracias por llamar.
Bonjour, merci d'appeler.
How can I help you today?"""❌ "Please state your order now."
✅ "What can I get started for you?"❌ "Please state your order now."
✅ "What can I get started for you?"undefinedundefinedundefinedundefined❌ "I have successfully added one large pepperoni pizza to your order. Your current total is now $18.99. Is there anything else you would like to add?"
✅ "Got it, large pepperoni. That's $18.99. Anything else?"❌ "I have successfully added one large pepperoni pizza to your order. Your current total is now $18.99. Is there anything else you would like to add?"
✅ "Got it, large pepperoni. That's $18.99. Anything else?"❌ "Order confirmed. Item added."
✅ "Perfect, I've added that."❌ "Order confirmed. Item added."
✅ "Perfect, I've added that."undefinedundefinedundefinedundefinedSYSTEM_PROMPTSGREETINGSSUPPORTED_LANGUAGESSYSTEM_PROMPTSGREETINGSSUPPORTED_LANGUAGESAPPOINTMENT_PROMPT = """You are a scheduling assistant for {business_name}.APPOINTMENT_PROMPT = """You are a scheduling assistant for {business_name}.undefinedundefinedSUPPORT_PROMPT = """You are a support agent for {company_name}.SUPPORT_PROMPT = """You are a support agent for {company_name}.undefinedundefined