← Terug naar handleidingen

Google Workspace verbinden

Vereisten (beide methoden)

1

Maak Google Cloud OAuth-referenties aan

Deze stap wordt uitgevoerd in uw eigen browser — u hoeft nog niets te doen op de MyClaw-instantie.

  1. Open Google Cloud Console → APIs & Services → Credentials.
  2. Klik op + CREATE CREDENTIALS → OAuth client ID → Application type: Desktop app.
  3. Klik op Create → Download JSON. Sla het bestand client_secret_xxx.json op — u heeft het straks nodig.
Open Google Cloud Console

U moet ook het OAuth-toestemmingsscherm configureren en uzelf toevoegen als testgebruiker onder APIs & Services → OAuth consent screen. Zonder dit zal autorisatie mislukken.

2

Schakel Gmail API en Google Calendar API in

Klik op elke link hieronder en klik op Inschakelen. Dit duurt slechts een paar seconden per stuk.

Alleen agenda nodig? Schakel dan alleen de Calendar API in (en gebruik --services calendar in latere stappen).

Geen opdrachten nodig. Doe alles vanuit uw chatvenster (Telegram / WebChat).

B.1

Vraag OpenClaw om gog te installeren

OpenClaw
U
Install gog for me
OpenClaw
Installing... ✅ gog v0.11.0 installed!
B.2

Stuur het referentiebestand

OpenClaw
U
client_secret_xxx.json
Connect my Gmail and Calendar
OpenClaw
Got the credentials file, configuring... ✅ Credentials imported. What's your Gmail address?
B.3

Geef uw e-mailadres op, ontvang autorisatielink

OpenClaw
U
your@gmail.com
OpenClaw
Please open this link in your browser to authorize: https://accounts.google.com/o/oauth2/auth?... After authorizing, the page will redirect to 127.0.0.1 and show an error — that's normal. Copy the full URL from your address bar and send it to me.
B.4

Plak de callback-URL

OpenClaw
U
http://127.0.0.1:42845/oauth2/callback?state=xxx&code=xxx...
OpenClaw
✅ Gmail + Calendar connected! You can now just say: • "Check my recent emails" • "Create a meeting for tomorrow at 3 PM"

Dat is alles — drie berichten en u bent verbonden.

Wat u nu kunt doen

FunctieZeg gewoon
📧 E-mail controleren"Controleer mijn recente e-mails" / "E-mails van xxx?"
📧 E-mail versturen"Stuur een e-mail naar a@b.com over..."
📅 Agenda bekijken"Wat staat er deze week op mijn agenda?"
📅 Afspraken maken"Plan een vergadering voor vrijdag om 14:00"
📧 E-mails opstellen"Stel een antwoord op voor die e-mail"

Probleemoplossing

Q: "Access blocked" of "App not verified" tijdens autorisatie

A: U heeft uzelf niet toegevoegd als testgebruiker op het OAuth-toestemmingsscherm. Ga terug naar Stap 1, open OAuth consent screen → Test users, en voeg uw Gmail-adres toe.

Q: 403 accessNotConfigured-fout

A: De API is niet ingeschakeld. Ga terug naar Stap 2 en zorg ervoor dat zowel Gmail API als Calendar API "Enabled" tonen.

Q: Callback-URL verlopen

A: Doe de autorisatiestap gewoon opnieuw — dat gaat snel. Vertel OpenClaw "re-authorize" en het geeft u een nieuwe link.

Q: no TTY available for keyring-fout in WebSSH

A: Plaats voor de opdracht GOG_KEYRING_PASSWORD="anypassword", bijvoorbeeld:

GOG_KEYRING_PASSWORD="mypass123" gog auth add your@gmail.com ...