📱 WhatsApp Bot EDC — wa.edc.ar

Versión v1.0.0 · Generado: 2026-06-26 13:15:02 · https://wa.edc.ar

Bot productivo de WhatsApp para EDC: recibe consultas, transcribe audios, responde con Claude, integra Instagram, panel admin.

📝 Cambios de esta versión:
[Snapshot maestro semanal]
🔐 CONFIDENCIAL. Este documento contiene credenciales. NO compartir. Si tu Gmail se compromete, rotar todas las claves listadas.

📋 Overview

Stack

FrameworkFlask + gunicorn (2 workers, 4 threads)
Path/home/ubuntu/wa_bot
Puerto8770
Vhost/etc/nginx/sites-available/wa.edc.ar
Servicewa-bot.service
Tamaño514M (incluye media + venv)

DB

TipoSQLite
Path/home/ubuntu/wa_bot/wa_history.db

🔌 APIs y credenciales

Meta WhatsApp Cloud API

App ID1488226509441383
Phone Number ID1151285551395310
WABA ID1278548347725564
Access TokenEAAVJiLxwyWcBRbUudgIZAfg3H8qSBr3jjXfycTdZBJPZBSOgTYkqjh8bvwzZAfn6civTiomDOEhIrK7ZCMU5gfGE2VTg4KtjgmCkfCHZAdx1zFjS4ZBQL1khFqHs2EpLyVdFxi5Cra0iO2BBZCMaSZAzzfNXGfzEMSltReFK7ZCrwCh0pojObAqZBZCBqSf35lOg92ggmwZDZD
Verify Tokenedc_wa_verify_2026_xyz789

Instagram (Meta)

Access TokenIGAAjkLqW26ylBZAFkya0xuT05sQVEteWVRSHR4NkJQYk9KSGFHNXhTVGZA0STE1Q05jUTNOLVA3ZA0pjNUVvYlMyckFmRXM4RklxNXNNQ19zNnZAoNzBEenRSSW5NaTZAhcFpvZAW0yODJTdXlET0Q4eHFuSmQ3QTI3dmVuaFdTR05JcwZDZD
User ID35814424038172869
Verify Tokenedc_ig_verify_2026_xyz789

Anthropic (Claude)

API key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
Modeloclaude-haiku-4-5-20251001

Flask

SECRET_KEYa8f3e9c2d1b7456e8f0a1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f
ENVproduction

👥 Usuarios iniciales del panel

Ale

Usernamemramirez
NombreAle
Password inicialedc_ale_2026

Fran

Usernameftriadani
NombreFran
Password inicialedc_fran_2026
Estos son los passwords INICIALES del seed. Si los usuarios los cambiaron, hay que resetearlos desde el panel admin.

📂 Paths configurados

Storage

DB Path/home/ubuntu/wa_bot/wa_history.db
Media Path/home/ubuntu/wa_bot/media
Log Path/home/ubuntu/wa_bot/logs

Horario operativo

TimezoneAmerica/Argentina/Cordoba
Inicio8
Fin17

⚙️ Servicio systemd principal

wa-bot.service

[Unit]
Description=EDC WhatsApp Bot (wa.edc.ar)
After=network.target

[Service]
Type=simple
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu/wa_bot
EnvironmentFile=/home/ubuntu/wa_bot/.env
ExecStart=/home/ubuntu/wa_bot/venv/bin/gunicorn \
    --workers 2 \
    --threads 4 \
    --bind 127.0.0.1:8770 \
    --access-logfile /home/ubuntu/wa_bot/logs/access.log \
    --error-logfile /home/ubuntu/wa_bot/logs/error.log \
    --timeout 60 \
    app:app
Restart=always
RestartSec=5
StandardOutput=append:/home/ubuntu/wa_bot/logs/stdout.log
StandardError=append:/home/ubuntu/wa_bot/logs/stderr.log

[Install]
WantedBy=multi-user.target
También hay wa-bot-backup.service (Google Drive — actualmente FAILED) y wa-bot-reflotador.service (one-shot, inactive).

🛠️ Comandos

Restart

sudo systemctl restart wa-bot

Logs

sudo journalctl -u wa-bot -n 100 --no-pager
tail -f /home/ubuntu/wa_bot/logs/error.log

Backup DB

cp /home/ubuntu/wa_bot/wa_history.db ~/wa_history_$(date +%Y%m%d).db

Bump

sudo /opt/backup-system/bump.sh wa-bot patch "Descripción"