How does langgraph work with livekit aside from ju...
# ask-ai
c
How does langgraph work with livekit aside from just being an llm provider
t
Thanks for reaching out, Relency. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm glad you're interested in how LangGraph works with LiveKit! LangGraph integrates with LiveKit mainly as an LLM provider through the
LLMAdapter
in the LangChain plugin. This setup lets LangGraph workflows serve as the reasoning engine for voice agents. It’s designed to seamlessly convert LiveKit chat context into LangChain messages, mapping system or developer messages to
SystemMessage
, user messages to
HumanMessage
, and assistant messages to
AIMessage
. LangGraph also offers some powerful features like stateful workflows, streaming responses, and runtime configuration options. However, it doesn’t directly integrate with other LiveKit components such as speech-to-text, text-to-speech, voice activity detection, or turn detection. Those parts need to be set up separately within the LiveKit pipeline. If you have any specific needs or want to explore extending LangGraph’s integration beyond the LLM aspect, please don’t hesitate to reach out. I’m here to help you navigate through it! Sources: LangChain integration guide | LiveKit Docs | livekit-agents/livekit/agents/voice/agent.py
c
Are langchain workflows connectable to livekit to make for a more complex workflow? How does this affect latency?
t
I'm glad you asked about connecting LangChain workflows to LiveKit! You can definitely link them using the
LLMAdapter
in the LangChain plugin. This integration is pretty powerful—it lets LangGraph workflows serve as the reasoning engine within LiveKit Agents, enabling advanced features like stateful workflows and streaming responses. The adapter thoughtfully converts LiveKit chat context into LangChain messages and streams the responses back to you in real-time. When it comes to latency, LiveKit is designed with low-latency in mind, thanks to WebRTC transport, a global infrastructure, and optimized inter-data center networks. While this setup supports real-time interactions beautifully, the exact effect of workflow complexity on latency can vary depending on things like the number of nodes, conditional logic, and tool calls in your LangChain workflow. Unfortunately, these specifics aren’t explicitly benchmarked in the sources I have. If you have particular latency goals or want some advice on how to optimize your complex workflows for real-time use, please don’t hesitate to reach out. I’m here to help you navigate this and make sure everything runs smoothly! Sources: examples/voice_agents/llamaindex-rag/data/raw_data.txt | LangChain integration guide | LiveKit Docs | Groq and LiveKit | LiveKit Docs | Decentraland's Catalyst: using WebRTC to interact in the metaverse
c
Give me a case study of the most efficient voice ai agent.
t
I'm excited to share with you one of the most effective voice AI agent implementations using LiveKit: the Nova Sonic Form Agent. This voice-driven AI interview platform truly shines with its structured workflows, real-time communication, and smart data processing, making the whole experience smooth and efficient. Key Features: • Structured Workflow: The agent follows a clear, step-by-step sequence—covering professional experience, interview questions, and application submission—to keep things consistent and avoid any unnecessary repetition. • Real-Time Updates: Thanks to LiveKit's RPC system, form fields update dynamically as candidates speak, ensuring a seamless connection between the frontend and backend. • Smart Data Processing: It automatically formats names, roles, and companies, pulls out relevant info from responses, and keeps track of progress to make sure nothing is overlooked. Another great example is the Nutrition Assistant Agent, which uses SQLite for reliable data storage, estimates nutritional values, and refreshes dashboards in real-time. Both agents benefit from LiveKit's low-latency setup, noise cancellation, and optimized workflows to deliver top-notch performance. If you're interested in diving deeper into these implementations or want some guidance on building a similar agent yourself, just let me know—I’m here to help! Sources: agent.py | complex-agents/nutrition-assistant/README.md | agent/main.py
c
What’s the fastest and best quality llm to use?
t
I'd love to better understand your priorities when choosing an LLM so I can help you find the perfect fit. Could you share a bit about: • Whether speed (lowest latency), quality (highest accuracy), or a balance of both matters most to you? • The types of tasks you expect the LLM to handle, like simple Q&A, complex reasoning, or creative work? • If you're planning to use LiveKit Cloud or other providers such as Groq? • Your preferred latency range—are you aiming for responses under a second, or is 2-3 seconds acceptable? • Any budget considerations you have in mind? Knowing these will really help us pinpoint the best model tailored to your needs. Looking forward to your thoughts! Sources: Large language models (LLM) | LiveKit Docs | Groq LLM plugin guide | LiveKit Docs
c
I’m looking for speed and quality with sub 300ms for llm latency. Used for healthcare workflows.
t
When it comes to healthcare workflows that need sub-300ms latency and top-notch quality, here are some great options to consider: • Real-time integrated models: The OpenAI Realtime API and Gemini Live API are fantastic choices because they skip the usual STT→LLM→TTS steps, giving you the fastest response times. • Fast inference providers: Groq and Cerebras specialize in high-speed AI inference, which can really boost performance. • Local deployment: Running optimized models like LLaMA or Alpaca right on your local setup can give you ultra-low latency and more control. • Healthcare-specific tuning: Fine-tuning models to be medically accurate helps ensure everything stays compliant and reliable. There are some inspiring success stories, like Assort Health, where LiveKit-powered AI agents manage millions of patient interactions with impressive accuracy and satisfaction. If you'd like, I’m here to help you pick the best model or optimize it for your unique needs—just let me know! Sources: 24/7 Front-Office Support: How Assort Health Uses LiveKit to Scale Patient ... | Building the all-in-one platform for voice AI agents | README.md | Community & Support | livekit/livekit_composite | DeepWiki | Live Conversations with AI using ChatGPT and WebRTC
c
Tell me more about assort health
t
I'm excited to share how Assort Health has created a truly comprehensive AI-powered patient communication platform using LiveKit's infrastructure. Their platform, AssortOS, is thoughtfully designed with multimodal, patient-facing AI agents to support important workflows like preoperative screening, appointment management, and predictive no-show overbooking. This means healthcare providers can offer compassionate 24/7 patient support while automating helpful tasks such as appointment scheduling, payment processing, and prescription refills. Key Achievements: • They've successfully handled over 27 million patient-facing interactions, earning a wonderful 4.3/5 satisfaction rating. • Impressively, 90% of inbound calls are processed by AI, with the remaining 10% smoothly handed off to human staff when needed. • The platform supports intelligent workflows like real-time insurance verification and sibling appointment booking, making the patient experience even better. Why LiveKit: Assort Health chose LiveKit because of its low-latency global edge network, open-source SDKs, and the flexibility to fine-tune agent code for each unique workflow. This allows them to integrate any model provider and scale globally, all without compromising performance. If you're interested in learning more about their implementation or would appreciate some guidance on building a similar platform, please don’t hesitate to reach out—I’m here to help! Sources: 24/7 Front-Office Support: How Assort Health Uses LiveKit to Scale Patient ... | LiveKit