Quick Start
Build a streaming chat component with injectAgent() in 5 minutes.
Angular 20+ project with Node.js 18+. If you need setup help, see the Installation guide.
Most npm clients install peer dependencies automatically. Listing the LangChain peers explicitly keeps strict package managers quiet. They may still ask you to install the Angular and RxJS peers listed in the Installation guide if your app does not already provide them.
Add provideAgent() to your application config with your LangGraph Platform URL and assistant id.
Persisting a threadId so conversations survive a page refresh is opt-in — leave it out for the minimal path and add it later. See Persistence.
Now let's wire up the UI. Call injectAgent() in a component field initializer — every property on the returned ref is an Angular Signal.
Make sure your LangGraph agent is running at the URL you configured.
Open http://localhost:4200 and start chatting with your agent.
#Next steps
Skip the hand-rolled template — render this agent with <chat [agent]> from @threadplane/chat.
Learn about token-by-token updates and stream modes
Keep conversations alive across page refreshes
Add human-in-the-loop approval flows
Deep dive into how Signals power agent
Graphs, nodes, edges, and state for Angular developers
Complete injectAgent() function reference