Published 5 days ago
This workflow automates the handling of incoming emails, summarizes their content, generates appropriate responses using a retrieval-augmented generation (RAG) approach, and obtains approval or suggestions before sending replies. Below is an explanation of its functionality divided into two main sections:
Email Handling and Summarization:
Email Trigger (IMAP)
node which listens for new emails in a specified inbox.Markdown
node converts its HTML content into plain text if necessary, followed by the Email Summarization Chain
that uses AI to create a concise summary of up to 100 words.Response Generation and Approval:
Write email
node generates a professional response based on the summarized content, ensuring brevity and professionalism while keeping within the word limit.Gmail
node configured with free-text response options. If approved, the finalized email is sent back to the original sender using the Send Email
node; otherwise, it loops back for further edits or manual intervention.Text Classifier
node designed to categorize feedback from humans as either "Approved" or "Declined", guiding whether the email should proceed directly to being sent or require additional editing.To replicate this workflow within your own n8n environment, follow these essential configuration steps:
Configuration:
Customization:
Approve?
.