Skip to content

About

PetBloom is an AI-powered pet care platform built around an Agentic AI architecture combining long-term memory, tool calling, contextual retrieval, streaming LLM responses, and personalized recommendation generation.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Β 
Β 

Repository files navigation

🐾 PetBloom 🌸

An AI-powered Pet Care Concierge that helps pet owners track health, remember important events, and receive personalized care recommendations.

React TypeScript Vite TailwindCSS Zustand Gemini License: MIT


πŸ“– Overview

PetBloom is an AI-powered pet care platform built around an Agentic AI architecture combining long-term memory, tool calling, contextual retrieval, streaming LLM responses, and personalized recommendation generation.

Instead of simply storing pet information, PetBloom continuously observes daily care activities, remembers important events, analyzes historical patterns, and generates intelligent recommendations that help owners provide healthier and more consistent care.

The project demonstrates how modern AI agents can combine memory, reasoning, tool use, and contextual retrieval to solve real-world problems.

πŸš€ Live Demo

🌐 Live App: https://petbloom-40612.web.app

❓ Problem

Pet owners often struggle to maintain consistent care routines for their pets.

Important tasks such as vaccination schedules, medication, hydration, exercise, nutrition, and symptom tracking are usually managed through scattered notes, reminders, or memory.

Most existing pet apps act only as record-keeping tools and do not understand the pet's history or provide personalized guidance.

PetBloom addresses this by creating an AI-powered companion that remembers pet information, analyzes care patterns, and proactively helps owners make better decisions.

πŸ’‘ Solution

PetBloom acts as an intelligent pet care assistant that combines AI reasoning, long-term memory, and personalized recommendations.

The system:

  • stores important pet information
  • learns from daily care activities
  • retrieves relevant history during conversations
  • provides personalized suggestions
  • helps owners maintain healthier routines

πŸ€” Why an AI Agent?

Traditional pet apps only store information.

PetBloom uses an AI Agent because pet care requires understanding context over time.

A normal chatbot answers based only on the current message.

PetBloom can:

  • 🧠 Remember previous pet information
  • πŸ” Retrieve relevant history
  • πŸ› οΈ Use tools to gather additional context
  • πŸ’­ Reason over multiple data sources
  • πŸ’‘ Provide personalized recommendations

This allows PetBloom to move from passive tracking to proactive care assistance.


✨ Features

πŸ€– AI Concierge

  • AI-powered pet assistant
  • Context-aware conversations
  • Live Gemini streaming responses
  • Markdown support
  • Suggested follow-up questions
  • Rich AI response cards

🐢 Pet Management

  • Multiple pet profiles
  • Breed information
  • Medical history
  • Vaccination reminders
  • Lifestyle goals
  • Food inventory tracking

πŸ“Š Care Dashboard

  • Daily care checklist
  • Bloom Progress tracker
  • Quick activity logging
  • Upcoming reminders
  • Weather-aware insights
  • Recent activity timeline

🧠 Long-Term Memory

PetBloom doesn't simply answer questions.

It remembers:

  • allergies
  • symptoms
  • nutrition habits
  • exercise history
  • owner preferences
  • vaccination schedules

These memories are selectively retrieved to improve future AI responses.


πŸ“ˆ Weekly Analytics

  • Wellness score
  • Habit heatmap
  • Water trends
  • Exercise trends
  • Weight tracking
  • AI-generated care summaries

❀️ Health Tracking

Track:

  • meals
  • hydration
  • exercise
  • grooming
  • symptoms
  • medications
  • stool & urine logs

Everything contributes to personalized recommendations.


🎨 Modern UI

  • Responsive design
  • Tailwind CSS v4
  • Dark mode
  • Mobile navigation
  • Glassmorphism cards
  • Animated transitions
  • Loading animations
  • Accessible components

πŸ€– Agent Capabilities

PetBloom is designed as an AI Agent rather than a traditional chatbot.
It combines memory, tool usage, contextual retrieval, and reasoning to provide personalized pet care assistance.


🧠 1. Long-Term Memory

PetBloom maintains important information about each pet and retrieves relevant details when needed.

The agent remembers:

  • 🐾 Pet profile information

    • Name
    • Breed
    • Age
    • Preferences
  • πŸ₯ Health history

    • Previous symptoms
    • Medical observations
    • Allergies
    • Vaccination records
  • πŸ– Care patterns

    • Nutrition habits
    • Exercise routines
    • Owner preferences

This allows PetBloom to provide responses based on the pet's history instead of generic answers.


πŸ› οΈ 2. Tool Usage

PetBloom uses specialized tools to collect additional context and improve decision-making.

Available tools include:

πŸ₯ Health Tracker

Tracks and retrieves:

  • Symptoms
  • Medications
  • Health observations
  • Medical history

πŸƒ Activity Tracker

Monitors:

  • Exercise patterns
  • Activity levels
  • Daily routines

🌦️ Weather Information

Uses environmental context to provide better recommendations.

Example:

"Since today's temperature is high, consider reducing outdoor activity and ensuring your pet has enough water."

Tools allow the agent to gather real-world information before generating recommendations.


🧩 3. Contextual Reasoning

PetBloom combines multiple sources of information before responding.

Instead of answering isolated questions, PetBloom understands patterns over time.

The agent analyzes:

Current User Query + Retrieved Memories + Pet History + Tool Outputs ↓ AI Reasoning ↓ Personalized Response

Example:

A decrease in activity alone may not be concerning.

However:

↓ Activity + ↓ Water Intake + ↓ Appetite + Previous Health History

may indicate that the owner should monitor the pet more carefully.


πŸ’‘ 4. Personalized Recommendations

After analyzing context, PetBloom generates actionable suggestions.

Recommendations can include:

  • πŸ₯— Nutrition adjustments
  • πŸ’§ Hydration reminders
  • πŸƒ Activity suggestions
  • πŸ’Š Medication reminders
  • 🩺 Health monitoring advice

The goal is to transform pet care from passive tracking into proactive assistance.


πŸ—οΈ AI Agent Architecture

                   User
                     β”‚
                     β–Ό
              Chat Interface
                     β”‚
                     β–Ό
             Agent Executor
                     β”‚
     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
     β–Ό               β–Ό                β–Ό
 Tool Registry   Memory Search   Prompt Builder
     β”‚               β”‚                β”‚
     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     β–Ό
             Gemini API / Mock AI
                     β”‚
                     β–Ό
            Streaming AI Response
                     β”‚
                     β–Ό
              Recommendation Engine
                     β”‚
                     β–Ό
                 Dashboard

🧩 Agent Workflow

PetBloom follows an agentic workflow inspired by modern AI systems.

Observe
      ↓
Remember
      ↓
Retrieve Context
      ↓
Reason
      ↓
Generate Response
      ↓
Recommend Actions
      ↓
Update Memory

πŸ› οΈ Tech Stack

Technology Purpose
React Frontend
TypeScript Type Safety
Vite Build Tool
Tailwind CSS v4 Styling
Zustand State Management
React Router Routing
Gemini API AI Responses
Canvas Confetti Celebration Effects
Firebase Deployment & Hosting

πŸ“‚ Project Structure

src/
β”œβ”€β”€ app/
β”œβ”€β”€ assets/
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ layout/
β”‚   └── ui/
β”œβ”€β”€ config/
β”œβ”€β”€ data/
β”œβ”€β”€ features/
β”‚   β”œβ”€β”€ auth/
β”‚   β”œβ”€β”€ chat/
β”‚   β”œβ”€β”€ dashboard/
β”‚   β”œβ”€β”€ error/
β”‚   β”œβ”€β”€ exercise/
β”‚   β”œβ”€β”€ health/
β”‚   β”œβ”€β”€ hygiene/
β”‚   β”œβ”€β”€ landing/
β”‚   β”œβ”€β”€ nutrition/
β”‚   β”œβ”€β”€ onboarding/
β”‚   β”œβ”€β”€ profile/
β”‚   β”œβ”€β”€ reports/
β”‚   └── settings/
β”œβ”€β”€ layouts/
β”œβ”€β”€ lib/
β”œβ”€β”€ pages/
β”œβ”€β”€ services/
β”‚   β”œβ”€β”€ agent/
β”‚   β”œβ”€β”€ api/
β”‚   β”œβ”€β”€ mock/
β”‚   β”œβ”€β”€ aiService.ts
β”‚   β”œβ”€β”€ authService.ts
β”‚   β”œβ”€β”€ geminiService.ts
β”‚   β”œβ”€β”€ index.ts
β”‚   β”œβ”€β”€ mapsService.ts
β”‚   β”œβ”€β”€ petService.ts
β”‚   β”œβ”€β”€ recommendationEngine.ts
β”‚   └── weatherService.ts
β”œβ”€β”€ store/
β”œβ”€β”€ stores/
β”œβ”€β”€ types/
β”œβ”€β”€ utils/
β”œβ”€β”€ App.css
β”œβ”€β”€ App.tsx
β”œβ”€β”€ index.css
β”œβ”€β”€ main.tsx
└── vite-env.d.ts

πŸš€ Getting Started

Clone the repository

git clone https://github.com/riaannjoe/PetBloom.git

Move into the project

cd PetBloom

Install dependencies

npm install

Run locally

npm run dev

Build production version

npm run build

Preview production build

npm run preview

πŸ”‘ Environment Variables

Create a .env file.

VITE_GEMINI_API_KEY=YOUR_API_KEY
VITE_USE_MOCK_API=true
VITE_API_BASE_URL=http://localhost:3001/api

πŸ“Έ Screenshots

image image image image image image image

🌟 Highlights

βœ… AI Concierge

βœ… Long-Term Memory

βœ… Recommendation Engine

βœ… Context Retrieval

βœ… Live Gemini Streaming

βœ… Weekly Analytics

βœ… Multi-Pet Support

βœ… Modern Responsive UI


🌐 Deployment

PetBloom is deployed using Firebase Hosting.

Production URL: https://petbloom-40612.web.app

The application is configured for public access so users and judges can interact with the AI assistant directly.


πŸ” Security Considerations

PetBloom follows secure development practices:

  • πŸ”‘ API keys are stored using environment variables
  • 🚫 Sensitive credentials are never committed to GitHub
  • πŸ›‘οΈ .env files are excluded using .gitignore
  • βš™οΈ Mock mode allows development without exposing production keys

πŸ›€οΈ Development Journey

PetBloom started as a simple pet tracking idea.

During development, it evolved into an AI Agent system by incorporating:

  • Long-term memory
  • Context retrieval
  • Tool usage
  • Reasoning-based recommendations

The main learning was that useful AI systems are not created by simply connecting an LLM to an interface.

They require:

  • relevant context
  • memory
  • tools
  • clear responsibilities

🚧 Future Improvements

  • Voice conversations
  • Camera-based pet health detection
  • Smart collar integration
  • Wearable device support
  • Veterinary portal
  • Cloud synchronization
  • Push notifications
  • AI anomaly detection
  • Medication reminder automation

πŸ† Kaggle AI Agents Capstone

This project was created as part of the Google Γ— Kaggle AI Agents: Intensive Vibe Coding Capstone.

It demonstrates practical applications of:

  • AI Agents
  • Long-Term Memory
  • Tool Calling
  • Context Retrieval
  • Streaming LLM Responses
  • Recommendation Systems
  • Modern Frontend Architecture

YouTube demo video: https://youtu.be/dcVAso7lU_Q?si=p_yQFIUnSRirD9_p


πŸ‘©β€πŸ’» Author

Ria Ann Joe

GitHub: https://github.com/riaannjoe


πŸ“„ License

This project is licensed under the MIT License. See the LICENSE file for details.

About

PetBloom is an AI-powered pet care platform built around an Agentic AI architecture combining long-term memory, tool calling, contextual retrieval, streaming LLM responses, and personalized recommendation generation.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages