๐ŸŒฟ Hire Gardener

AI agent that finds, negotiates with, and hires a grass cutting service โ€” entirely on your behalf via WhatsApp

Python Streamlit Ollama ยท Llama3 WhatsApp Cloud API Local LLM

๐Ÿ“‹ Project Overview & Problem Statement

Challenge: Hiring a grass cutting service in Malaysia involves multiple rounds of WhatsApp messages โ€” finding providers, confirming coverage, negotiating rates, sharing the work area, confirming the booking, and verifying the job when it is done. This takes hours of back-and-forth communication that most property owners would rather not deal with.

Solution: Hire Gardener is an AI agent that handles the entire vendor communication workflow on your behalf. You tell it where the grass needs cutting, upload a photo and video of the area, and the AI does everything else โ€” contacting providers, collecting quotes, confirming the booking, and verifying job completion. Service providers interact naturally over WhatsApp and never know they are talking to an AI.

Key Benefits

๐Ÿ”„ 6-Stage Workflow

1

Discovery

AI identifies 3 grass cutting providers operating in the user's specified area.

2

Outreach

AI sends a WhatsApp message to all 3 providers asking if they cover the target area.

3

Quoting

For providers who respond positively, the AI sends the user's area photo and video, then requests a rate and available schedule.

4

Selection

AI compiles a quote comparison table. User selects their preferred provider.

5

Confirmation

AI contacts the chosen provider to confirm the rate, service date, and full job scope.

6

Verification

Provider sends completion photos. AI compares evidence against the agreed job scope and reports to the user. User approves payment.

๐Ÿ–ฅ๏ธ Application Features

๐Ÿ”„ Mock / Live Mode Switch

A single config flag switches between full simulation (Llama3 plays all vendor roles) and live mode (real WhatsApp Cloud API). No code changes needed โ€” just update your .env file.

๐Ÿ’ฌ WhatsApp-Like Demo

A fully interactive HTML demo simulates the entire 6-stage workflow with authentic WhatsApp UI โ€” green chat bubbles, typing indicators, media cards, and real-time message flow.

๐Ÿค– Vendor Persona Simulation

In mock mode, Llama3 plays three distinct vendor personas โ€” a friendly Malay-English contractor, a professional English-speaking service, and one who declines mid-conversation for realism.

๐Ÿ“Š Quote Comparison

After collecting responses, the AI extracts rate and availability from each vendor and presents a clean comparison table for the user to make an informed decision.

๐Ÿ“ธ Media Handling

User uploads an area photo and video before starting. These are sent to vendors during the quoting stage. In real mode, files are transmitted via the WhatsApp Cloud API.

โœ… AI Completion Verification

When the provider reports job done, the AI compares their completion report against the original confirmed job scope and produces a structured verification report.

๐Ÿค– AI Integration & Intelligence

๐Ÿ—ฃ๏ธ Agent Persona (Llama3)

The AI agent operates with a system prompt that instructs it to speak naturally in Malaysian English/Malay, keep messages short and conversational, and never reveal it is an AI.

๐ŸŽญ Vendor Simulation (Llama3)

Each mock vendor has its own system prompt defining personality, pricing range, availability, and whether they decline the job โ€” creating realistic, varied responses.

๐Ÿ“ Stage-Specific Prompts

Each of the 6 workflow stages has a dedicated prompt engineered for that context โ€” outreach, quote request, confirmation, completion report, and verification all use different instructions.

๐Ÿ”Œ Pluggable LLM Layer

The messaging module is fully decoupled from the workflow logic. Swapping Llama3 for a cloud model (GPT, Claude) requires changing only one module โ€” the workflow and UI remain unchanged.

๐Ÿ› ๏ธ Technical Architecture & Implementation

Frontend Stack

Streamlit HTML / CSS / JavaScript WhatsApp UI (Demo)

Backend Stack

Python 3.10+ Ollama Llama3 (Local) Requests Pandas

Real Mode Stack

Meta WhatsApp Cloud API Dedicated Prepaid SIM Webhook Listener

System Architecture

๐Ÿ“– Development Setup & Installation Guide

Prerequisites

Quick Start โ€” Mock Mode

# Clone the repository git clone https://github.com/lyven81/ai-project.git cd ai-project/projects/hire-gardener # Install dependencies pip install -r requirements.txt # Copy environment file cp .env.example .env # Start Ollama in a separate terminal ollama serve # Run the app streamlit run ui.py

Environment Configuration

# Mode: "mock" for simulation, "real" for live WhatsApp MODE=mock # Ollama (local LLM) OLLAMA_BASE_URL=http://127.0.0.1:11434 OLLAMA_MODEL=llama3:latest # WhatsApp Cloud API (only needed when MODE=real) WHATSAPP_API_TOKEN=your_meta_whatsapp_token_here WHATSAPP_PHONE_NUMBER_ID=your_phone_number_id_here

Switching to Real WhatsApp

๐Ÿ“Š Key Metrics

6
Workflow Stages
3
Vendors Contacted
0
Messages Typed by User
2
Modes: Mock + Live

Business Value