Tree Care AI Web Application Case Study
Project Overview
TreeCare is an AI-powered web application built to modernize tree care services. It allows users to upload plant images for species identification, check plant health, estimate tree trimming/removal costs, and connect with nearby arborists, all through a responsive web interface.
The app features a React frontend and a backend powered by FastAPI, Node.js, and MongoDB. A smart AI chatbot, powered by LangChain and Google Generative AI (Gemini), guides users through every step, from identifying plants to estimating service prices.
Relevant keywords: AI tree care app, plant identification tool, arborist finder, tree removal cost calculator, chatbot for landscaping services
Challenge & Solution
Users needed quick, accurate diagnostics from photo uploads.
Solution: Integrated Plant.id API via FastAPI to deliver species, health status, and disease suggestions based on uploaded images.
Accurate pricing had to consider multiple variables.
Solution: Built cost calculators using FastAPI and integrated data from RentCast, Google Maps, and AccuWeather to factor in location, urgency, and weather conditions.
Users often didn’t know where to find trusted help.
Solution: Integrated Yelp API to display top-rated nearby arborists based on user location.
Non-technical users needed help navigating options.
Solution: Deployed a LangChain + Gemini-powered chatbot with memory, real-time tool use, and personalized follow-ups.
Tech Stack Implementation
Frontend
React + Tailwind CSS: For fast, responsive UI
Zustand & React Hook Form: For state and form handling
Zod + React Query: For input validation and async data
Axios + Sonner: For API communication and user feedback
Backend
FastAPI: Main API logic (chat, pricing, image upload)
Node.js/Express.js: Additional endpoints and MongoDB integration
MongoDB: Stores user data, chats, and service requests
AI & APIs
LangChain + LangGraph + Gemini AI: Smart, conversational chatbot
Plant.id API: Image-based plant diagnostics
Yelp API: Arborist search
AccuWeather + RentCast + Google Maps APIs: Cost estimation data points
Security
Environment variables: For API key safety
Input and file validation: Using Zod and Pydantic
CORS setup and error handling: Ensures secure and user-friendly experience