proedgesol2025/WhatsApp-AI-Chatbot — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a WhatsApp AI customer support bot based on this project idea. It should receive WhatsApp messages through MPWA into Chatwoot, listen for Chatwoot message webhooks, send the customer message to OpenRouter, and reply back into the same Chatwoot conversation.

Please make it a clean Node.js app with the main server, webhook handler, AI reply function, and Chatwoot message sender separated into simple files. Use environment variables for the OpenRouter key, model, Chatwoot URL, API token, and port.

The bot should only answer incoming customer messages, ignore outgoing messages, block sensitive requests like OTPs, passwords, CVV, or card details, and if the user asks for an agent it should send a short human handover message instead of using AI. Keep the AI replies short and professional for WhatsApp support.

Also add a basic README with setup steps, Chatwoot webhook instructions, MPWA connection notes, and optional Docker deployment. Look up current docs online if you need to.

Want more depth? Deep Reverse