Shiva-Prasad-M/Sales-Inbox ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple sales inbox web app that helps turn incoming emails into tasks and show them in one place.

I want a clean frontend where someone can view tasks, see basic stats, and understand what needs attention. The backend should handle the logic for classifying emails, creating or organizing tasks, assigning them to the right person, and saving everything in a database. If an AI key is available, use it to help classify the emails, but if not, the app should still work with a reliable rule based fallback so nothing breaks.

Please make it work as a full stack app with a separate frontend and backend, and keep it ready for local development and production deployment. Add the usual health check style endpoints too, and make sure the inbox loads data from the backend properly without slow database behavior. If you need to look up current docs online for anything, go ahead.