Block 1 - Email Trigger (IMAP)
- Type / Role
- n8n-nodes-base.emailReadImap - emailReadImap
- Config choices
- Version 2.1
This workflow is provided as-is. Please review and test before using in production.
Filter incoming emails via IMAP, extract & clean the body into plain text, normalize (title/slug/snippet/date/from/url), check for duplicates in Postgres, store as a row in a Notion database, then ...
n8n-nodes-base.emailreadimap, n8n-nodes-base.code, n8n-nodes-base.postgres, n8n-nodes-base.if, n8n-nodes-base.notion, n8n-nodes-base.telegram, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ariyanto Catur Pamungkas.
Original n8n.io sourceFilter incoming emails via IMAP, extract & clean the body into plain text, normalize (title/slug/snippet/date/from/url), check for duplicates in Postgres, store as a row in a Notion database, then send a Telegram notification. Perfect for building a knowledge base or inbox triage automation without duplicate noise.
Key Features
IMAP polling (Only UNSEEN).
Extract & clean HTML → plain text.
Normalization: title, snippet, bodyText, slug, messageId, sentAt, fromAddress, sourceUrl.
Deduplication via Postgres (SELECT EXISTS).
Create page in Notion database (property mapping).
Telegram success notification.
Tags: email, imap, notion, postgres, deduplication, telegram, automation, knowledge-base
Prerequisites
IMAP access (Gmail/Outlook/Custom).
Gmail: enable IMAP + App Password if using 2FA.
Notion Integration Token & Database ID (database must be shared with the integration).
PostgreSQL accessible from n8n.
(Optional) Telegram Bot Token & Chat ID.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
Showing the first 24 of 28 workflow blocks. Download the JSON for the full node graph.
| Workflow | Email to Notion knowledge base with IMAP, Postgres dedup and Telegram alert |
|---|---|
| Complexity | advanced |
| Nodes | 28 |
| Categories | Internal Wiki, Multimodal AI |
| Author | Ariyanto Catur Pamungkas |
| Published | 14 Aug 2025 |
Use the JSON export at /data/workflows/7385/7385.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Filter incoming emails via IMAP, extract & clean the body into plain text, normalize (title/slug/snippet/date/from/url), check for duplicates in Postgres, store as a row in a Notion database, then ...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Internal Wiki, Multimodal AI use case.