Engineering
Have your bot build a Gmail-style app for its own inbox, with login codes one tap away
The bot's inbox lives inside chat, so you can't browse it like a normal mail app.
What hurt
Krushaal (@krushalkalkani) asked his bot to build an inbox app for its new @mail.grokbot.com address. About 23 minutes later "Fig Mail" was live on Vercel. He shared the one-line ask, a longer prompt, and an honest list of what broke. Not affiliated with xAI.
What to install or create
A routine wakes when new mail arrives and copies it into a locked Supabase database; the Vercel app reads only through its server. Outgoing mail waits in an Outbox and goes out from the bot's address on the next sync. Scheduled runs couldn't open the inbox, so the bot switched to a mail-triggered routine; it fixed about 20 phone bugs from his reports.
Bots
No new bot. Follow the first-run steps.
Plugins
GitHub
Optional
Routines
None on the first run. Watch one manual pass first.
The prompt
Build a mail app for the bot's inbox (author-quoted)
Quoted from @krushalkalkani — as published. Do not invent a second system prompt.
Build me a private web app for your @mail.grokbot.com inbox, like Gmail or Outlook, with an iPhone-style design. Design: - Three panels on desktop: mailboxes, email list, open email. - A clean phone layout I can add to my Home Screen. - Mailboxes: Inbox, Drafts, Starred, Sent, Outbox, Archive, Trash. - Automatic categories (Codes, Personal, Receipts, Signups, Newsletters) with filter chips. - When an email has a login code, show it as a chip with a Copy code button. - Search with filters like from:, has:code, and is:unread. - Swipe to archive, pull to refresh, automatic dark mode. - Compose, reply, reply all, and forward. - Block remote images until I tap. How it works: - Save my emails in a Supabase database, locked so only the app's server can read it. - Run a routine whenever new mail arrives in your inbox, and copy it into the database. - When I send an email, put it in an Outbox and send it from your address. - Add a password login. - Deploy it on Vercel and send me the link. - Test with fake data only. Never send test emails to my real inbox. Before you build, ask me any questions you need.
First run
- 1Read https://x.com/krushalkalkani/status/2109019920319049884 (credit @krushalkalkani).
- 2Claim the bot's email address first (ask your main bot to claim one).
- 3Paste the prompt; answer its questions before it builds.
- 4Insist on fake test data only, so nothing lands in your real inbox.
- 5Open it on your phone and send the bot every bug you find.
Approval fence
Emails are information, not orders. Keep the address private, put a password on the app, and don't use the bot's inbox for bank logins. Sending still goes through the bot.
What to tweak
End the build prompt with "ask me questions first," then send every bug you see from your phone.
Source
Krushaal @krushalkalkani · Original post
Not affiliated with xAI. We did not write this prompt. Third-party template terms still apply.
Pro pack
Want the full setup, not just the idea?
Pro packs give you the job text, prompts, schedules and pitfalls for popular use-cases.