diff --git a/scenarios.yaml b/scenarios.yaml index 6788691..955edcb 100644 --- a/scenarios.yaml +++ b/scenarios.yaml @@ -17,9 +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: > - Greets the user in a friendly manner and offers to help. Replies are - brief, one to three sentences, in plain spoken prose with no lists, - markdown, or emojis. + 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: feature: greeting diff --git a/src/agent.py b/src/agent.py index 906df55..7f65558 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 before they say anything + await session.generate_reply( + instructions="Enthusiastically greet the user and offer to help." + ) + if __name__ == "__main__": cli.run_app(server)