whatsapp-bot/.env.example
Martin Porwoll 8847358507 feat: initial WhatsApp Business Bot scaffold
Phase 1 implementation with all core modules:
- Fastify webhook server with Meta signature validation
- WhatsApp Cloud API client (send text/template/interactive, mark as read)
- LLM abstraction layer with Claude provider (Haiku for speed)
- BullMQ message processing pipeline (dedup, rate limiting)
- Bot routing (MessageRouter, ConversationManager, EscalationManager)
- Payload CMS integration (InteractionWriter via direct DB, RulesLoader, TemplateResolver)
- Healthcare-safe system prompt with medical keyword detection
- PM2 ecosystem config

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 10:58:51 +00:00

27 lines
518 B
Text

# WhatsApp Cloud API
WHATSAPP_PHONE_NUMBER_ID=
WHATSAPP_BUSINESS_ACCOUNT_ID=
WHATSAPP_ACCESS_TOKEN=
WHATSAPP_VERIFY_TOKEN=
WHATSAPP_APP_SECRET=
# Claude API
ANTHROPIC_API_KEY=
# Payload CMS (Production)
PAYLOAD_API_URL=http://localhost:3001/api
PAYLOAD_API_KEY=
# PostgreSQL (shared with Payload CMS)
DATABASE_URL=postgresql://payload:@localhost:5432/payload-cms
# Redis (local)
REDIS_URL=redis://localhost:6379/0
# Server
PORT=3000
NODE_ENV=production
LOG_LEVEL=info
# CCS Tenant ID in Payload
CCS_TENANT_ID=10