Automated Archiving of Promotional Emails
detail.loadingPreview
This workflow automatically archives promotional emails based on their content. It uses a Webhook Trigger to receive email data, then processes and stores embeddings in Pinecone, enabling smart retrieval for archiving.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This n8n workflow is designed to automate the archiving of promotional emails. It leverages a webhook to receive incoming email data, splits the text for processing, generates embeddings using OpenAI, and stores these embeddings in Pinecone for efficient retrieval. The workflow then uses a RAG Agent to determine the appropriate action, and finally logs the outcome to a Google Sheet or sends a Slack alert in case of errors.
Key Features
- Webhook Trigger: Initiates the workflow upon receiving new email data.
- Text Processing: Splits email content for efficient embedding generation.
- AI Embeddings: Utilizes OpenAI to create vector representations of email content.
- Vector Database: Stores and queries email embeddings in Pinecone for intelligent context retrieval.
- RAG Agent: Employs a Retrieval-Augmented Generation agent for contextual understanding and decision-making.
- Logging & Alerting: Appends processing status to a Google Sheet and sends Slack alerts on error.
How To Use
- Set up a webhook endpoint to send email data to the
Webhook Triggernode. - Configure the
Embeddingsnode with your OpenAI API credentials. - Ensure your Pinecone index (
auto_archive_promotions) is set up and accessible. - Configure the
Append Sheetnode with your Google Sheet ID and sheet name (Log). - Set up your Slack API credentials for the
Slack Alertnode. - Customize the
RAG AgentandChat Modelnodes for specific archiving logic.
Apps Used
Workflow JSON
{
"id": "645ec45c-2d01-4b52-90e6-749d69e3dc34",
"name": "Automated Archiving of Promotional Emails",
"nodes": 0,
"category": "Email Automation",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 645ec45c-2d01...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Automate Daily Email Digests with AI and Webhooks
This workflow automates the creation and sending of daily email digests. It uses a Webhook Trigger to receive data, Langchain nodes for AI processing and vector store integration, and Google Sheets to log status.
Automated Daily Financial News Aggregation and AI Summarization
This n8n workflow fetches daily financial news from ft.com, extracts key headlines and content using HTML parsing, and leverages Google Gemini to generate a concise HTML email summary for investors.
Automate Gmail PDF Attachments to Google Drive with OpenAI
Automatically send specific PDF attachments from Gmail to Google Drive, leveraging OpenAI for content filtering. This workflow uses the 'On email received' node to trigger, 'OpenAI' to analyze PDF content, and 'Google Drive' to store matched files.