Block 1 - OpenAI
- Type / Role
- @n8n/n8n-nodes-langchain.openAi - openAi
- Config choices
- Version 1.8
This workflow is provided as-is. Please review and test before using in production.
What It Does This workflow automatically runs when a new email is received in the user's Gmail account. It sends the email content to OpenAI (GPT 4.1 mini), which intelligently determines whether t...
@n8n/n8n-nodes-langchain.openai, n8n-nodes-base.stickynote, n8n-nodes-base.emailreadimap, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.httprequest
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Eumentis.
Original n8n.io sourceThis workflow automatically runs when a new email is received in the user's Gmail account. It sends the email content to OpenAI (GPT-4.1-mini), which intelligently determines whether the message requires action. If the email is identified as actionable, the workflow sends a structured alert message to the user in Microsoft Teams. This keeps the user informed of high-priority emails in real time without the need to manually check every message. The workflow does not log any execution data, ensuring that email content remains secure and unreadable by others.
Body {
"type": "object",
"properties": {
"from": {
"type": "string"
},
"receivedAt": {
"type": "string"
},
"subject": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
<p>Hello @{outputs('Get_an_@mention_token_for_a_user')?['body/atMention']},</p>
<p><br>
You have received a new email at your email address <span>@{body('Parse_JSON')?['recipientEmail']}</span> that requires your attention:<br>
</p>
<p><br>
<strong>From: </strong>@{body('Parse_JSON')?['sender']}<strong><br>
Received On: </strong>@{body('Parse_JSON')?['date']}<strong><br>
Subject:</strong> @{body('Parse_JSON')?['subject']}</p>
<p><br>
Please review the message at your earliest convenience.<br>
Click <a href>here</a> to search this mail in your mailbox</p>
</p>
Need help with the setup? Feel free to contact us
Follow the n8n documentation to complete the setup.
Follow the n8n documentation to complete the setup.
To ensure that email content is not stored in logs and remains fully secure, you can disable execution logging in n8n:
In the n8n Workflow Editor, click on the three dots (•••) in the top right corner and select Settings.
In the settings panel:
Do not saveDo not saveDo not save if you also want to avoid logging errorsSave the changes.
Refer to the official n8n documentation for more details:
Need Help? Contact us for support and custom workflow development.
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.
| Workflow | Auto-detect actionable emails with OpenAI & get alert message on Teams via flow |
|---|---|
| Complexity | intermediate |
| Nodes | 11 |
| Categories | Personal Productivity, Multimodal AI |
| Author | Eumentis |
| Published | 08 Aug 2025 |
Use the JSON export at /data/workflows/7167/7167.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.
What It Does This workflow automatically runs when a new email is received in the user's Gmail account. It sends the email content to OpenAI (GPT 4.1 mini), which intelligently determines whether t...
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 Personal Productivity, Multimodal AI use case.