Sgulli/email-retrivier — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a web app called Email Retriever that lets me sign in with Google and talk to my Gmail inbox through a chat interface. I want to ask normal questions like “find emails from Sarah about invoices” or “show me messages with attachments from last week” and get useful results back without writing search filters.

The app should let me see the sender, subject, snippet, date, and enough message details to understand the email thread. If an email has attachments, I should be able to download them together as a zip file. Please make it strictly read only, so it can search, read, and retrieve attachments, but it must never send, delete, archive, or modify email.

Use the existing TypeScript Next.js setup in this project, with Google OAuth, the chat UI, and the AI agent pieces already included. Make it easy to run locally with pnpm dev and clear environment variables for Google credentials and the allowed admin email.

Want more depth? Deep Reverse