# Send a daily AI morning briefing with Google Calendar, Gmail, and OpenAI

> Quick overview This workflow runs every weekday morning, pulls today’s Google Calendar events and recent unread Gmail messages, uses an OpenAI-compatible chat completions API to write a short plain-text briefing, and emails the briefing to you via Gmail. How it works 1. Runs every weekday at 7 AM (or on-demand via a manual trigger for testing). 2. Reads your settings (timezone, goal, inbox search, model, and email recipient) and fetches today’s events from Google Calendar. 3. Queries Gmail for unread inbox emails from the last 24 hours using your configured Gmail search filter. 4. Cleans and summarizes the raw data by sorting meetings, flagging back-to-back events, calculating total meeting time and your longest free focus block, and trimming each email to sender/subject/snippet. 5. Sends the prepared calendar and email context to an OpenAI-compatible API endpoint to generate a three-part briefing (TODAY, INBOX, ONE THING) under the configured word limit. 6. Formats the final email bod

- **Domain**: `n8n-workflow-21701.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/21701
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21701.n8n.io
- Documentation: https://n8n.io/workflows/21701
