From a9bf4b9840599da2ec8556691f0a9950b2898286 Mon Sep 17 00:00:00 2001 From: Phil Date: Sat, 4 Apr 2026 17:00:14 -0400 Subject: [PATCH] Update receptionist opening line to Jess script --- src/agent.py | 9 ++++----- tests/test_agent.py | 8 ++++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/agent.py b/src/agent.py index 5866b5a..307f168 100644 --- a/src/agent.py +++ b/src/agent.py @@ -207,7 +207,7 @@ def build_reception_instructions() -> str: "but do not overuse fillers. " "\n\n" "Call flow rules:\n" - f"1) First turn must be exactly: 'This is {business_name}, {ASSISTANT_NAME} speaking. How can I help?'\n" + "1) First turn must be exactly: 'Downtown Demo Barbershop, this is Jess— I can help you get booked or check what we have open. What are you looking to come in for today?'\n" "2) Be helpful first: answer the caller's question directly before suggesting any next step.\n" "3) Do not pressure, upsell, or repeatedly circle back to appointments. Only mention booking when the caller asks to book or when it genuinely helps answer their question.\n" "4) If the caller interrupts, changes the subject, or asks a new question, stop the current response immediately in your next turn, answer the new request, and drop any unfinished booking script.\n" @@ -300,11 +300,10 @@ async def agent_session(ctx: JobContext) -> None: ), ) - business_name = str( - BUSINESS_PROFILE.get("business_name", "Downtown Demo Barber Shop") - ) await session.say( - f"This is {business_name}, {ASSISTANT_NAME} speaking. How can I help?" + "Downtown Demo Barbershop, this is Jess— " + "I can help you get booked or check what we have open. " + "What are you looking to come in for today?" ) diff --git a/tests/test_agent.py b/tests/test_agent.py index 625b240..547b5e3 100644 --- a/tests/test_agent.py +++ b/tests/test_agent.py @@ -157,11 +157,11 @@ async def test_uses_caller_led_opening_line() -> None: .judge( llm, intent=""" - Uses a natural phone greeting like: - - "This is Downtown Demo Barber Shop, Jessica speaking." - - Asks "How can I help?" + Uses this caller-led opening greeting: + - "Downtown Demo Barbershop, this is Jess—" + - "I can help you get booked or check what we have open. What are you looking to come in for today?" - The message should sound conversational, not scripted or robotic. + The message should stay natural and conversational. """, ) )