KembaliArsip / superapp-automation / webautomation
superapp-automation
webautomation
43 file · 169 KB
Preview langsung dinonaktifkan untuk static export. Buka repo di GitHub untuk melihat halaman HTML asli.
README
WebAutomation - Sistem Automasi Web All-in-One
Sistem informasi web untuk automasi tugas-tugas repetitif di website pribadi Anda. Buat workflow, definisikan langkah-langkah, lalu jalankan secara otomatis.
Fitur Utama
- Visual Workflow Builder - Buat workflow dengan drag & drop langkah-langkah automasi
- 20+ Tipe Aksi - Navigate, click, type, extract data, screenshot, JavaScript, HTTP request, dll
- AI Generator (Kimi AI) - Deskripsikan tugas, AI buatkan workflow otomatis
- Scheduler - Jadwalkan workflow dengan cron expression atau interval
- Execution History - Lihat log lengkap setiap eksekusi workflow
- Variable System - Simpan dan gunakan variabel antar langkah
- Error Handling - Stop, skip, atau retry otomatis saat langkah gagal
- Screenshot - Ambil screenshot otomatis sebelum/sesudah langkah
- Dark Mode - Support tema gelap
Tech Stack
- Backend: Python, FastAPI, SQLAlchemy, Playwright
- Frontend: React, Vite, TailwindCSS, Zustand
- AI: Kimi AI (Moonshot) API
- Scheduler: APScheduler
- Database: SQLite (default)
Quick Start
Dengan Docker (Rekomendasi)
docker-compose up --build
Development Mode
# Terminal 1: Backend
cd backend
pip install -r requirements.txt
playwright install chromium
uvicorn app.main:app --reload --port 8000
# Terminal 2: Frontend
cd frontend
npm install
npm run dev
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Docs: http://localhost:8000/docs
Atau gunakan script:
./scripts/start-dev.sh
Tipe Langkah yang Tersedia
| Tipe | Deskripsi |
|---|---|
navigate | Buka URL |
click | Klik elemen |
type | Ketik teks di input |
select | Pilih opsi dropdown |
wait | Tunggu elemen/waktu |
screenshot | Ambil screenshot |
extract | Ambil data (teks/atribut) |
scroll | Gulir halaman |
hover | Hover elemen |
press_key | Tekan tombol keyboard |
javascript | Jalankan kode JS |
delay | Tunggu (ms) |
ai_action | AI tentukan aksi terbaik |
set_variable | Set variabel |
assert | Verifikasi kondisi |
http_request | Kirim HTTP request |
Contoh Workflow
Login Otomatis
- Navigate ke halaman login
- Type email ke
#email - Type password ke
#password - Click tombol
#login-btn - Wait element
.dashboard - Screenshot
Scrape Data Harga
- Navigate ke halaman produk
- Extract
.product-name->name - Extract
.product-price->price - Screenshot
Environment Variables
KIMI_API_KEY=your-key # API key Kimi AI
DEBUG=true # Debug mode
PLAYWRIGHT_HEADLESS=true # Browser headless mode
API Endpoints
GET /api/workflows- List semua workflowPOST /api/workflows- Buat workflow baruGET /api/workflows/{id}- Detail workflowPUT /api/workflows/{id}- Update workflowDELETE /api/workflows/{id}- Hapus workflowPOST /api/workflows/{id}/run- Jalankan workflowGET /api/workflows/{id}/executions- Riwayat eksekusiPOST /api/workflows/ai/generate- AI generate workflowGET /api/workflows/stats/dashboard- Statistik dashboard
File Utama
- .env.example
- .gitignore
- Dockerfile
- README.md
- docker-compose.yml
- index.html