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

ParameterTypeDefaultDescription
poll_interval_secondsnumber60How often to check for new Gmail messages
reply_tonestringprofessionalTone for generated replies: professional, casual, concise
auto_archive_after_daysnumbernullAuto-archive processed threads after N days (null = never)
signaturestringAppended to every generated reply draft
require_approvalbooleantrueIf false, replies send automatically (not recommended)