Skip to main content

What can OpenClaw do with Gmail?

Once connected, you talk to your agent the same way you'd ask a human assistant — no commands to memorize.

Read & Summarize

Get a summary of unread emails, find specific threads, or ask "did anyone email me about the invoice?"

"Summarize my unread emails from today"

Draft Replies

Tell OpenClaw what to say — it writes the email in your tone and either sends it or shows it to you first.

"Reply to Sarah's last email and say I'll have it ready by Friday"

Search Your Inbox

Find emails by sender, topic, date range, or keyword — like a smart search bar you talk to.

"Find all emails from my landlord in the last 3 months"

Label & Organize

Apply labels, archive threads, or move emails to folders without ever opening Gmail.

"Label all emails from noreply@ as newsletters"

Watch for Emails

Ask OpenClaw to notify you when a specific email arrives — like a payment confirmation or a job response.

"Let me know when I get an email from Amazon with a tracking number"

Send New Emails

Compose and send a new email to any contact. OpenClaw can look up addresses from your previous threads.

"Email John and ask if we're still on for Thursday"

What can OpenClaw do with Google Calendar?

OpenClaw can see your schedule, create events, find open slots, and send invites — like having a personal scheduler on call.

Check Your Schedule

Ask what's on your calendar today, this week, or on any specific date.

"What do I have on Thursday afternoon?"

Create Events

Add meetings, reminders, or blocks to your calendar just by describing them.

"Add a dentist appointment Tuesday at 2pm for 1 hour"

Find Free Time

OpenClaw checks your calendar and tells you when you're actually free.

"When am I free for a 30-minute call next week?"

Send Invites

Create an event and invite other people — OpenClaw adds them as guests and sends the invite.

"Schedule a team sync Friday at 10am and invite alex@company.com"

Cancel or Reschedule

Move or delete existing events without opening Google Calendar.

"Move my 3pm meeting to 4pm"

Set Reminders

Add reminders to any event or create standalone reminders for tasks.

"Remind me 30 minutes before every meeting tomorrow"

How to connect your Google account

OpenClaw uses OAuth 2.0 to connect to Google — the same secure login flow used by apps like Zoom and Slack. You authorize it once; OpenClaw never sees your password.

What you'll need
  1. Go to Google Cloud Console

    Open console.cloud.google.com and sign in with your Google account. This is Google's developer portal — it's free to use.

  2. Create a new project

    Click the project dropdown at the top → New Project → name it something like openclaw-integration → click Create.

  3. Enable the Gmail and Calendar APIs

    In the left menu go to APIs & Services → Library. Search for and enable both:

    • Gmail API — for email access
    • Google Calendar API — for calendar access

    Click each one → Enable. Takes about 30 seconds each.

  4. Create OAuth credentials

    Go to APIs & Services → Credentials → Create Credentials → OAuth client ID.

    • Application type: Desktop app
    • Name: anything you like (e.g. OpenClaw Desktop)
    • Click Create

    Google will show you a Client ID and Client Secret. Copy both — you'll need them in the next step.

  5. Configure the OAuth consent screen

    Go to APIs & Services → OAuth consent screen. Set:

    • User type: External (even if it's just you)
    • App name: anything (e.g. My OpenClaw)
    • Support email: your email
    • Add your email as a Test user

    You don't need to publish the app — keeping it in test mode is fine for personal use.

  6. Add credentials to openclaw.json

    Open your openclaw.json file and add the Google section:

    openclaw.json
    {
      "integrations": {
        "google": {
          "enabled": true,
          "client_id": "YOUR_CLIENT_ID.apps.googleusercontent.com",
          "client_secret": "YOUR_CLIENT_SECRET",
          "scopes": [
            "https://www.googleapis.com/auth/gmail.modify",
            "https://www.googleapis.com/auth/calendar"
          ]
        }
      }
    }

    Replace YOUR_CLIENT_ID and YOUR_CLIENT_SECRET with the values from Step 4.

  7. Authorize OpenClaw

    Restart OpenClaw. The first time it tries to access Gmail or Calendar, it will open a browser window asking you to sign in with Google and grant permission. Click Allow.

    OpenClaw saves a token locally so you only need to do this once. The token is stored on your machine — it never leaves your computer.

You're connected!

Try sending your agent a message: "What emails do I have today?" — if it reads your inbox, the integration is working.

What permissions does OpenClaw request?

Google requires apps to declare exactly what they can access. Here's what each scope means in plain English.

Scope Type What it allows Why it's needed
gmail.readonly Read Read emails and labels Summarize, search, and find threads
gmail.modify Write Read emails + apply labels, archive, mark read Organize inbox, label emails
gmail.send Send Send emails on your behalf Draft and send replies or new emails
calendar.readonly Read View calendar events Check your schedule, find free time
calendar Write View + create, edit, delete events Create meetings, send invites, reschedule
Least-privilege tip

If you only want OpenClaw to read your email (never send), use gmail.readonly instead of gmail.modify. You can always upgrade the scope later by re-running the auth flow.

Example prompts to try

Once connected, just talk to OpenClaw naturally. Here are some prompts to get you started.

📧 Gmail
"Who emailed me today and what do they want?"
📧 Gmail
"Draft a reply to the last email from my boss saying I'll have the report done by end of day."
📧 Gmail
"Find any emails about my Amazon order from last week."
📧 Gmail
"Unsubscribe me from all marketing emails in my inbox."
📅 Calendar
"What's on my calendar this week? Anything I might be forgetting?"
📅 Calendar
"Schedule a 1-hour focus block tomorrow morning and block it as busy."
📅 Calendar
"Find a 30-minute slot this week where both me and sarah@work.com are free."
📅 Calendar
"Cancel all my meetings on Friday — I'm taking the day off."

Common problems & fixes

Related guides