ใช้ OpenClaw ร่วมกับ Google Services ( Gmail ,Calendar ,Sheets, Docs … )
ใช้ OpenClaw ร่วมกับ Google Services ( Gmail ,Calendar ,Sheets, Docs … )
- Setup OpenClaw Skill ( gog skill )
- Setup Google APIs ( Google Cloud Console )
1.การเพิ่ม Skill ให้ OpenClaw
การติดตั้ง gog ต้องมี Homebrew https://brew.sh/
หรือจะติดตั้ง Homebrew ก่อน แล้วค่อยติดตั้ง OpenClaw ก็ได้ ตามนี้ https://aiotplatform.blogspot.com/2026/05/openclaw-local-pcnotebook-ubuntu.html
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
gog --version
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:
APIs & Services
OAuth Consent Screen
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
OAuth errors
Usually caused by:
API not enabled
wrong OAuth type
missing test user
incorrect credential file
ความคิดเห็น
แสดงความคิดเห็น