create_agent(). This UI is designed to provide rich, interactive experiences for your agents with minimal setup, whether you’re running locally or in a deployed context (such as LangSmith).
Agent Chat UI
Agent Chat UI is a Next.js application that provides a conversational interface for interacting with any LangChain agent. It supports real-time chat, tool visualization, and advanced features like time-travel debugging and state forking. Agent Chat UI is open source and can be adapted to your application needs.Features
Tool visualization
Tool visualization
Studio automatically renders tool calls and results in an intuitive interface.

Time-travel debugging
Time-travel debugging
Navigate through conversation history and fork from any point

State inspection
State inspection
View and modify agent state at any point during execution

Human-in-the-loop
Human-in-the-loop
Built-in support for reviewing and responding to agent requests

Quick start
The fastest way to get started is using the hosted version:- Visit Agent Chat UI
- Connect your agent by entering your deployment URL or local server address
- Start chatting - the UI will automatically detect and render tool calls and interrupts
Local development
For customization or local development, you can run Agent Chat UI locally:连接到您的智能体
智能体聊天UI可以连接到本地和已部署的智能体。 启动智能体聊天界面后,您需要对其进行配置以连接到您的智能体:- 图ID:输入您的图名称(在您的
langgraph.json文件中的graphs下查找) - 部署URL:您的 LangGraph 服务器端点(例如,用于本地开发的
http://localhost:2024,或您部署的智能体的URL) - LangSmith API密钥(可选):添加您的LangSmith API密钥(如果您使用的是本地LangGraph服务器则不需要)