mirror of
https://github.com/complexcaresolutions/whatsapp-bot.git
synced 2026-03-17 13:54:05 +00:00
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>
19 lines
415 B
JavaScript
19 lines
415 B
JavaScript
module.exports = {
|
|
apps: [
|
|
{
|
|
name: 'whatsapp-bot',
|
|
script: 'dist/server.js',
|
|
instances: 1,
|
|
exec_mode: 'fork',
|
|
autorestart: true,
|
|
watch: false,
|
|
max_memory_restart: '512M',
|
|
env: {
|
|
NODE_ENV: 'production',
|
|
},
|
|
error_file: '/var/log/pm2/whatsapp-bot-error.log',
|
|
out_file: '/var/log/pm2/whatsapp-bot-out.log',
|
|
time: true,
|
|
},
|
|
],
|
|
}
|