- WOO_BASE_URL: no se referencia en el código (las credenciales se leen del tenant en DB y como fallback de WOO_CONSUMER_KEY/SECRET). - DEBUG_WOO_PRODUCTS: 0 referencias en src/. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
64 lines
1.7 KiB
Plaintext
64 lines
1.7 KiB
Plaintext
# Botino - Example Environment Variables
|
|
# Copy this file to .env and fill in the values
|
|
|
|
# ===================
|
|
# Core
|
|
# ===================
|
|
PORT=3000
|
|
TENANT_KEY=piaf
|
|
DATABASE_URL=postgresql://user:password@localhost:5432/botino
|
|
PG_POOL_MAX=10
|
|
PG_IDLE_TIMEOUT_MS=30000
|
|
PG_CONN_TIMEOUT_MS=5000
|
|
APP_ENCRYPTION_KEY=your-32-char-encryption-key-here
|
|
|
|
# Bootstrap del primer operador (solo se usa si la tabla system_users está vacía).
|
|
# Después podés crear/editar operadores desde la UI en /operadores.
|
|
ADMIN_EMAIL=admin@local
|
|
ADMIN_PASSWORD=change-this-please
|
|
ADMIN_NAME=Admin
|
|
|
|
# ===================
|
|
# LLM (OpenAI-compatible: DeepSeek, OpenAI, Anthropic via gateway, etc.)
|
|
# ===================
|
|
# Default actual: DeepSeek V3.x con tool-calling nativo + prompt caching automático.
|
|
OPENAI_API_KEY=sk-xxx
|
|
OPENAI_BASE_URL=https://api.deepseek.com/v1
|
|
OPENAI_MODEL=deepseek-chat
|
|
|
|
# ===================
|
|
# WooCommerce (fallback si el tenant no tiene credenciales en DB)
|
|
# ===================
|
|
WOO_CONSUMER_KEY=ck_xxx
|
|
WOO_CONSUMER_SECRET=cs_xxx
|
|
|
|
# ===================
|
|
# Evolution API - WhatsApp
|
|
# ===================
|
|
EVOLUTION_API_URL=https://api.evolution.com
|
|
EVOLUTION_API_KEY=your-api-key
|
|
EVOLUTION_INSTANCE_NAME=piaf
|
|
EVOLUTION_SEND_ENABLED=0 # 0=solo BD (pruebas), 1=envía a WhatsApp (producción)
|
|
|
|
# ===================
|
|
# Limits
|
|
# ===================
|
|
LIMIT_CONVERSATIONS=100
|
|
MAX_CHARS_PER_MESSAGE=4000
|
|
|
|
# ===================
|
|
# Agent (tool-calling) — único motor de turno
|
|
# ===================
|
|
AGENT_MAX_TOOL_CALLS=10
|
|
AGENT_TURN_TIMEOUT_MS=25000
|
|
|
|
# ===================
|
|
# Debug Flags (1/true/yes/on para activar)
|
|
# ===================
|
|
DEBUG_PERF=0
|
|
DEBUG_WOO_HTTP=0
|
|
DEBUG_LLM=0
|
|
DEBUG_EVOLUTION=0
|
|
DEBUG_DB=0
|
|
DEBUG_RESOLVE=0
|