Recipe
Recipe: Email assistant
Connect Gmail, classify incoming messages by intent, and generate reply drafts — all without leaving your Meridian workspace. Review every draft before it sends.
Gmail APIOAuth 2.0ClassificationDraft generationHuman-in-the-loop
1. Connect Gmail
Meridian reads your inbox via Google's secure OAuth flow. No passwords stored — we receive a refresh token scoped to gmail.readonly. You can revoke access from your Google Account at any time. After linking, Meridian polls new messages every 60 seconds via the Gmail API watch endpoint.
API Endpoint
POST /api/integrations/gmail/connect
Body: { "code": "4/0AanRRr..." }
Response 200:
{
"linked": true,
"email": "you@gmail.com",
"scopes": ["gmail.readonly"]
}Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
| poll_interval_seconds | number | 60 | How often to check for new Gmail messages |
| reply_tone | string | professional | Tone for generated replies: professional, casual, concise |
| auto_archive_after_days | number | null | Auto-archive processed threads after N days (null = never) |
| signature | string | — | Appended to every generated reply draft |
| require_approval | boolean | true | If false, replies send automatically (not recommended) |