Send a daily Gmail summary to Slack
The poster uses a scheduled Codex automation to fetch unread Gmail messages and post a morning brief to Slack.
Done withCodex
- What they did
- The poster set up a scheduled Codex automation as a morning brief that checks unread Gmail from a local-time window covering yesterday morning to now, then sends a Slack DM. The prompt tells the agent to paginate Gmail results, pull fields like sender, subject, snippet or body, recipients, thread ID, attachments and unsubscribe headers, classify each email into a fixed triage taxonomy, hide newsletters and sales, and stop after posting the brief until the user confirms any next step.
- How it went
- The result is a structured daily Slack summary of unread mail with counts by category and a tally of filtered newsletters and sales emails. The source does not report usage numbers or measured results, only the prompt and that the poster uses it for this non-coding task.
- Worth knowing
- One practical catch in the prompt is to omit Gmail maxResults because the poster says it caused intermittent 500 errors; paginate instead.
Try it yourself with Codex
Every weekday at [time, timezone], fetch my unread Gmail from the last [24 hours] and write a brief of the important ones, grouped as needs reply, FYI and ignorable, with sender and one-line summaries. Post it to my Slack [channel or DM] and stop. Do not reply to, archive or delete any emails, and show me a sample brief before you turn on the schedule.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: Reddit · Undated
Related use cases
Turn tickets into merged pull requests
Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.
Triage email by voice while walking
Allie Miller used ChatGPT voice mode with Codex to triage important emails, draft replies, archive or delete items and log action items.
Automate copy-paste and backend wiring work with Codex
A commenter says they use Codex for work that used to involve lots of copy-pasting and backend wiring.
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 weekly leadership reports and handle feature requests
A supervisor Zapier agent delegates to sub-agents that write weekly leadership reports from Jira data and handle feature requests via a Slack slash command.
Try a work task with a browser agent
The poster had Operator search the web for a work task; it made mistakes and would have taken longer than doing it manually.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.