I have a LangGraph agent that uses tools that requ...
# ask-ai
f
I have a LangGraph agent that uses tools that require approval and human in the loop. If we’re using this LangGraph agent as our LLM, is it possible to surface these tool call approvals to the UI so we can render them visually (eg. Show an approve or reject button to the user)?
t
Thanks for reaching out, Zac. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to help you understand how LangGraph agents can work with custom approval workflows using LiveKit's frontend integration features, like RPC communication and custom UI components. While there isn’t a built-in feature that automatically shows tool call approvals with approve/reject buttons, we can definitely explore how to set this up together. Here’s a friendly roadmap to get you started: • Create tools that pause execution and send approval requests to the frontend via RPC. • Build custom UI components to display those approval requests and capture the user’s decisions. • Implement RPC handlers that send approval requests and receive the user’s responses. If you’d like, I’m here to guide you through implementing a custom approval workflow or to dive deeper into any part of tool execution control. Just let me know how I can support you! Sources: examples/voice_agents/README.md | LangChain integration guide | LiveKit Docs | Tool definition and use | LiveKit Docs | External data and RAG | LiveKit Docs