MuchoRio/Baileys-WA-Bot ? reverse-engineered prompt

Reverse engineered prompt

Build me a lightweight WhatsApp bot in Node.js that connects through Baileys and chats using an AI model. I want it to log in with a QR code the first time, save the session locally so it stays signed in, and reply only to my WhatsApp account in private chats. It should also notice when it gets mentioned in a group and answer naturally there too.

Please make it easy to configure with a simple env file for the AI key, my allowed WhatsApp ID or LID, and a small contact name map so messages can feel more personal. The bot should be fast and simple, not browser based, and it should handle temporary AI failures by retrying a few times before giving up. If you need to, look up the current docs for Baileys and the AI provider you choose so the setup works cleanly.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab