Back to Eliza

Gmail Watch Plugin

packages/docs/plugin-registry/platform/gmail-watch.md

2.0.11.5 KB
Original Source

The Gmail Watch plugin connects Eliza agents to Gmail, enabling monitoring of incoming emails and automated responses.

Package: @elizaos/plugin-gmail-watch

Note: Gmail Watch is categorized as a feature plugin in the registry, not a connector. It provides Gmail Pub/Sub message watching and auto-renewal.

Installation

bash
eliza plugins install @elizaos/plugin-gmail-watch

Setup

1. Enable the Feature Flag

The Gmail Watch plugin is activated via the features.gmailWatch flag in your Eliza configuration:

json
{
  "features": {
    "gmailWatch": true
  }
}

2. Configure Gmail API Access

Follow the Google Cloud Console setup to enable the Gmail API and obtain OAuth credentials for your agent.

Configuration

Gmail Watch is configured via both a feature flag and the hooks.gmail section:

FieldRequiredDescription
features.gmailWatchYesSet true to enable the Gmail Watch plugin
hooks.gmail.accountYesGmail address to monitor
hooks.gmail.labelNoGmail label to watch (default: "INBOX")
hooks.gmail.includeBodyNoInclude email body content in agent events
json
{
  "features": {
    "gmailWatch": true
  },
  "hooks": {
    "enabled": true,
    "gmail": {
      "account": "[email protected]",
      "label": "INBOX",
      "includeBody": true
    }
  }
}