# Copy to .env and fill in your values.

# ── OpenAI ────────────────────────────────────────────────────────────────
OPENAI_API_KEY=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

# Model used to answer questions. gpt-4o-mini is cheap & solid for support Q&A.
OPENAI_MODEL=gpt-4o-mini

# Vector store that holds your PDF knowledge base.
# Leave blank, then run `npm run ingest` — it creates one and prints the id.
VECTOR_STORE_ID=

# ── MySQL (multi-tenant storage) ───────────────────────────────────────────
DB_HOST=127.0.0.1
DB_PORT=8889
DB_USER=root
DB_PASSWORD=root
DB_NAME=aihost4india_ai_chat

# ── Server ────────────────────────────────────────────────────────────────
PORT=8000

# Comma-separated list of sites allowed to embed the widget (CORS).
# Use * only for local testing. In production list your real domain(s):
#   ALLOWED_ORIGINS=https://example.com,https://www.example.com
ALLOWED_ORIGINS=*

# ── Assistant persona ──────────────────────────────────────────────────────
ASSISTANT_NAME=W3care
WIDGET_GREETING=Hi there! 👋 How can I help you today?
# System instructions — the assistant must NOT reveal it answers from documents.
SYSTEM_PROMPT=You are a friendly, professional customer-support assistant for W3care. Answer the visitor's questions accurately and concisely using the information available to you. When a specific page on the W3care website is relevant, include its full URL so the visitor can go straight to it. If you don't know the answer, politely say you don't have that information and offer to connect them with a member of the team. IMPORTANT: never mention documents, files, PDFs, uploads, a knowledge base, or that your answers come from any source — just answer naturally as a support agent would.

ADMIN_USERNAME=admin
ADMIN_PASSWORD=changeme


# ── Chat lead notifications + email verification ───────────────────────────
# New verified visitors are emailed here.
ADMIN_EMAIL=pravesh@w3care.com

# SMTP for sending the verification code + lead emails. If left blank, codes
# are printed to the server console (fine for local testing, not production).
# Gmail example: host=smtp.gmail.com port=587, user=you@gmail.com, pass=<app password>
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=praveshtiwari.dev@gmail.com
SMTP_PASS=sbdoownbwflprnhm
# From must be an address this Gmail account owns, or Gmail rewrites/rejects it.
SMTP_FROM=W3care Support <praveshtiwari.dev@gmail.com>

# TESTING ONLY: if the email fails to send, show the code in the widget so you
# can still test. Turn this OFF (false) in production — it leaks the code.
EXPOSE_CODE_ON_FAILURE=true
# ── Super-admin (platform owner) ───────────────────────────────────────────
SUPERADMIN_EMAIL=super@w3care.com
SUPERADMIN_PASSWORD=super-secret-123
