Mau bikin sistem auto-reply di WhatsApp yang canggih kayak customer service profesional, tapi gak mau ribet ngoding? Tenang, sekarang kamu bisa bikin Auto Balas WhatsApp dengan AI hanya dalam beberapa langkah mudah — tanpa harus jadi programmer senior!
🚀 Apa yang Kamu Butuhkan?
- Laptop atau server (VPS juga boleh!)
- Internet (ya iyalah 😄)
- Akun Groq atau OpenAI (buat API Key)
📦 Step-by-Step Setup
1. Install Node.js (versi terbaru)
Download dan install versi LTS terbaru (v22.14.0 atau lebih tinggi): 👉 https://nodejs.org/en/download
Cek versi setelah install:
node -v
2. Install Git
Git dibutuhkan buat clone repository project-nya.
Download Git: 👉 https://git-scm.com/downloads
🛠️ Clone Project Bot WhatsApp AI
Buka terminal / command prompt kamu dan jalankan:
git clone https://github.com/ffeliandra/wa-AI.git
cd wa-AI
- Daftar & login ke Groq: 👉 https://console.groq.com/keys
- Salin API Key yang kamu dapatkan
- Update file
.env
di folderwa-AI
, lalu isi seperti ini:
GROQ_API_KEY=isi_token_kamu_disini
📥 Install Dependency
Jalankan perintah berikut untuk install semua package:
npm install
Jalankan perintah berikut jika package minta update :
npx npm-check-updates -u
▶️ Jalankan Bot
Sekarang kamu bisa mulai jalanin bot-nya:
node index.js
Bot akan generate QR Code untuk login WhatsApp, tinggal scan aja pakai aplikasi WhatsApp kamu!
🧠 Bonus Tips
- Mau botnya selalu hidup? Pakai
pm2
:
npm install -g pm2 pm2 start index.js --name wa-bot