Skip to main content
A scheduled job that checks your Gmail inbox, summarizes important emails, and tracks what it’s already processed.

Job Definition

name: email-digest
trigger:
  type: cron
  schedule: "0 8 * * 1-5"     # 8am UTC, weekdays
prompt: |
  Check my Gmail for unread emails from the last 24 hours.
  Read your job memory to see which emails you already summarized.
  Summarize only new important emails (skip newsletters and promotions).
  Update your memory with the message IDs you processed.
  Format as a brief digest: sender, subject, one-line summary.
skills:
  - receive_emails
  - memory_read
  - memory_write
delivery:
  type: email
  to: you@gmail.com
enabled: true

How It Works

  1. Agent reads .fliiq/memory/jobs/email-digest.md to see previously processed message IDs
  2. Calls receive_emails with filter: unread
  3. Filters out newsletters and promotions using LLM judgment
  4. Summarizes each important email in one line
  5. Updates job memory with new message IDs
  6. Delivers the digest via email

Sample Output

Morning Email Digest — Feb 12, 2026

- Alice Chen (Re: Q1 Planning) — Asked to reschedule Thursday's meeting to 3pm
- DevOps Bot (Deploy Alert) — Production deploy v2.4.1 succeeded, 0 errors
- James Wu (Contract Review) — Needs signature by EOD Friday, attached redlines

3 important emails. 12 filtered (newsletters, promotions).

Multi-Account Variant

Check multiple Gmail accounts by adjusting the prompt:
prompt: |
  Check both my work email (work@company.com) and personal email
  for unread messages. Use the work account credentials:
  gmail_address=work@company.com, gmail_app_password=xxxx.
  Combine into a single digest, labeled by account.