cat > /var/www/html/manual.html << 'ENDOFFILE' The Bottom Line — Manual Operativo Completo V4.0
V4.0 — Mayo 2026

The Bottom Line

Manual Operativo Completo. Arquitectura de agentes, scripts, APIs, y hoja de ruta del ecosistema de visibilidad agéntica.

📋 Resumen Ejecutivo

Qué es The Bottom Line y qué hemos construido hasta ahora.

🎯 Misión

Hacer visibles los negocios locales ante los agentes de IA modernos (ChatGPT, Gemini, Siri, Perplexity) mediante una Capa de Visibilidad Inteligente.

💰 Producto

Auditoría de Visibilidad Agéntica + Parche técnico por $299 USD. Pago único. Sin suscripciones.

🏢 Mercado

Pequeños negocios en USA (Texas): clínicas dentales, abogados, restaurantes. 6,753 leads en base de datos.

🧠 Mapa Cerebral del Ecosistema

THE BOTTOM LINE


Droplet $32/mes (SFO3)


LangGraph + SqliteSaver


🤖 Selector
🤖 Investigador
🤖 Redactor
🤖 Enviador
🤖 Telegram


📊 Google Sheets
📚 NotebookLM
🧠 Gemini

🤖 Agentes del Enjambre

#AgenteArchivoModeloEstado
1Selectororchestrator.pyDeterministaPor probar
2Investigadororchestrator.pyDeepSeek FlashPor probar
3Redactororchestrator.pyDeepSeek Flash/ProPor probar
4Enviadororchestrator.pySendGrid APIPor probar
5Agent Auditoragent_auditor.pyDeepSeek FlashOK
6Deep Researchdeep_research_daily.pyDeepSeek FlashOK
7Webhook Stripewebhook_handler.pyStripe APIOK
8Two Lines Demotwolines.pyDeepSeek FlashOK
9Sync Drivesync_drive.pygspreadPor reparar

📁 Scripts del Ecosistema

🧠 orchestrator.py Por probar

Cerebro del enjambre. 5 agentes con LangGraph + SqliteSaver. 10,715 caracteres.

🔍 agent_auditor.py OK

Analiza URL: Core Web Vitals, Schema.org, llms.txt. Puntuación 0-100.

📡 deep_research_daily.py OK

Investiga 5 áreas cada día. Guarda en /root/bottomline/logs/.

📊 sync_drive.py Por reparar

Droplet ↔ Google Sheets. Pendiente: permisos de escritura.

🔑 APIs y Credenciales

VariableEstado
DEEPSEEK_API_KEYOK
STRIPE_SECRET_KEYOK
STRIPE_WEBHOOK_SECRETOK
TELEGRAM_BOT_TOKENPendiente
SENDGRID_API_KEYPendiente
SHEET_IDOK

⚠️ Pendientes

🔴 Prioridad Crítica +
1. Reparar sync_drive.pyCompartir hoja con Service Account como Editor.
2. Probar orchestrator.py --dry-runVerificar 5 agentes sin enviar correos.
3. Completar .envSendGrid, Telegram, Gmail App Password.
4. Primer envío real de 10 correosLanzar sin --dry-run.
🟡 Prioridad Alta +
5. Script de entrega del parcheRepo privado en GitHub tras pago.
6. Secuencia de follow-upsReenvío a 3, 7 y 14 días.
7. Activar cron para orchestratorEnvío diario a las 9 AM CST.
ENDOFFILE echo "✅ Manual guardado en /var/www/html/manual.html"