AI Agents

A very simple human-in-the-loop email system using AI

16 nodes 219 145 Manual trigger
Download

Workflow Description

A hybrid email system that reads incoming messages via IMAP, analyzes them using an AI agent and OpenAI LLM chain, generates intelligent responses, and sends approved replies automatically through SMTP, keeping humans in control at every step.

How it works

  1. 1.Retrieve incoming emails using IMAP protocol connection
  2. 2.Process message content through AI agent and OpenAI language model chain
  3. 3.Display proposed response for human review and approval
  4. 4.Send the approved reply via email if authorized, or flag for manual handling

Use cases

  • Customer support automation with quality assurance by a team member
  • Intelligent response generation for repetitive inquiries while maintaining oversight
  • Reducing response time while ensuring brand voice and accuracy

Requirements

  • Active email account with IMAP enabled and secure credentials
  • Valid OpenAI API key with sufficient quota
  • n8n workflow execution environment with manual approval nodes

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Email Read Imap Email Send LLM Chain AI Agent OpenAI

Details

Trigger Manual trigger
Nodes 16
Apps 5
Views 219
Downloads 145

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (16)

/

Email Trigger (IMAP)

Email Read Imap

#1

Markdown

Markdown

#2

Send Email

Email Send

#3

Email Summarization Chain

Chain Summarization

#4

Write email

Agent

#5

OpenAI

OpenAI

#6

Sticky Note2

Sticky Note

#7

Sticky Note5

Sticky Note

#8

Sticky Note1

Sticky Note

#9

Sticky Note7

Sticky Note

#10

Approve Email

Email Send

#11

OpenAI Chat Model

OpenAI

#12

Set Email text

Set

#13

Sticky Note

Sticky Note

#14

Sticky Note11

Sticky Note

#15

Approved?

If

#16