Backend: Express + Socket.io server with whatsapp-web.js session management, in-memory inbound/outbound queues with idempotency, exponential-backoff retry, and Claude AI draft generation via Anthropic SDK. Frontend: Modern dark-theme single-page dashboard with session status card, real-time inbox, conversation view, AI compose box, and operations panel. Demo mode (DEMO_MODE=true) runs with sample data, no real WhatsApp needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
419 B
YAML
25 lines
419 B
YAML
app: whatsapp-ai-agent
|
|
region: asia-south1
|
|
entrypoint: server.js
|
|
build:
|
|
builtin: nodejs
|
|
serverlessConfig:
|
|
env:
|
|
DEMO_MODE: "true"
|
|
ANTHROPIC_API_KEY: "your-api-key-here"
|
|
portMap:
|
|
- Name: http
|
|
Port: 8080
|
|
Protocol: http
|
|
resources:
|
|
CPU: 1
|
|
MemoryMB: 2048
|
|
MemoryMaxMB: 3072
|
|
DiskMB: 4096
|
|
timeout: 3600
|
|
scaling:
|
|
AutoStop: false
|
|
Min: 1
|
|
Max: 1
|
|
MaxIdleTime: 3600
|