Surface unanswered emails from the past week
Author had Devin build a Gmail API assistant that lists unanswered emails from the past week, since Attio lacks that tab; he wrote the auth part himself in Cursor.
- What they did
- The author wanted to recreate Affinity's Unanswered Emails tab using the Gmail API. Devin struggled with authentication, so he wrote that himself in Cursor. Devin then wrote a function for emails from the past week needing a reply, limited to Primary. It read the Gmail API docs in its own browser, built a front end, and deployed it. He then asked it to add Supabase storage and an Ignore action.
- How it went
- It produced a working function, a front end, and a public deployment in one late-night session. It worked at human speed: the Supabase setup ran over an hour, which he says he could do in under 10 minutes.
- Worth knowing
- Devin costs $500 a month and auto-hosts what it deploys. The author saw his Replit bill climb from $20 a month to $20 a week with hosted agent apps.
Try it yourself with Devin
Build me a small script that connects to my Gmail account through the Gmail API and lists every email from the past [number] days that I received but haven't replied to. Show each one with sender, subject, date and a link, and skip newsletters and automated mail. Walk me through the OAuth setup steps, and stop once I can run it and see a correct list; it must be read-only and never send or delete anything.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: jamesin.substack.com · Undated
Related use cases
Keep coding agents running autonomously for long stretches
Cursor's write-up on scaling long-running autonomous coding.
Build a personal research wiki from papers and articles
Cursor Agent writes and maintains interlinked markdown pages from user-supplied sources, summarizing and cross-referencing, with Obsidian used to browse.
Generate ad-copy variants and scrape competitor ads
A commenter uses the Claude API via Apps Script for ad-copy variants, Apify to scrape competitor ads, and Cursor to build GA4 dashboards.
Run a solo company with eight agent departments
A founder set up CEO, CFO, COO, lawyer, accountant, marketing, CTO, and improver agents that share memory and consult each other.
Generate and send invoice PDFs for approval
An AI skill prepares an invoice PDF for work or reimbursements and emails it to the user, then sends it once he replies yes or with corrections.
Custom agent
Automate new-hire onboarding and appointment watching
Commenters described n8n workflows that take HR input through approval, IT ticket and Azure account creation, and one that checks for medical appointment openings and notifies with booking buttons.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.