Skip to content

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.

  1. Go to Google Cloud Console
  2. Click the project dropdown (top left) → New Project
  3. Enter a project name (e.g., “Craft Agent”)
  4. Click Create

Go to APIs & Services → Library and enable the APIs you need:

ServiceAPI to Enable
GmailGmail API
CalendarGoogle Calendar API
DriveGoogle Drive API
DocsGoogle Docs API
SheetsGoogle Sheets API
YouTubeYouTube Data API v3
Search ConsoleGoogle Search Console API
  1. Go to APIs & Services → OAuth consent screen
  2. Select External user type (unless you have Google Workspace)
  3. Fill in required fields:
    • App name: e.g., “Craft Agent”
    • User support email: your email
    • Developer contact: your email
  4. Click Save and Continue through the Scopes section (defaults are fine)
  5. Add yourself as a Test user (required for External apps)
  6. Complete the wizard
  1. Go to APIs & Services → Credentials
  2. Click Create Credentials → OAuth Client ID
  3. Application type: Web application
  4. Name: e.g., “Craft Agent”
  5. Under Authorized redirect URIs, add this exact URI:
    • https://thecraftagents.com/auth/callback
  6. Click Create
  7. Copy the Client ID and Client Secret — you’ll need these next

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.

  • 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

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