ใช้ OpenClaw ร่วมกับ Google Services ( Gmail ,Calendar ,Sheets, Docs … )

ใช้ OpenClaw ร่วมกับ Google Services ( Gmail ,Calendar ,Sheets, Docs … )

การติดตั้งใช้งาน Google Services จะมีความยุ่งยากบ้าง แบ่งเป็น 2 ขั้นตอน ดังนี้
  1. Setup OpenClaw Skill ( gog skill )
  2. Setup Google APIs ( Google Cloud Console )

รายละเอียด ดังนี้

1.การเพิ่ม Skill ให้ OpenClaw

ตอนติดตั้ง OpenClaw นั้น มีการให้ติดตั้ง gog skill อยู่แล้ว แต่ถ้ายังไม่มี Homebrew จะติดตั้งไม่ผ่าน 

การติดตั้ง gog ต้องมี Homebrew https://brew.sh/

หรือจะติดตั้ง Homebrew ก่อน แล้วค่อยติดตั้ง OpenClaw ก็ได้ ตามนี้  https://aiotplatform.blogspot.com/2026/05/openclaw-local-pcnotebook-ubuntu.html 

https://brew.sh/

Install Homebrew ( for Ubuntu )

ติดตั้ง dependency ก่อน:

sudo apt update

sudo apt install build-essential procps curl file git -y

ติดตั้ง Homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

เพิ่ม brew เข้า PATH:

สำหรับ Ubuntu/Linuxbrew ส่วนใหญ่:

echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.bashrc

eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

ตรวจสอบ:

brew --version




Install gogcli

brew install gogcli


check if Install OK

gog --version


You can check skills list.

Check gog skill in dashboard


Done with OpenClaw Skill Setup then setup Google Cloud APIs.



2.Configure Google APIs

The Gog skill needs Google OAuth access.

Open : Google Cloud Console

Create Project

  • New Project
  • Name: Your Project Name ( We use ClawBot ) 

Enable APIs

Enable these APIs:

  • Gmail API
  • Google Drive API
  • Google Calendar API
  • Google Sheets API
  • Google Docs API




Configure OAuth Consent Screen

Inside Google Cloud:

  • APIs & Services

  • OAuth Consent Screen

Choose:

  • External

Fill:

  • App name

  • Email

  • Developer contact email

Add yourself as Test User.

Create Credentials

Go to:

  • APIs & Services

  • Credentials

  • Create Credentials

  • OAuth Client ID

Choose:

  • Desktop App

Download the JSON credential file.

Example : client_secret_xxxxx.json


Add Test mail account

Go to:

  • APIs & Services

  • OAuth Consent Screen

Choose:

  • Audience => Test Users => +Add users

add your mail for test user.













JSON Credential file to OpenClaw

You can sent JSON Credential file to you OpenClaw by Chat or Use manually copy to OpenClaw folder.

Usually OpenClaw asks authorization automatically when Gog first runs.

If needed manually:

Copy JSON into a safe folder:

mkdir -p ~/.openclaw/credentials

mv ~/Downloads/client_secret*.json ~/.openclaw/credentials/google.json

or

Chat with your OpenClaw for setup and attach JSON Credential file.



Auth your Project with your email

Use this command, then your have link for Auth your project with your email.
gog auth add you@gmail.com --services gmail,calendar,drive,contacts,docs,sheets
















if show this page. you're done

Test Gog

test command with calendar
 gog calendar events --today

Then Test on your OpenClaw Chat.


Now you can use Google Services with your OpenClaw. Enjoy!!!

OAuth errors

Usually caused by:

  • API not enabled

  • wrong OAuth type

  • missing test user

  • incorrect credential file


Adun Nantakaew อดุลย์ นันทะแก้ว

LINE : adunnan

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

Eval Llama v3.1 8B ,70B Model with Thai Language

ทดลอง ติดตั้งใช้งาน OpenClaw บน Local PC/Notebook ด้วย Ubuntu

Llama3 Typhoon v1.5 (scb10x) LLM