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

Image-Based Plant Identification

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.

Dynamic Tree Service Cost Estimation

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.

Finding Local Arborists

Users often didn’t know where to find trusted help.
Solution: Integrated Yelp API to display top-rated nearby arborists based on user location.

User Guidance and Interaction

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

Step 1

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

Step 2

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

Step 3

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

Step 4

Results & Value

1

Reduced service estimation time by 80%

2

Delivered image-based plant diagnosis in under 5 seconds

3

Increased arborist bookings by integrating location-based suggestions

4

Delivered a seamless AI-guided experience through a chatbot

Scroll to Top