Automated Email Attachment Forwarding with RAG
detail.loadingPreview
This workflow automatically forwards email attachments using a Retrieval Augmented Generation (RAG) approach. It processes incoming requests via a Webhook Trigger, splits text, embeds it, stores it in Pinecone, queries it, and uses a RAG Agent to handle the data.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This n8n workflow is designed to automate the forwarding of email attachments. It leverages a Retrieval Augmented Generation (RAG) approach to intelligently handle incoming requests. The workflow starts with a Webhook Trigger, allowing external systems to initiate the forwarding process. The incoming data is then split into manageable chunks using the Text Splitter node. These chunks are converted into embeddings using the Embeddings node, which are subsequently stored in a Pinecone vector database for efficient retrieval. When a query is made, the Pinecone Query node retrieves relevant information. The RAG Agent node, powered by a Chat Model and informed by the Vector Tool and Window Memory, processes the request and facilitates the attachment forwarding. The Append Sheet node logs the status of the operation to a Google Sheet, and a Slack Alert node is configured to notify of any errors.
Key Features
- Webhook Trigger for external requests.
- Text Splitting for efficient data processing.
- OpenAI Embeddings for semantic understanding.
- Pinecone vector database for efficient storage and retrieval.
- RAG Agent for intelligent data handling and response generation.
- Google Sheets integration for logging.
- Slack alerts for error notifications.
How To Use
- Configure the Webhook Trigger with the desired path (
forward-attachments). - Set up your OpenAI API credentials for Embeddings and Chat Model nodes.
- Configure your Pinecone account and specify the
forward_attachmentsindex for both Pinecone Insert and Pinecone Query nodes. - Ensure your Google Sheet has a sheet named 'Log' and a column named 'Status' for logging purposes.
- Set up your Slack API credentials for the Slack Alert node.
- Trigger the webhook with the data that needs to be processed for attachment forwarding.
Apps Used
Workflow JSON
{
"id": "2ffd5e69-c359-4920-90b2-e6126c308859",
"name": "Automated Email Attachment Forwarding with RAG",
"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: 2ffd5e69-c359...
About the Author
DevOps_Master_X
Infrastructure Expert
Specializing in CI/CD pipelines, Docker, and Kubernetes automations.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Automated Archiving of Promotional Emails
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.
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.