(5/5)

create e-mail responses with fastmail and OpenAI

Workflow Description: This n8n workflow automates the drafting of email replies for Fastmail using OpenAI's GPT-4 model. Here’s the overall process: 1. Email Monitoring: The workflow continuously monitors a specified IMAP inbox for new, unread emails. 2. Email Data Extraction: When a new email is detected, it extracts relevant details such as the sender, subject, email body, and metadata. 3. AI Response Generation: The extracted email content is sent to OpenAI's GPT-4, which generates a personal

Integrations Used (3)

Workflow Structure (9 nodes)
100%
Email Read Imap
Email Trigger (IMAP)
Set
Get fields from source email
Langchain.open Ai
OpenAI
Http Request
Session
Http Request
Get Mailbox IDs
Split Out
Split Out
Filter
Filter for drafts folder
Set
gather data for draft email
Http Request
upload draft email
Node Types:
http
logic
default
transform
Requires credentials

Prerequisites

Required Credentials (3)

HTTP Header Auth

Used by: Session, Get Mailbox IDs +1 more

Docs

Imap

Used by: Email Trigger (IMAP)

Docs

OpenAI

Used by: OpenAI

Docs

Multiple services required

This workflow needs 3 different credentials. Make sure you have accounts for all services before importing.

Complexity

Complex

Advanced features used. Requires n8n experience.

Setup time: ~40 min
Score: 36/100

When to Use This Workflow

Streamline Team Communication

Automatically route notifications and updates to the right channels and people.

Reduce information overload while keeping everyone informed.

Email Automation

Automate email responses, forwarding, or organization based on rules.

Handle routine email tasks automatically and focus on what matters.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "meta": {
    "instanceId": "04ab549d8bbb435ec33b81e4e29965c46cf6f0f9e7afe631018b5e34c8eead58"
  },
  "nodes": [
    {
      "id": "082d1828-72b1-48c0-8426-c8051c29f0db",
      "name": "Session",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -20,
        -20
      ],
      "parameters": {
        "url": "https://api.fastmail.com/jmap/session",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
...

Workflow Details

Nodes
11
Trigger
Manual
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

Effortless Email Management with AI

STEP 1 Create Qdrant Collection Change: - QDRANTURL - COLLECTION

Emailreadimap
Emailsend
Vectorstoreqdrant
Embeddingsopenai
31 nodesManual
Curated

Summarize emails with A.I. then send to messenger

Summarize emails with A.I. You can find out more about the [use case](https://rumjahn.com/how-a-i-saved-my-kids-school-l...

Emailreadimap
Http-request
7 nodesManual
Curated

YouTube Videos with AI Summaries on Discord

Summarise Your YouTube Videos with AI for Discord 📽️ [Watch the Video Tutorial](https://mrc.fm/ai2d) Add your [YouTube...

Rssfeedread
Http-request
Openai
Discord
8 nodesEvent
Curated

Send daily translated Calvin and Hobbes Comics to Discord

![](https://raw.githubusercontent.com/2innnnn0/30-Days-of-ChatGPT/refs/heads/main/datapopcornlogo50px.png) Daily Cartoo...

Schedule
Openai
Discord
Lmchatopenai
8 nodesScheduled
Curated

Analyze Suspicious Email Contents with ChatGPT Vision

![Gmail](https://uploads.n8n.io/templates/gmail.png) Gmail Integration and Data Extraction This section of the workflow...

Gmail
Outlook
Http-request
Openai
18 nodesEvent
Curated

Analyze & Sort Suspicious Email Contents with ChatGPT

![hctiapi](https://uploads.n8n.io/templates/hctiapi2.png) Email Body Screenshot Creation The Screenshot HTML node sends...

Gmail
Outlook
Http-request
Openai
25 nodesEvent
Curated