How bagpotato/notion-gmail works
This Google Apps Script automation turns qualifying Gmail messages into Notion tasks. The documented workflow includes sender authorization, task details, optional attachment uploads, and Gmail follow-up actions. Configuration supplies API credentials and database IDs; a trigger starts the automation. The source files were not excerpted, so the component boundaries and relationships below reflect README documentation only, not inspected implementation details.
Main entry points: Main.gs Sync automation · Config.gs API and database config
Components 12
Email workflow
- Sync automation
Main.gs - Sender security
Main.gs - Task details
Main.gs - Gmail deep link
Main.gs - Confirmation reply
Main.gs - Processed or error labels
Main.gs
Connected services
- Gmail
- Notion database
- Google Drive
Configuration
- API and database config
Config.gs - Automation trigger
Main.gs
Other components
- Email sender
Connections 11
- Email sender → Gmail: sends email
README.md - Gmail → Sync automation: provides messages
README.md - Automation trigger → Sync automation: starts
README.md - API and database config → Sync automation: configures
README.md - Sync automation → Sender security: checks sender
README.md - Sync automation → Task details: extracts details
README.md - Sync automation → Notion database: creates task
README.md - Sync automation → Google Drive: uploads attachments
README.md - Sync automation → Gmail deep link: adds thread link
README.md - Sync automation → Gmail: sends confirmation
README.md - Sync automation → Gmail: applies labels
README.md