cuddly-kite-65599
10/30/2025, 9:24 AMtall-airline-16756
10/30/2025, 9:24 AMtall-airline-16756
10/30/2025, 9:24 AMbrew upgrade livekit-cli and you’ll be good to go.
◦ Linux: You can re-run the install script with curl -sSL https://get.livekit.io/cli | bash.
◦ Windows: Try winget upgrade LiveKit.LiveKitCLI or grab the newest binary from the GitHub releases page.
1. Also, please double-check that you’re using the right binary name — it’s now lk instead of livekit-cli.
Once you’ve updated, it’s a good idea to make sure it’s compatible with your server SDK version. If anything feels tricky or you want me to walk you through any step, just let me know—I’m here to help!
Sources: cmd/lk/agent.go | LiveKit CLI Setup | LiveKit Docs | Community & Support | livekit/livekit_composite | DeepWikicuddly-kite-65599
10/30/2025, 9:28 AMtall-airline-16756
10/30/2025, 9:28 AMsession.start and session.generate_reply in LiveKit Agents:
• `session.start`: This is the first step where you initialize the agent session in a room, connecting it to the interaction pipeline. You only need to call this once per session to get everything going. Here, you'll provide the agent instance, the room context, and if you'd like, room_input_options for helpful features like noise cancellation.
• `session.generate_reply`: This method is great when you want the agent to generate a response manually using the LLM. It’s perfect for kicking off speech, like greetings, or continuing the conversation. You can also guide the response with instructions and decide if users can interrupt with allow_interruptions.
So, think of session.start as the way to begin your session, and session.generate_reply as your tool for specific responses during that session. If you have any questions or want me to walk you through an example, just let me know—I’m here to help!
Sources: examples/warm-transfer/warm_transfer.py | Agent speech and audio | LiveKit Docscuddly-kite-65599
10/30/2025, 9:29 AMtall-airline-16756
10/30/2025, 9:30 AMagent parameter in session.start accepts an Agent instance, which comes with its own internally defined instructions. Let me walk you through how this is different from the instructions parameter in `session.generate_reply`:
• Agent-level instructions (session.start): These are the foundational instructions set when the agent is first initialized. They shape the agent’s core behavior and identity throughout the entire session. For example, you might start an agent with instructions like "You are a helpful assistant." The great thing is, these instructions can be updated dynamically during the session using methods like update_instructions.
• Reply-specific instructions (session.generate_reply): These are more like one-time directions that affect just a single response. They temporarily override or add to the agent’s default behavior for that particular reply but don’t change the agent’s overall instruction set. For instance, you could use session.generate_reply(instructions="Say goodbye to the user") to tailor a specific message.
This setup gives you the best of both worlds: a consistent agent personality along with the flexibility to adapt replies based on the moment’s context. If you'd like, I’m here to help with any further questions or examples you might need!
Sources: examples/other/transcription/multi-user-transcriber.py | basics/context_variables.py | Agent speech and audio | LiveKit Docscuddly-kite-65599
11/03/2025, 8:13 AMtall-airline-16756
11/03/2025, 8:15 AMagent = VoicePipelineAgent(
chat_ctx=llm.ChatContext().append(
role="system",
text="""
AI VOICE AGENT SYSTEM PROMPT - DEMO ROLEPLAY SCENARIO
## YOUR ROLE
You are Curtis Matznick, Director of Sales at Promptemr, a healthcare EMR software company. You are participating in a follow-up demo call with Proshort (sales intelligence platform). This is a continuation demo where the sales rep will be showing you specific product features.
## YOUR BACKGROUND & CONTEXT
- You work at Promptemr, a healthcare SaaS company that deals with sensitive PHI (Protected Health Information) data
- Your team currently uses Gong for call recording and analysis
- You participated in an initial demo where you shared specific pain points and requirements
- You're evaluating Proshort to improve your sales coaching and deal intelligence capabilities
- You care deeply about practical, outcome-driven solutions - not just feature lists
## YOUR KEY PAIN POINTS (from previous discussions)
1. **Custom Scoring Methodology**: Your current scoring methods don't align with your desired skilled/under-skilled/over-skilled methodology for coaching reps
2. **Role-Specific Evaluation**: Difficulty evaluating demo performance for different healthcare personas (billers, therapists, practice owners)
3. **HIPAA Compliance**: Critical need for handling PHI data appropriately while maintaining security
4. **Trend Analysis**: Want to track objection patterns and coaching effectiveness over time
5. **Secure Sharing**: Challenge sharing call recordings securely across larger healthcare organizations
## YOUR COMMUNICATION STYLE
- Direct and practical - you value concrete examples over abstract concepts
- You ask clarifying questions when things feel generic or unclear
- You get noticeably more engaged when you see clear connections between your problems and solutions
- You're politely skeptical of "cool features" that don't obviously solve your problems
- You appreciate when someone remembers and references your specific situation
## HOW TO RESPOND DURING THE ROLEPLAY
... (rest of the prompt)
"""
),
vad=silero.VAD.load(),
stt=deepgram.STT(),
llm=openai.LLM(),
tts=openai.TTS(),
fnc_ctx=fnc_ctx,
)
By adding the system prompt to your chat context like this, your agent will be guided to behave and respond just as intended throughout your interactions. If you have any questions or need a hand with this, please don’t hesitate to reach out—I’m here to help!
Sources: README.md | How to test your agent using another agent | tools/server/public_legacy/index-new.htmlcuddly-kite-65599
11/03/2025, 8:17 AMtall-airline-16756
11/03/2025, 8:18 AMsystem_prompt parameter. Here's a simple example:
from livekit.plugins.ultravox.realtime import RealtimeModel
model = RealtimeModel(
model="fixie-ai/ultravox",
voice="Mark",
api_key="your-api-key",
system_prompt="You are a customer support agent for a retail company. Be helpful and professional."
)
• Google Gemini: In this case, use the instructions parameter. Here's how it looks:
from livekit.plugins.google.beta.realtime import RealtimeModel
model = RealtimeModel(
model="gemini-2.0-flash-live-001",
instructions="You are a helpful assistant specialized in technical support.",
voice="Puck",
temperature=0.8,
modalities=["AUDIO", "TEXT"]
)
These prompts really help guide the model’s behavior throughout your session. If you have any questions or want to explore this further, please don’t hesitate to ask—I’m here to help!
Sources: livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/real... | AI Agents Framework | livekit/livekit_composite | DeepWiki | Gemini Live API plugin | LiveKit docscuddly-kite-65599
11/03/2025, 8:23 AMtall-airline-16756
11/03/2025, 8:24 AMinstructions parameter. Let me walk you through how to do it:
• Python: When creating or updating a session, just include the instructions parameter. Here’s a simple example:
session_update_event = SessionUpdateEvent(
type="session.update",
session=session_config,
event_id="session_update_xyz"
)
# Add your instructions to the session configuration
session_config.instructions = "You are a helpful assistant specialized in technical support."
• JavaScript/Node.js: You can use the CreateResponseHandle class and provide the instructions parameter to guide the responses. Here’s how:
const responseHandle = new CreateResponseHandle({
instructions: "You are a professional assistant providing concise and accurate answers."
});
If you have any questions or would like me to share more tailored examples for your situation, please don’t hesitate to ask. I’m here to help!
Sources: livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/real... | plugins/openai/src/realtime/realtime_model.ts | tools/server/public_legacy/index-new.html | AI Agents Framework | livekit/livekit_composite | DeepWiki