DEV Community

Daniel Ioni
Daniel Ioni

Posted on

🤖 MyZubster AI Automation: Building an Intelligent System for Smart Agriculture

🤖 MyZubster AI Automation: Building an Intelligent System for Smart Agriculture
Introduction

MyZubster is an open-source ecosystem that combines three fundamental elements: a global plant map, privacy-first payments with Monero, and human-centered AI. In this article, I'll share how I built an AI automation system that automatically manages GitHub, Telegram, and the smart garden.
The Problem

Managing an open-source project like MyZubster means facing daily challenges:

Too many issues requiring manual triage on GitHub

Bounties to create and manage one by one

Slow communication with contributors

Manual monitoring of repositories

Garden data to analyze and interpret
Enter fullscreen mode Exit fullscreen mode

The Solution

I built a modular AI automation system that:

Monitors GitHub in real-time

Analyzes issues with AI models (Gemma, Llama, DeepSeek)

Creates bounties automatically

Sends notifications via Telegram

Manages smart garden data
Enter fullscreen mode Exit fullscreen mode

System Architecture
text

┌─────────────────────────────────────────────────────────────┐
│ MyZubster AI Automation │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ Telegram │ │ GitHub │ │ AI Models │ │
│ │ Bot Handler │ │ Monitor │ │ │ │
│ └──────────────┘ └──────────────┘ └──────────────┘ │
│ │ │ │ │
│ └─────────────────┼──────────────────┘ │
│ │ │
│ ┌────────▼────────┐ │
│ │ Automation │ │
│ │ Orchestrator │ │
│ └─────────────────┘ │
│ │ │
│ ┌─────────────────┼──────────────────┐ │
│ │ │ │ │
│ ┌──────▼──────┐ ┌───────▼───────┐ ┌──────▼──────┐ │
│ │ Database │ │ Backend │ │ Frontend │ │
│ │ (MongoDB) │ │ (Node.js) │ │ (React) │ │
│ └─────────────┘ └───────────────┘ └─────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘

Technology Stack
Core Technologies

Node.js - Runtime and API server

Express - Backend framework

MongoDB - Database

React - Frontend with Leaflet maps
Enter fullscreen mode Exit fullscreen mode

AI Stack

Ollama - Local AI model management

Gemma 2B - Google's lightweight model (default)

Llama 3.2 - Meta's powerful model (fallback)

DeepSeek R1 - Reasoning model (fallback)
Enter fullscreen mode Exit fullscreen mode

Automation Stack

node-telegram-bot-api - Telegram integration

Octokit - GitHub API client

node-cron - Scheduled tasks

systemd - Production service management

Winston - Structured logging
Enter fullscreen mode Exit fullscreen mode

🤖 The Telegram Bot

The Telegram bot (@myzubster_bot) is the main interface for the community. It supports the following commands:
Command Description
/start Welcome message
/status System status
/bounties Active bounties
/github Recent GitHub activity
/analyze [ID] AI analysis of an issue
/gardenstats [ID] Smart garden statistics
/gardendata [ID] Real-time garden data
/help Show available commands
AI Analysis Example

When you send /analyze 12, the bot fetches issue #12 from GitHub and generates a structured analysis:
text

📋 Issue Analysis - #12

Title: [DOCS] Smart Garden Practical Guide
State: open
Labels: docs, enhancement
Created: 31/07/2026

Analysis:
Complexity: Medium
Priority: Medium
Suggested Approach: Review the issue description and check for similar issues before implementation.
Estimated Effort: 4-8 hours

🌱 Smart Garden Features

The system now supports smart garden monitoring with sensors:
Garden Statistics

The /gardenstats command provides comprehensive statistics:
text

🌱 Garden Statistics - #123

📊 Average Data:
• pH: 6.8
• EC: 1200 µS/cm
• Temperature: 22.5 °C
• Humidity: 65%

📈 Trend:
• pH: stable
• EC: increasing
• Temperature: stable

📅 Last Update: 31/07/2026 14:30

Real-time Data

The /gardendata command shows live sensor readings:
text

📡 Real-time Data - Garden #123

🌡️ pH: 6.8
EC: 1200 µS/cm
🌡️ Temperature: 22.5 °C
💧 Humidity: 65%

🕐 Updated: 31/07/2026 14:30

🐙 GitHub Integration

The system automatically monitors GitHub repositories and:

Detects new issues in real-time

Analyzes issue content with AI

Creates bounties automatically for labeled issues

Sends notifications to Telegram

Tracks PRs and comments
Enter fullscreen mode Exit fullscreen mode

🧠 AI Orchestrator

The AI Orchestrator is the brain of the system, designed for flexibility and resilience:
Multi-Model Support

Gemma 2B - Fast and lightweight (default)

Llama 3.2 - More powerful (fallback)

DeepSeek R1 - Advanced reasoning (optional)
Enter fullscreen mode Exit fullscreen mode

Automatic Fallback

If one model fails, the system automatically switches to the next available model, ensuring continuous operation.
Structured Analysis

The AI provides:

Summary (1-2 sentences)

Complexity (Low/Medium/High with reasoning)

Priority (Low/Medium/High with reasoning)

Technical Approach (step by step)

Estimated Effort (in hours)

Dependencies

Potential Risks
Enter fullscreen mode Exit fullscreen mode

📊 Results Achieved
Metric Before After
Issue response time 24-48 hours < 5 minutes
Bounty creation Manual (2-3 days) Automatic (5 minutes)
Contributor notifications Manual emails Automatic Telegram
Time spent on triage 5+ hours/week 0 hours (automated)
📁 Project Structure
text

services/ai-automation/
├── src/
│ ├── telegram/
│ │ └── bot.js # Telegram bot handler
│ ├── github/
│ │ └── monitor.js # GitHub monitor
│ ├── ai/
│ │ └── orchestrator.js # AI orchestrator
│ └── orchestrator/
│ └── index.js # Main orchestrator
├── logs/
│ ├── combined.log # General log
│ └── error.log # Error log
├── scripts/
│ └── ... # Utility scripts
├── .env.example # Configuration template
├── index.js # Entry point
├── package.json
├── create-issues.js # GitHub issues creator
└── README.md

🔧 Installation
bash

Clone the repository

git clone https://github.com/MyZubster-Ecosystem/myzubster.git
cd myzubster/services/ai-automation

Install dependencies

npm install

Configure environment

cp .env.example .env

Add your tokens: TELEGRAM_BOT_TOKEN, GITHUB_TOKEN

Start the system

npm start

🔗 Useful Links

GitHub Repository: https://github.com/MyZubster-Ecosystem/myzubster

Telegram Bot: https://t.me/myzubster_bot

Documentation: https://github.com/MyZubster-Ecosystem/myzubster/tree/main/docs

Telegram Channel: https://t.me/myzubster
Enter fullscreen mode Exit fullscreen mode

📝 Tags

AI OpenSource NodeJS Automation Telegram GitHub MachineLearning JavaScript DevOps Gardening IoT Monero
🙏 Acknowledgments

@foxxx009 - For the outstanding work on the 5 bilingual documents

@leanworld7-netizen - For the escrow gateway implementation

MyZubster Community - For support, feedback, and enthusiasm

Open Source Community - For all the incredible tools
Enter fullscreen mode Exit fullscreen mode

Built with ❤️ by the MyZubster Team

Top comments (0)