Quick Start
Build a streaming chat component with agent() in 5 minutes.
Prerequisites
Angular 20+ project with Node.js 18+. If you need setup help, see the Installation guide.
1
Install the package
2
Configure the provider
Add provideAgent() to your application config with your LangGraph Platform URL.
3
Create a chat component
Use agent() in a component field initializer. Every property on the returned ref is an Angular Signal.
4
Start your LangGraph server
Make sure your LangGraph agent is running at the URL you configured.
5
Run your app
Open http://localhost:4200 and start chatting with your agent.
Next steps
Streaming
Learn about token-by-token updates and stream modes
Persistence
Keep conversations alive across page refreshes
Interrupts
Add human-in-the-loop approval flows
Angular Signals
Deep dive into how Signals power agent
LangGraph Basics
Graphs, nodes, edges, and state for Angular developers
API Reference
Complete agent() function reference