Sublime Security email attachment analysis and Slack reporting workflow
This deterministic n8n workflow inspects incoming IMAP emails and uses a conditional branch to verify whether an attachment is present. Emails without attachments trigger a missing-file notice in Slack, while attached files move through binary conversion to Sublime Security. Matched and unmatched rules are formatted and reported to Slack without AI.
- Catalogue ID
- #1161
- Functional nodes
- 9
- Connections
- 8
- Trigger
- manualTrigger
- AI layer
- Deterministic
Business problem solved
Reviewing suspicious email attachments by hand slows down incident triage and leaves security teams guessing which detection rules triggered. Without automated Slack reporting, risky messages wait inside personal inboxes.
Trigger
A manual test trigger pairs with an IMAP email reader node that captures incoming emails and raw binary attachments.
Connected systems
- IMAP email reader
- Sublime Security API
- Slack
- Binary and code formatter
- Self-hosted n8n
Every workflow is deployed on your own server with documentation, a run log and an error queue.
Workflow architecture
- 1. Email Trigger (IMAP) (Trigger) (connects to IF email has attachment)
- 2. Move Binary Data (Service and data) (connects to Analyze email with Sublime…)
- 3. IF email has attachment (Logic and routing) (connects to Move Binary Data, Notify about missing…)
- 4. Split to matched and… (Logic and routing) (connects to Format the message)
- 5. When clicking Execute… (Trigger) (connects to Move Binary Data)
- 6. Slack (Service and data)
- 7. Format the message (Service and data) (connects to Slack)
- 8. Notify about missing… (Service and data)
- 9. Analyze email with Sublime… (Service and data) (connects to Split to matched and…)
- Trigger
- AI layer
- Logic and routing
- Service and data
Node positions and directed links are generated from the verified catalogue record.
Workflow steps
- 01
Email intake and attachment gate
Incoming IMAP data is checked for file attachments; messages without files branch straight to a Slack notice.
- 02
Binary conversion and Sublime Security scan
Attachments pass through the binary data node and post directly to the Sublime Security message analysis endpoint.
- 03
Rule formatting and Slack delivery
A code node separates matched rules from unmatched items before posting a structured threat summary into Slack.
Error queue and human approval
Built-in state in the catalogue workflow
The verified catalogue workflow contains zero node-level error flags across its nine functional nodes and eight connections.
Production layer added by ALTAI
During live deployment, ALTAI adds retry handling for Sublime Security API outages, attachment size caps and human approval checkpoints for high-risk alerts.
Sublime Security email rule analysis workflow Frequently asked questions
No. It runs deterministically and reports exact rule matches returned by the Sublime Security analysis API.
The entry conditional node routes empty messages to a dedicated Slack notification rather than failing the API request.
Messages are read inside your self-hosted n8n instance and sent only to the Sublime Security endpoint authorised in your set-up document.
Related n8n workflows
Gmail and Outlook phishing analysis to Jira
Captures Gmail and Outlook emails, fetches headers, renders HTML screenshots, runs ChatGPT phishing checks and attaches visual evidence to Jira tickets.
Outlook and Gmail visual Jira ticket flow
Standardises Outlook and Gmail messages, fetches Graph headers, renders HTML screenshots, runs ChatGPT assessment and logs Jira tasks with attachments.
Gmail to Todoist email task sync workflow
Compares starred and unread Gmail threads with open Todoist tasks, creates OpenAI summaries with structured actions and closes completed tasks.

We write the proposal after we have found the problem together
In a thirty-minute call we listen to how you work and talk through where time and customers are slipping away. If you do not need a digital fix, we will tell you that too.
30 minutes · no preparation needed
The call and the week of discovery are both free.Read the terms