From 5846ddeb0528e97c9d860dd4289ac684289d6456 Mon Sep 17 00:00:00 2001 From: Ben Cherry Date: Tue, 3 Nov 2026 12:47:39 -0800 Subject: [PATCH 1/5] Greet the user and introduce the agent at session start The agent now speaks first with session.generate_reply, so the LLM writes the greeting in its own character and expressive mode applies. Update the greeting scenario to require the introduction. Co-Authored-By: Claude --- scenarios.yaml | 3 ++- src/agent.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scenarios.yaml b/scenarios.yaml index 6788691..4841612 100644 --- a/scenarios.yaml +++ b/scenarios.yaml @@ -17,7 +17,8 @@ scenarios: 1. After the assistant replies, ask: "What can you help me with?" 2. Once it answers, say thanks and end the conversation. agent_expectations: > - Greets the user in a friendly manner and offers to help. Replies are + Opens the conversation by greeting the user in a friendly manner, + introducing itself as a helpful assistant, and offering to help. Replies are brief, one to three sentences, in plain spoken prose with no lists, markdown, or emojis. tags: diff --git a/src/agent.py b/src/agent.py index 906df55..b640764 100644 --- a/src/agent.py +++ b/src/agent.py @@ -168,6 +168,11 @@ async def my_agent(ctx: JobContext): # Join the room and connect to the user await ctx.connect() + # Speak first: greet the user and introduce the agent before they say anything + await session.generate_reply( + instructions="Greet the user warmly, introduce yourself as their helpful assistant, and ask how you can help today." + ) + if __name__ == "__main__": cli.run_app(server) From ce544223e6f9991214d86f0029f3576c3989be61 Mon Sep 17 00:00:00 2001 From: Ben Cherry Date: Tue, 3 Nov 2026 17:00:12 -0800 Subject: [PATCH 2/5] change --- src/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent.py b/src/agent.py index b640764..e211c9b 100644 --- a/src/agent.py +++ b/src/agent.py @@ -170,7 +170,7 @@ async def my_agent(ctx: JobContext): # Speak first: greet the user and introduce the agent before they say anything await session.generate_reply( - instructions="Greet the user warmly, introduce yourself as their helpful assistant, and ask how you can help today." + instructions="Enthusiastically greet the user and offer to help." ) From fbea7c2e233ed9bafe6de0a9b16cc125bfb80a0d Mon Sep 17 00:00:00 2001 From: Ben Cherry Date: Tue, 3 Nov 2026 17:02:46 -0800 Subject: [PATCH 3/5] Match the greeting scenario to the new greeting Co-Authored-By: Claude --- scenarios.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scenarios.yaml b/scenarios.yaml index 4841612..bc89021 100644 --- a/scenarios.yaml +++ b/scenarios.yaml @@ -17,10 +17,9 @@ scenarios: 1. After the assistant replies, ask: "What can you help me with?" 2. Once it answers, say thanks and end the conversation. agent_expectations: > - Opens the conversation by greeting the user in a friendly manner, - introducing itself as a helpful assistant, and offering to help. Replies are - brief, one to three sentences, in plain spoken prose with no lists, - markdown, or emojis. + Opens the conversation by enthusiastically greeting the user and offering + to help. Replies are brief, one to three sentences, in plain spoken prose + with no lists, markdown, or emojis. tags: feature: greeting From 6f9f50b529b729cc0533928000066cf05c57696e Mon Sep 17 00:00:00 2001 From: Ben Cherry Date: Tue, 3 Nov 2026 17:03:01 -0800 Subject: [PATCH 4/5] Drop stale intro wording from the greeting comment Co-Authored-By: Claude --- src/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent.py b/src/agent.py index e211c9b..7f65558 100644 --- a/src/agent.py +++ b/src/agent.py @@ -168,7 +168,7 @@ async def my_agent(ctx: JobContext): # Join the room and connect to the user await ctx.connect() - # Speak first: greet the user and introduce the agent before they say anything + # Speak first: greet the user before they say anything await session.generate_reply( instructions="Enthusiastically greet the user and offer to help." ) From 4ba55c4c7d29a8c77e36efe5d223ca7ac8e3f244 Mon Sep 17 00:00:00 2001 From: Ben Cherry Date: Wed, 4 Nov 2026 16:34:54 -0800 Subject: [PATCH 5/5] Update scenarios.yaml Co-authored-by: Jason Lernerman <43508353+u9g@users.noreply.github.com> --- scenarios.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenarios.yaml b/scenarios.yaml index bc89021..955edcb 100644 --- a/scenarios.yaml +++ b/scenarios.yaml @@ -17,7 +17,7 @@ scenarios: 1. After the assistant replies, ask: "What can you help me with?" 2. Once it answers, say thanks and end the conversation. agent_expectations: > - Opens the conversation by enthusiastically greeting the user and offering + The agent starts the conversation by enthusiastically greeting the user and offering to help. Replies are brief, one to three sentences, in plain spoken prose with no lists, markdown, or emojis. tags: