Google OAuth Setup
Google OAuth Setup
Section titled “Google OAuth Setup”Craft Agents does not include pre-configured Google OAuth credentials. You’ll need to create your own Google Cloud project and OAuth credentials to use Google services (Gmail, Calendar, Drive, Docs, Sheets, YouTube, Search Console).
This is a one-time setup that takes about 5 minutes.
Step 1: Create a Google Cloud Project
Section titled “Step 1: Create a Google Cloud Project”- Go to Google Cloud Console
- Click the project dropdown (top left) → New Project
- Enter a project name (e.g., “Craft Agent”)
- Click Create
Step 2: Enable Required APIs
Section titled “Step 2: Enable Required APIs”Go to APIs & Services → Library and enable the APIs you need:
| Service | API to Enable |
|---|---|
| Gmail | Gmail API |
| Calendar | Google Calendar API |
| Drive | Google Drive API |
| Docs | Google Docs API |
| Sheets | Google Sheets API |
| YouTube | YouTube Data API v3 |
| Search Console | Google Search Console API |
Step 3: Configure OAuth Consent Screen
Section titled “Step 3: Configure OAuth Consent Screen”- Go to APIs & Services → OAuth consent screen
- Select External user type (unless you have Google Workspace)
- Fill in required fields:
- App name: e.g., “Craft Agent”
- User support email: your email
- Developer contact: your email
- Click Save and Continue through the Scopes section (defaults are fine)
- Add yourself as a Test user (required for External apps)
- Complete the wizard
Step 4: Create OAuth Credentials
Section titled “Step 4: Create OAuth Credentials”- Go to APIs & Services → Credentials
- Click Create Credentials → OAuth Client ID
- Application type: Web application
- Name: e.g., “Craft Agent”
- Under Authorized redirect URIs, add this exact URI:
https://thecraftagents.com/auth/callback
- Click Create
- Copy the Client ID and Client Secret — you’ll need these next
Step 5: Add Credentials to Your Source
Section titled “Step 5: Add Credentials to Your Source”Add the credentials to your Google source’s config.json:
{ "api": { "googleOAuthClientId": "YOUR_CLIENT_ID.apps.googleusercontent.com", "googleOAuthClientSecret": "YOUR_CLIENT_SECRET" }}Then use source_google_oauth_trigger to start the OAuth flow.
Security Notes
Section titled “Security Notes”- Your OAuth credentials are stored encrypted alongside other source credentials
- Never commit credentials to version control
- The Client Secret is required by Craft Agents for Google OAuth flows
- For production use, consider getting your OAuth consent screen verified
Alternatives
Section titled “Alternatives”If you don’t want to create your own credentials, you can connect Google services through third-party MCP aggregators:
- Zapier MCP — Go to zapier.com/mcp, connect the Google service, and add the generated MCP server URL as a source
- Composio — Go to composio.dev, connect the Google service, and use their MCP server URL as a source