regendchui/chatbot — reverse-engineered prompt
Reverse engineered prompt
Build me a production ready WhatsApp chatbot in Go that connects to WhatsApp, stores users and conversations in PostgreSQL, and can run with Docker Compose.
I want it to guide people through a baseline survey first, then let them chat with an AI through OpenRouter after they finish. It should also support follow up surveys later, with survey questions driven by editable JSON and saved to the database.
Please include a browser admin panel where an operator can log in, see conversations, enroll or verify participants, manage roles and permissions, blacklist numbers, export survey data, change project settings, view WhatsApp QR status, and upload knowledge documents for grounded AI answers.
The AI replies should use conversation history and retrieved document chunks so it doesn’t just make things up. Add sensible security like encrypted phone numbers, login protection, audit logs, session timeout, and safe handling of dynamic survey fields.
Make it deployable on a single VPS with app and PostgreSQL containers. Look up current docs online if you need to.
Want more depth? Deep Reverse