# A morning briefing in your inbox before you start

Source: https://clickruntime.com/use-cases/morning-briefing

> Ask once. Every weekday ClickRuntime reads today's events from your Google Calendar, checks the weather where you are, and has AI write a short briefing: what's on, what to prepare, when you're free.

## Can ChatGPT or Claude send me a morning briefing with my calendar?

They can read your calendar when you ask, but they don't write to you first thing in the morning on their own. With ClickRuntime connected, your assistant sets up an automation that reads today's events, checks the weather and emails you a short briefing every weekday at the time you choose.

### Why the assistant can't do this on its own

- A briefing has to arrive before you open any chat, so it needs a schedule.
- Reading your calendar every day needs a Google connection that stays signed in and refreshes itself, stored outside the chat.
- The briefing combines several sources in one message: calendar, weather, and anything else you add later.

## Set it up from your AI assistant

Prompt to copy:

> Create a ClickRuntime automation: every weekday at 7:00 Europe/Lisbon, read today's events from my work Google Calendar, get today's forecast for Lisbon, and email me a short briefing: the weather in one line, each meeting with time and who's in it, what I should prepare, and my free blocks of 30 minutes or more.

1. **Connect ClickRuntime to your assistant.** Add ClickRuntime as a connector (MCP server) in ChatGPT, Claude, Cursor or another MCP client, using https://clickruntime.com/api/mcp. You sign in with Google or email; there is no API key to copy. This is done once per assistant.
2. **Paste the prompt.** Start a new chat and paste: “Create a ClickRuntime automation: every weekday at 7:00 Europe/Lisbon, read today's events from my work Google Calendar, get today's forecast for Lisbon, and email me a short briefing: the weather in one line, each meeting with time and who's in it, what I should prepare, and my free blocks of 30 minutes or more.” Change the details (times, channels, addresses) to yours.
3. **Read the draft.** The assistant restates what will happen, asks for anything missing, such as your timezone or which channel to post to, and saves a draft automation. A draft never runs on its own, so nothing happens until you agree.
4. **Connect accounts and save keys.** The assistant asks you to connect your Google account (named, for example, work) in the ClickRuntime dashboard with read access to Calendar. The weather comes from Open-Meteo's free API, which needs no key.
5. **Test it.** The assistant runs it once now and you receive today's briefing. It changes the format until it reads the way you like.
6. **Turn it on.** The assistant tells you what will run, when, and which services it will contact, then asks your permission to turn it on. From then on it runs on ClickRuntime's servers, and you can close the chat.
7. **Check it in the ClickRuntime dashboard.** Each run shows how many events were read and that the email was sent. The connections page shows the Google account used, and you can disconnect it at any time.

Connector setup for each assistant: https://clickruntime.com/assistants

## What the assistant writes

`morning_briefing.py`

```python
from datetime import datetime, timedelta
from zoneinfo import ZoneInfo
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, notify, ai, http, log

TZ = ZoneInfo("Europe/Lisbon")
LAT, LON = 38.72, -9.14

@on_trigger
def run(event):
    now = datetime.now(TZ)
    start = now.replace(hour=0, minute=0, second=0, microsecond=0)
    cal = build("calendar", "v3", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    events = cal.events().list(calendarId="primary", timeMin=start.isoformat(),
                               timeMax=(start + timedelta(days=1)).isoformat(),
                               singleEvents=True, orderBy="startTime").execute().get("items", [])
    lines = []
    for e in events:
        when = e["start"].get("dateTime", "all day")[11:16] or "all day"
        people = ", ".join(a.get("displayName") or a["email"] for a in e.get("attendees", [])[:6])
        lines.append(f"{when} {e.get('summary', '(no title)')} | {people} | {(e.get('description') or '')[:200]}")

    w = http.get("https://api.open-meteo.com/v1/forecast", params={
        "latitude": LAT, "longitude": LON, "timezone": "Europe/Lisbon",
        "daily": "temperature_2m_max,temperature_2m_min,precipitation_probability_max"}).json()["daily"]
    weather = f"{w['temperature_2m_min'][0]:.0f}–{w['temperature_2m_max'][0]:.0f}°C, rain chance {w['precipitation_probability_max'][0]}%"

    agenda = "\n".join(lines) or "No events today."
    try:
        body = ai.generate(f"Weather: {weather}\nEvents:\n{agenda}",
                           system="Write a short morning briefing: weather in one line, each meeting with time and attendees, "
                                  "one line on what to prepare where it's clear, then free blocks of 30 minutes or more between 9:00 and 18:00.",
                           max_output_tokens=600).text
    except ai.AIError as e:
        log.warning("AI unavailable, sending plain agenda", {"code": getattr(e, "code", None)})
        body = f"Weather: {weather}\n\n{agenda}"
    notify.email_me(f"Your day, {now:%a %d %b}", body)
    return {"events": len(events)}
```

- Times are worked out in your timezone with zoneinfo; the schedule itself is set on the automation.
- Only event titles, times, attendee names and a short slice of the description go to the AI.
- If AI is unavailable, you still get the plain agenda and weather.

## A schedule, not a trigger link

Weekdays at a fixed time in your timezone. Add a Sunday evening run if you want a week-ahead version.

## Limits

- The briefing is emailed to your own address. Sending it to someone else goes through an email service with their consent.
- Calendar access is read-only unless you ask for more.

## Troubleshooting

### It says connection_needs_reauth.

Google asked you to sign in again. Reconnect the account in the ClickRuntime dashboard; the next run works without changing the script.

### Times are an hour off.

Check the timezone in the script and on the schedule. Ask the assistant to set both to your city.

## Related

- [Google Calendar automations](https://clickruntime.com/apps/google-calendar)
- [Gmail automations](https://clickruntime.com/apps/gmail)
- [Todoist automations](https://clickruntime.com/apps/todoist)
- [Inbox summary each morning](https://clickruntime.com/use-cases/email-summary-every-morning)
- [Daily news digest](https://clickruntime.com/use-cases/daily-news-digest)
- [Recurring reminders](https://clickruntime.com/use-cases/recurring-reminders)
- [Assistant scheduled tasks alternative](https://clickruntime.com/alternatives/chatgpt-claude-scheduled-tasks)
- [Google Apps Script alternative](https://clickruntime.com/alternatives/google-apps-script)
- [Docs: connections-and-secrets](https://clickruntime.com/docs/connections-and-secrets)

## Extend it: what you can add next

The first version is rarely the last. Because the automation is a Python script with memory, AI and any API available, you grow it by asking your assistant for the change. Each change is a new version, and a failed deploy never replaces the working one.

- **Add today's Todoist tasks under the meetings** (Any app or API)
  Prompt: "Add to my morning briefing: my Todoist tasks due today, after the meetings."
- **Add a line about each external attendee's company** (Built-in AI)
  Prompt: "Change my morning briefing so for meetings with people outside my company, it adds one line on who they are based on the invite."
- **A week-ahead version on Sunday evening** (Schedules)
  Prompt: "Add to my morning briefing: every Sunday at 18:00, email me the week ahead with my busiest day highlighted."
- **Warn about back-to-back meetings with no break** (Multi-step logic)
  Prompt: "Change my morning briefing so it flags any stretch of more than 3 hours of meetings without a break."
- **Include unread emails from people you're meeting today** (Any app or API)
  Prompt: "Add to my morning briefing: list unread Gmail messages from anyone I'm meeting today."
- **Count meeting hours per week and report the trend** (Memory between runs)
  Prompt: "Add to my morning briefing: keep a count of my meeting hours per week and show this week's total versus last week on Mondays."

## Questions

### Can ChatGPT send me my calendar every morning?

With ClickRuntime connected, yes. ChatGPT sets up an automation that reads your Google Calendar and emails you a briefing every weekday.

### Can Claude write me a daily briefing?

Yes, through ClickRuntime. Claude writes it once; ClickRuntime runs it each morning.

### Does it work with Outlook calendars?

Yes, through Microsoft Graph. Add your Microsoft app's OAuth details in the ClickRuntime dashboard and sign in.

### Can it read my private events?

Only what your connected account can read. Access is read-only unless you ask for more, and you can disconnect at any time.

### What can I add later?

Tasks, attendee notes, a week-ahead email or meeting-hour tracking. See Extend it.
