A simple way to think about Agentic AI is: model + tools + web-service = agentic AI app.
With LangGraph 1.0 now stable, building them is straightforward.
Let's build a 'Weather Poet' agent app that:
- Runs as a web service, accessible via UI and API..
- Uses a web search tool to find a forecast.
- Write a poem about it.
1. Create the Project
First, install the LangGraph CLI from the official documentation: https://docs.langchain.com/langsmith/cli#installation
Then, generate a new project from the default template.
🌟 Please select a template:
1. New LangGraph Project - A simple, minimal chatbot with memory.
...
Enter the number of your template choice (default is 1): 1
You selected: New LangGraph Project - A simple, minimal chatbot with memory.
Choose language (1 for Python 🐍, 2 for JS/TS 🌐): 1
🎉 New project created at ...
2. Update Dependencies
Navigate to the project directory and edit pyproject.toml to include the necessary libraries.
$ cd weather-poet-app
$ nano pyproject.toml
Set the dependencies as follows:
3. Define the Agent
Modify src/agent/graph.py to define the agent.
The best part? It's literally the same code from the previous LangChain 1.0 post.
LangGraph is designed to productionize your existing LangChain agents seamlessly.
4. Configure Environment
Create a .env file in the root directory for your API keys.
Similarly to previous section, just copy the values from the previous LangChain 1.0 post.
LANGSMITH_PROJECT=new-agent
GOOGLE_API_KEY="YOUR_GOOGLE_API_KEY"
TAVILY_API_KEY="YOUR_TAVILY_API_KEY"
5. Run the Development Server
Set up a virtual environment, install the packages, and start the app.
$ python3 -m venv venv $ source ./venv/bin/activate $ pip install -e '.[dev]' $ langgraph dev --allow-blocking6. Test with the LangSmith UI
Automatically it will open the local URL provided by the langgraph dev command.
You'll be prompted to log in and then you can interact with the agent.
The process is quite visual, so here is a short screen recording of the login and first interaction:
After logging in, test the agent with an example prompt:
Example prompt:
Search for tomorrow's weather in Tel-Aviv and write a short poem about it.7. Test with the API
You can also interact with the agent programmatically. First, get the assistant_id.
Example output:
[{"assistant_id":"fe096781-5601-53d2-b2f6-0d4503f7e9ca"}]
Use assistant_id to send a request and parse the response.
Example output:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4878 0 4639 100 239 782 40 0:00:05 0:00:05 --:--:-- 942
In Tel-Aviv, a sunny day,
No rain in sight, just clear blue sky.
Warm breezes blow, a gentle sway,
As temperatures in comfort lie.
Conclusion
LangGraph 1.0 provides a stable toolkit for deploying agents as full-fledged applications.
The ability to take existing agent code and seamlessly wrap it in a web service, complete with a UI and an API, makes it a powerful framework for building practical AI applications.
.png)

