Loading...
Loading...
Connect to Gmail and Google Calendar via OAuth 2.0. Use when users want to search/read emails, create drafts, search calendar events, check availability, or schedule meetings. Triggers on queries about email, inbox, calendar, schedule, or meetings.
npx skill4agent add letta-ai/skills google-workspacecredentials.jsongoogle-api-python-clientgoogle-auth-httplib2google-auth-oauthlibhttps://www.googleapis.com/auth/gmail.readonlyhttps://www.googleapis.com/auth/gmail.composehttps://www.googleapis.com/auth/gmail.modifyhttps://www.googleapis.com/auth/calendar.readonlyhttps://www.googleapis.com/auth/calendar.eventscredentials.jsonuv add google-api-python-client google-auth-httplib2 google-auth-oauthlibtoken.jsonuv run python tools/google-workspace/scripts/search_emails.py "from:someone@example.com" --credentials ./credentials.jsonuv run python tools/google-workspace/scripts/read_email.py <message_id> --credentials ./credentials.jsonuv run python tools/google-workspace/scripts/create_draft.py \
--to "recipient@example.com" \
--subject "Subject line" \
--body "Email body" \
--credentials ./credentials.jsonuv run python tools/google-workspace/scripts/needs_reply.py --credentials ./credentials.jsonuv run python tools/google-workspace/scripts/list_calendars.py --credentials ./credentials.json# Search by text
uv run python tools/google-workspace/scripts/search_events.py "meeting" --credentials ./credentials.json
# Search by date range
uv run python tools/google-workspace/scripts/search_events.py --start "2024-01-15" --end "2024-01-20" --credentials ./credentials.jsonuv run python tools/google-workspace/scripts/find_busy.py \
--start "2024-01-15T09:00:00" \
--end "2024-01-15T17:00:00" \
--credentials ./credentials.jsonuv run python tools/google-workspace/scripts/create_event.py \
--summary "Team Meeting" \
--start "2024-01-15T10:00:00" \
--end "2024-01-15T11:00:00" \
--attendees "alice@example.com,bob@example.com" \
--credentials ./credentials.json--description--location--timezone--calendargmail_auth.pysearch_emails.pyread_email.pycreate_draft.pyneeds_reply.pycalendar_auth.pylist_calendars.pysearch_events.pyfind_busy.pycreate_event.pysearch_events.py --start ... --end ...create_event.py --summary "..." --start ... --end ...needs_reply.pyread_email.py <id>create_draft.py --to ... --subject "Re: ..."