Skip to content

Have the agent greet the user at session start - #116

Open
bcherry wants to merge 4 commits into
mainfrom
bcherry/agent-greeting-intro
Open

bcherry wants to merge 4 commits into
mainfrom
bcherry/agent-greeting-intro

Conversation

@bcherry

@bcherry bcherry commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

The agent now speaks first. Right after ctx.connect(), it calls session.generate_reply() with the instruction "Enthusiastically greet the user and offer to help." Using generate_reply rather than say lets the LLM write the line in the agent's own character, so expressive mode applies to it too. This matches livekit-examples/agent-starter-node#76.

The "Greets and offers help" scenario now requires the agent to open the conversation by enthusiastically greeting the user and offering to help. The brevity and no-formatting requirements are unchanged.

Testing

  • uv run ruff format / uv run ruff check: clean. tests/test_agent.py is fully commented out, so pytest collects no tests.
  • lk agent simulate text --scenarios scenarios.yaml: 3/3 passed. The agent opened with "Hello there! I am so excited to help you today. What can I do for you?"

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@bcherry
bcherry requested a review from u9g November 4, 2026 00:56
bcherry and others added 3 commits November 3, 2026 17:00
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
bcherry added a commit to livekit-examples/agent-starter-node that referenced this pull request Nov 4, 2026
Match livekit-examples/agent-starter-python#116: greet the user enthusiastically
and offer to help, and align the greeting scenario with it.

Co-Authored-By: Claude <noreply@anthropic.com>
@bcherry bcherry changed the title Greet the user and introduce the agent at session start Have the agent greet the user at session start Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant