Create e-mail responses with Fastmail and OpenAI
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 9 nodes and runs when a new email arrives over IMAP. Along the way it connects OpenAI. It also calls api.fastmail.com over HTTP.
How it runs
Trigger: When a new email arrives over IMAP.
- Get fields from source email (Edit Fields (Set)): sets 5 fields: textPlain, from, subject…
- OpenAI: uses OpenAI
- Session (HTTP Request): calls api.fastmail.com
- Get Mailbox IDs (HTTP Request): calls api.fastmail.com (POST)
- Split Out: splits a list into separate items
- Filter: keeps only the items that match a condition
- gather data for draft email (Edit Fields (Set)): sets 6 fields: draftsId, to-friendly, subject…
- upload draft email (HTTP Request): calls api.fastmail.com (POST)
Services it uses
HTTP calls to: api.fastmail.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- HTTP Request
n8n-nodes-base.httpRequest - Split Out
n8n-nodes-base.splitOut - Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Edit Fields (Set)
n8n-nodes-base.set - OpenAI
@n8n/n8n-nodes-langchain.openAi - Filter
n8n-nodes-base.filter
From the author
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.…