AI-Chat-First Forecasting Assistant untuk UMKM Indonesia
Bantuaku adalah platform SaaS yang membantu UMKM Indonesia membuat keputusan bisnis berbasis data melalui AI chat sebagai interface utama. Platform ini mengumpulkan informasi bisnis secara conversational dan menghasilkan insights praktis.
- Conversational Interface - Chat dengan AI untuk mengumpulkan data bisnis (powered by Kolosal.ai)
- Floating Chat Widget - Akses cepat AI Assistant dari halaman manapun
- File Upload Support - Upload CSV, XLSX, atau PDF untuk ekstraksi data otomatis (OCR powered by Kolosal.ai)
- Conversation History - Riwayat percakapan tersimpan dan dapat diakses kapan saja
- Sales Projections - Proyeksi penjualan 30/60/90 hari ke depan berdasarkan data penjualan yang diinput user
- Interactive Charts - Visualisasi trend historis vs prediksi AI dengan AreaChart
- Confidence Metrics - Tingkat akurasi prediksi ditampilkan dengan jelas
- AI Insights Panel - Rekomendasi strategis berdasarkan analisis forecast
- Local & Global Trends - Prediksi tren pasar lokal (Indonesia) dan global untuk produk Anda
- Trending Products - Daftar produk yang sedang naik daun dengan growth metrics
- Market Intelligence - Analisis kompetisi dan peluang pasar
- Interactive Tabs - Switch antara analisis lokal dan global dengan mudah
- Personalized Strategies - Rekomendasi kampanye marketing yang dipersonalisasi
- Multi-Channel Approach - Strategi untuk Social Media, Email, dan Paid Ads
- Campaign Performance - Estimasi dampak dan ROI untuk setiap rekomendasi
- Content Generation - Generate konten iklan dengan AI
- Compliance Dashboard - Monitor status kepatuhan bisnis terhadap regulasi terbaru
- Regulation Alerts - Notifikasi untuk peraturan urgent yang perlu perhatian
- Compliance Score - Skor kepatuhan bisnis dengan breakdown detail
- Action Items - Daftar peraturan yang perlu ditindaklanjuti
- Real-time Updates - Notifikasi untuk forecast selesai, update regulasi, dan tren pasar baru
- Priority Indicators - Badge untuk notifikasi urgent dan penting
- Dark Glass UI - Desain modern dengan dark glass mode untuk readability optimal
- Docker & Docker Compose
- Node.js 20+ (untuk development)
- Go 1.25+ (untuk development)
# Clone repository
git clone https://github.com/your-org/bantuaku.git
cd bantuaku
# Start all services
make dev
# Or manually:
docker-compose up --buildAplikasi akan berjalan di:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8080
- PostgreSQL: localhost:5432
- Redis: localhost:6379
Email: demo@bantuaku.id
Password: demo123
bantuaku/
โโโ backend/ # Go backend API
โ โโโ config/ # Configuration
โ โโโ handlers/ # HTTP handlers
โ โ โโโ chat.go # Chat & conversation handlers
โ โ โโโ files.go # File upload handlers
โ โ โโโ insights.go # Insights generation handlers
โ โ โโโ dashboard.go # Dashboard summary handler
โ โ โโโ companies.go # Company profile handlers
โ โโโ middleware/ # Auth, CORS, logging
โ โโโ models/ # Data models
โ โ โโโ company.go # Company & CompanyProfile
โ โ โโโ conversation.go # Conversation & Message
โ โ โโโ file_upload.go # FileUpload & ExtractedData
โ โ โโโ data_source.go # DataSource
โ โ โโโ insight.go # Insight & result types
โ โโโ services/ # Business logic
โ โ โโโ kolosal/ # Kolosal.ai client (Chat & OCR)
โ โ โโโ storage/ # Database & Redis
โ โ โโโ chat/ # Chat service (TODO)
โ โ โโโ ingestion/ # File processing service (TODO)
โ โ โโโ forecasting/ # Forecast service (TODO)
โ โ โโโ connectors/ # External data connectors (TODO)
โ โ โโโ insights/ # Insights generation (TODO)
โ โโโ main.go
โโโ frontend/ # React frontend
โ โโโ src/
โ โ โโโ components/ # UI components
โ โ โ โโโ layout/ # Layout components (Sidebar, Header)
โ โ โ โโโ chat/ # Chat components (ChatInterface, ChatWidget)
โ โ โ โโโ ui/ # shadcn/ui components
โ โ โโโ pages/ # Page components
โ โ โ โโโ AIChatPage.tsx # AI Chat interface
โ โ โ โโโ DashboardPage.tsx # Dashboard overview
โ โ โ โโโ ForecastPage.tsx # Forecast insights
โ โ โ โโโ MarketPredictionPage.tsx # Market predictions
โ โ โ โโโ MarketingPage.tsx # Marketing recommendations
โ โ โ โโโ RegulationPage.tsx # Government regulations
โ โ โโโ state/ # State management (Zustand)
โ โ โ โโโ auth.ts # Authentication state
โ โ โ โโโ chat.ts # Chat state (messages, loading)
โ โ โโโ lib/ # Utilities & API clients
โ โโโ package.json
โโโ database/
โ โโโ migrations/ # SQL migrations
โ โโโ 003_add_chat_tables.sql # Chat, ingestion, insights tables
โโโ gh-assets/ # GitHub assets (screenshots)
โ โโโ dashboard.png
โ โโโ login-page.png
โ โโโ mobile-chat.png
โโโ .docs-private/ # Product & technical documentation
โโโ docker-compose.yml
โโโ .env.example # Environment variables template
โโโ Makefile
cd backend
go mod download
go run main.gocd frontend
npm install
npm run devCopy the example environment file and configure it:
# Copy the example file
cp .env.example .env
# Edit .env and add your values (especially KOLOSAL_API_KEY)
# See .env.example for all available configuration optionsRequired variables:
KOLOSAL_API_KEY- Get from https://api.kolosal.ai (optional for basic features)JWT_SECRET- Generate with:openssl rand -base64 32(change from default!)
Quick setup:
# Minimum required for local development
KOLOSAL_API_KEY=your-api-key-here
JWT_SECRET=your-secure-secret-hereSee .env.example for complete configuration options and documentation.
POST /api/v1/auth/register- Register new userPOST /api/v1/auth/login- Login
POST /api/v1/chat/start- Start new conversationPOST /api/v1/chat/message- Send message to AI assistantGET /api/v1/chat/conversations- List all conversationsGET /api/v1/chat/messages- Get messages from a conversation
POST /api/v1/files/upload- Upload CSV/XLSX/PDF files (with OCR processing)GET /api/v1/files/{id}- Get file upload informationGET /api/v1/files- List all file uploads
POST /api/v1/insights/forecast- Generate forecast insightsPOST /api/v1/insights/market- Generate market prediction insightsPOST /api/v1/insights/marketing- Generate marketing recommendationsPOST /api/v1/insights/regulation- Generate government regulation insightsGET /api/v1/insights- Get insight history
GET /api/v1/companies- List user's companiesGET /api/v1/companies/{id}- Get company profile (aggregated data)
GET /api/v1/dashboard/summary- Get dashboard KPIs and summaries
POST /api/v1/ai/analyze- Legacy AI analyze endpoint
| Component | Technology |
|---|---|
| Backend | Go 1.25 (net/http) |
| Frontend | React 18 + Vite + TypeScript + Tailwind CSS |
| UI Components | shadcn/ui (Radix UI primitives) |
| State Management | Zustand |
| Charts | Recharts |
| Database | PostgreSQL 18 |
| Cache | Redis 7 |
| AI | Kolosal.ai (Chat & OCR) |
| Deployment | Docker & Docker Compose |
- โ AI Chat Interface - Conversational data collection in Bahasa Indonesia
- โ Floating Chat Widget - Persistent chat button accessible from any page
- โ File Upload & OCR - CSV/XLSX/PDF upload with automatic text extraction (Kolosal.ai OCR)
- โ Forecast Insights - 30/60/90-day sales forecasting with interactive charts
- โ Market Prediction - Local (Indonesia) and global market trend analysis
- โ Marketing Recommendations - AI-generated campaign ideas and strategies
- โ Government Regulations - Indonesia-specific regulatory information with compliance tracking
- โ Company Profile - Aggregated business data from all sources
- โ Dashboard - Comprehensive overview with KPIs, charts, and quick actions
- โ Smart Notifications - Real-time updates with priority indicators
- โ "Neon Finance" Design System - Modern dark theme with emerald accents
- โ Glassmorphism Effects - Beautiful glass-like UI elements
- โ Responsive Design - Optimized for desktop and mobile devices
- โ Smooth Animations - Fade-in, slide transitions, and hover effects
- โ Mobile Navigation - Hamburger menu with slide-out sidebar
- โ Matrix Background - Tech animation effects on AI Chat page
- External Data Connectors - Tokopedia, Shopee, Bukalapak marketplace scraping
- Google Trends Integration - Real-time market trend data
- Regulation Scraper - Automated peraturan.go.id monitoring
- Advanced Forecasting - ML-based time-series forecasting
- Mobile App - React Native mobile application
- Billing & Subscriptions - 3-tier pricing (Free, Pro, Enterprise)
- Multi-Company Management - Support for multiple businesses per user
- Export Reports - PDF/Excel export for forecasts and insights
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ
โ Frontend โโโโโโถโ Backend (Go) โโโโโโถโ PostgreSQL โ
โ (React) โ โ โโโโโโโโโโโ โโโโโโโโโโโ โ โ โ
โ โ โ โ Chat โ โIngestionโ โ โโโโโโโโโโโโโโโ
โ - AI Chat โ โ โ Service โ โ Service โ โ
โ - Forecast โ โ โโโโโโโโโโโ โโโโโโโโโโโ โ โโโโโโโโโโโโโโโ
โ - Market โ โ โโโโโโโโโโโ โโโโโโโโโโโ โโโโโโถโ Redis โ
โ - Marketingโ โ โForecast โ โConnectorโ โ โ (Cache) โ
โ - Regulationโ โ โ Service โ โ Service โ โ โโโโโโโโโโโโโโโ
โ - Dashboardโ โ โโโโโโโโโโโ โโโโโโโโโโโ โ
โ - Widget โ โ โโโโโโโโโโโ โ โโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโ โ โ Insightsโ โโโโโโถโ Kolosal.ai โ
โ โ Service โ โ โ (Chat+OCR) โ
โ โโโโโโโโโโโ โ โโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
- Chat Service - Handles AI conversations and message history
- Ingestion Service - Processes file uploads (CSV/XLSX/PDF) with OCR
- Forecast Service - Generates sales forecasts based on user-provided sales data
- Connector Service - External data sources (marketplaces, trends, regulations)
- Insights Service - Generates four types of insights (forecast, market, marketing, regulation)
- Component-Based - Reusable UI components with shadcn/ui
- State Management - Zustand for global state (auth, chat)
- Routing - React Router for navigation
- Styling - Tailwind CSS with custom "Neon Finance" theme
- Charts - Recharts for data visualization
- Start Chat - User begins conversation with AI Assistant (via floating widget or dedicated page)
- Data Collection - AI asks about company, products, location, business model
- File Upload - User can upload CSV/XLSX/PDF files for automatic data extraction
- Profile Building - System builds comprehensive Company Profile from conversations and files
- Generate Insights - User navigates to four outcome pages:
- Forecast - Sales projections with interactive charts (generated if user provides sales data via chat or file upload)
- Market Prediction - Local and global market trends with trending products
- Marketing Recommendation - Campaign ideas and strategies with performance estimates
- Government Regulation - Relevant Indonesian regulations with compliance tracking
- Dashboard Overview - Centralized view of all KPIs, recent conversations, insights, and file uploads
All powered by Kolosal.ai for natural language understanding and OCR processing.
Apache License 2.0 - see LICENSE file for details.
We take security seriously. Please see our Security Policy for details on how to report vulnerabilities.
This repository uses automated security scanning:
- CodeQL - Static code analysis for security vulnerabilities
- CodeRabbit - AI-powered code reviews for security and quality
- Dependency Review - PR dependency scanning
- Security Workflows - npm audit and Go security scanners
To enable these features:
- Go to your repository Settings โ Code security and analysis
- Enable Code scanning (CodeQL)
- Enable Secret scanning
- Install CodeRabbit GitHub App (see CodeRabbit Setup Guide)
All security workflows are configured in .github/workflows/ and will run automatically on push and pull requests.
Note: Dependabot is disabled. Dependency updates are managed manually or through CodeRabbit reviews.
We use CodeRabbit for AI-powered code reviews that complement our security scanning tools.
- AI-Powered Reviews - Context-aware code analysis for Go and React/TypeScript
- Automated PR Summaries - Quick understanding of changes
- Line-by-Line Suggestions - Detailed feedback on code quality and best practices
- Natural Language Chat - Ask questions about code changes directly in PRs
- Cursor IDE Integration - Real-time code reviews in your editor
CodeRabbit is configured via .coderabbit.yaml with:
- Go backend review guidelines (error handling, security, concurrency)
- React/TypeScript frontend review guidelines (performance, accessibility, type safety)
- Path filters to focus on source code
- Integration with ESLint and Gitleaks
See CodeRabbit Setup Guide for detailed setup instructions.
Enggan Ngoding, Pecut AI
Built with โค๏ธ for IMPHNEN x Kolosal.ai Hackathon 2025
Bantuaku - Membantu UMKM Indonesia tumbuh dengan AI dan data ๐ฎ๐ฉ
- Kolosal.ai - For providing powerful AI chat and OCR capabilities
- CodeRabbit - For AI-powered code reviews and quality assurance
- shadcn/ui - For beautiful, accessible UI components
- Recharts - For elegant data visualization
- Tailwind CSS - For rapid UI development


