Likhan007/AI-Powered-WhatsApp-Bot-with-GPT-3.5-Turbo-via-OpenRouter-API — reverse-engineered prompt
Reverse engineered prompt
Build me a simple WhatsApp AI chatbot in JavaScript that runs from the terminal. I want to start it with Node, scan a QR code with WhatsApp the first time, and then have it reply to incoming WhatsApp messages using an AI model through OpenRouter.
Please make it easy to set up with a .env file for the OpenRouter API key, and include clear install and run instructions in the README for someone who isn’t very technical. The bot should use the WhatsApp web login flow, listen for messages, send the message text to OpenRouter, and reply back in the chat with the AI response.
Keep it lightweight and simple. No dashboard or database needed. If something goes wrong, like the API key is missing or the AI request fails, show a helpful error in the terminal and send a polite fallback message instead of crashing.
Want more depth? Deep Reverse