Command
nylas email ai analyze
Analyze recent emails with AI for a summary, categorization, and action items.
Written by Qasim Muhammad Staff SRE
What does nylas email ai analyze do?
The nylas email ai analyze command fetches your recent emails and uses an AI model to produce an inbox summary, categorize messages, and surface the action items and highlights that need attention. Choose the model with --provider (ollama, claude, openai, groq), limit how many messages with --limit, target a folder with --folder, or analyze only unread mail with --unread.
Usage
nylas email ai analyze [grant-id] [--provider NAME] [--limit N]Flags
| Flag | Description |
|---|---|
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |
| --folder | Folder to analyze (default: INBOX) |
| --provider(-p) | AI provider to use (ollama, claude, openai, groq) |
| --unread | Only analyze unread emails |
Examples
The nylas email ai analyze command fetches your recent emails and uses an AI model to produce an inbox summary, categorize messages, and surface the action items and highlights that need attention.
Analyze your recent inbox
nylas email ai analyzeAnalyze the last 25 emails with a specific provider
nylas email ai analyze --limit 25 --provider claudeAnalyze only unread mail
nylas email ai analyze --unreadExample output
Inbox summary (10 messages)
Summary: Mostly project threads plus two newsletters.
Categories: Work (7), Newsletters (2), Personal (1)
Action items:
- Reply to Alice Chen about Q3 planning
- Approve Bob's invoice #482Troubleshooting
AI analysis returns empty or generic results
Make sure the selected --provider is configured and reachable. For local models, confirm Ollama is running; for hosted models, confirm the relevant API key is set.
No emails analyzed
The command analyzes recent messages in the target folder. Widen the scope with --limit, drop --unread, or pick a different --folder.
Recommended guides
List Fastmail emails from the CLI
List Fastmail emails from the CLI through Nylas IMAP access, using app passwords, inbox filters, JSON output, and Fastmail-specific auth troubleshooting.
Why Cloud Servers Block SMTP Ports
AWS, GCP, and Azure block outbound SMTP port 25 while ports 587 and 465 stay open. Confirm the block and send email over an HTTPS API instead.
Send Email From a Docker Container
Cloud providers block SMTP port 25 from containers. Send email over an HTTPS API on port 443 with one command and no mail daemon at all.
MailerSend vs Nylas: Email Compared
MailerSend sends transactional email from verified domains. Nylas reads and syncs user inboxes across 6 providers. Compare features, pricing, and use cases.
Customer.io vs Nylas: Email Compared
Customer.io sends lifecycle emails to your user base. Nylas reads and sends from real user inboxes via OAuth. Compare use cases, pricing, and AI agent support.
Knock vs Nylas: Notifications vs Email API
Knock delivers multi-channel product notifications via workflows; Nylas provides two-way email and calendar sync. Compare scope, pricing, and agent support.
Run nylas email ai analyze --help for full help output.