CarlosAndre02/simple-whatsapp-bot — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a simple WhatsApp bot app in TypeScript with an Express server. I want it to connect to WhatsApp through WAHA, receive incoming messages through a webhook, and reply to people. It should answer !hello with a basic greeting and let users send !ask something so the bot asks an AI through OpenRouter and replies back in the WhatsApp chat.

Please make the AI work in the background with Redis so the server doesn’t freeze while it thinks, and include sensible error handling if WhatsApp, Redis, or the AI service fails. I also want a basic Stripe checkout flow with a sample product page, a success page, and a cancel page.

Add simple API routes for health checks, sending a WhatsApp message manually, receiving messages, asking the AI directly, and creating a checkout session. Include Docker Compose for WAHA and Redis, environment variables for all keys and phone settings, and clear npm scripts for development, building, and running. Look up current docs online if needed.

Want more depth? Deep Reverse