Templates / Create e-mail responses with Fastmail and OpenAI

Create e-mail responses with Fastmail and OpenAI

Ready for 3.0

by Vitali ✓ · 3,477 views · created 2024-09-28 · Ticket Management, Multimodal AI

Ready 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.

  1. Get fields from source email (Edit Fields (Set)): sets 5 fields: textPlain, from, subject…
  2. OpenAI: uses OpenAI
  3. Session (HTTP Request): calls api.fastmail.com
  4. Get Mailbox IDs (HTTP Request): calls api.fastmail.com (POST)
  5. Split Out: splits a list into separate items
  6. Filter: keeps only the items that match a condition
  7. gather data for draft email (Edit Fields (Set)): sets 6 fields: draftsId, to-friendly, subject…
  8. upload draft email (HTTP Request): calls api.fastmail.com (POST)

Services it uses

OpenAI

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)

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.…

Excerpt from Vitali's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.