File & Document Management Workflows
Document processing and management
Organize Email Attachments into Google Drive Folders by Company with Gmail & Sheets
# Automated Email Attachment Organizer **Automatically process labeled emails with attachments into organized Google Drive folders** --- ## Who Is This For? - **Teams or Individuals** needing to: - Automatically sort invoices, receipts, and files. - Organize client documents by date. - Verify sender emails against a whitelist. - Timestamp files to avoid duplicate names. --- ## What Does This Workflow Solve? - **Manual Email Sorting**: Saves time by automating the organization of email attachments. - **Disorganized Cloud Storage**: Ensures attachments are neatly stored in Google Drive folders. - **Unverified Sender Issues**: Filters and validates emails using a whitelist. - **Duplicate Filenames**: Uses timestamps to ensure every file name is unique. --- ## Setup Guide ### 1. Pre-Requisites - **Whitelist Sheet**: Make a copy of the [Example Whitelist Sheet](https://docs.google.com/spreadsheets/d/1tz9BflstxVL18YG11Ny1eiDj3FcjvtZ619b_bHx8h4/copy) - **Gmail Filter**: Create a filter in Gmail to label emails with attachments. **To Create a Gmail Filter:** 1. Open your Gmail Inbox. 2. Click the search bar and select **Show search options**. 3. Enter your criteria (e.g., type `has:attachment`). 4. Click **Create filter**. 5. Choose **Apply the label: Custom_Label** and save. --- ### 2. Credentials Setup Make sure your n8n instance is connected with: - **Gmail Account**: (via OAuth2) - **Google Drive Account**: (via OAuth2) - **Google Sheets** (via OAuth2) --- ### 3. Configure Your n8n Workflow Nodes #### 1. Trigger and Email Retrieval - **Gmail Trigger**: Setup check interval and filters for emails (i.e., emails labeled with `Custom_Label`) #### 2. Whitelist Settings - **Lookup in Sheets**: Searches for a row with the sender email. Configure this node to point to your whitelist spreadsheet containing two columns: |email|company| #### 3. File Storage Location - Configure parent folder to create sub-folders and store files into in the **Create Company Folder** node *Parent Folder* dropdown --- ## Final Steps 1. **Test Your Workflow**: Run the workflow to verify emails are processed and files are uploaded correctly. --- Happy Automating!
n8n$14.99Save email attachments to Google Drive
Every time you receive an email with an attachment, Make will automatically save that attachment to a specified folder in Google Drive. The attachment will be saved in its original format.
Make$3.99Upload File to SharePoint Using Microsoft Graph API
This n8n workflow template allows you to upload a photo to a SharePoint folder using the Microsoft Graph API. The workflow includes steps for authentication, retrieving a photo for testing purposes, setting the destination folder and file name, and uploading the photo. ## Who is this for? This workflow is ideal for users who need to automate the process of uploading images to SharePoint. It is particularly useful for developers, IT administrators, and anyone managing digital assets within a SharePoint environment. ## What problem is this workflow solving? / Use Case This workflow addresses the need to automate the uploading of photos to a specific SharePoint folder. By using the Microsoft Graph API, it ensures secure and efficient file management, reducing manual effort and potential errors. ## What this workflow does 1. **Trigger the Workflow**: The workflow starts when the user clicks the test workflow button. 2. **Set Configuration**: Sensitive data such as `TENANT_ID`, `CLIENT_ID`, and `CLIENT_SECRET` are set. 3. **Authentication**: Obtains an access token from Microsoft Graph API using the provided credentials. 4. **Get Photo**: Retrieves a sample photo from a URL for testing purposes. 5. **Set Destination**: Sets the target folder and file name for the photo upload. 6. **Upload Photo**: Uploads the photo to the specified SharePoint folder using the Microsoft Graph API. ## Setup ### Prerequisites 1. **Create an Application User**: Follow [this guide](https://learn.microsoft.com/en-us/power-platform/admin/manage-application-users) to create an application user. 2. **Set Permissions**: Ensure the following permissions are set: - `Sites.ReadWrite.All`: For SharePoint site access. - `Files.ReadWrite.All`: For file upload operations. ### Authentication For successful authentication, provide the following: - `TENANT_ID` - `CLIENT_ID` - `CLIENT_SECRET` **Note**: For demonstration purposes, these values are stored in a Set node. In a production environment, ensure the safety of such data using credentials, secure vaults, or other safe methods. ### Set Destination The destination is defined by two parameters: - `TARGET_FOLDER`: The folder path in SharePoint where the photo will be uploaded. - `FILE_NAME`: The name of the file to be uploaded. **Example**: - Desired file location: `https://contoso.sharepoint.com/uploads/pictures from n8n/example.jpg` - Set the following: - `TARGET_FOLDER` = `/uploads/pictures from n8n` - `FILE_NAME` = `example.jpg` ## How to Customize This Workflow to Your Needs 1. **Update Sensitive Data**: Replace the placeholder values for `TENANT_ID`, `CLIENT_ID`, and `CLIENT_SECRET` with your actual credentials. 2. **Change Destination**: Modify the `TARGET_FOLDER` and `FILE_NAME` parameters to match your desired upload location and file name. 3. **Test with Different Photos**: Update the URL in the Get Photo node to test with different images. ## Sticky Notes ### Workflow Overview This sticky note explains the overall purpose and dependencies of the workflow. ### Authentication Details This sticky note provides details on the authentication process and the importance of securing sensitive data. ### Set Destination Details This sticky note explains how to set the destination folder and file name for the photo upload. By following these guidelines, you can easily customize and use this workflow to automate photo uploads to SharePoint using the Microsoft Graph API.
n8n$9.99Automate Invoice Data Extraction from Gmail to Google Sheets Using Eden AI
Streamline your workflow by automatically extracting data from invoices received in Gmail and saving it to Google Sheets using Eden AI's OCR capabilities.
Make$4.99Transcribe Audio Files with Google Cloud and Telegram
Transcribe audio messages from Telegram using **Google Gemini** for free. Send an audio file to your Telegram bot and get a full transcription using Gemini's free model.  ### Who is this template for? Anyone who needs quick and accurate transcriptions of audio messages. Perfect for: - Creators and podcasters - Coaches or educators - People who receive a lot of audio on Telegram You can also adapt this workflow to transcribe audio from other sources, like WhatsApp, Google Drive, or direct uploads. ### How it works 1. You send an audio file to your Telegram bot. 2. n8n downloads the file and converts it to text using Google Gemini. 3. The transcript is sent back to you on Telegram. ### How to set up You'll just need: - A Telegram bot token - A Google Gemini API key (free tier supported) The rest works out by itself. ### Check out my other templates āļøš [**https://n8n.io/creators/solomon/**](https://n8n.io/creators/solomon/)
n8n$14.99Convert HTML to PDF and Compress Files with CustomJS API
 This n8n template demonstrates how to convert HTML into a PDF, compress the generated PDF, and return it as a binary response using the PDF Toolkit from www.customjs.space. ### Notice Community nodes can only be installed on self-hosted instances of n8n. [@custom-js/n8n-nodes-pdf-toolkit](https://www.npmjs.com/package/@custom-js/n8n-nodes-pdf-toolkit) ### What this workflow does - **Convert** the requested HTML to PDF. - **Compress** the PDF file. - **Use** a Code node to handle URLs pointing to PDF files if they exceed 6MB. - **Compress** the PDF pages. ### Requirements - **Self-hosted** n8n instance - **CustomJS API key** for compressing PDF files. - **HTML** Data to convert to PDF files - **Code node** for handling URLs that indicate a PDF file. ### Workflow Steps: 1. **Manual Trigger**: Runs with user interaction. 2. **HTML to PDF**: Request HTML Data - Convert HTML to PDF - Request PDF from URL. 3. **Compress Pages from PDF**: Compress PDF as a binary file. --- ### Usage ### Get API key from [customJS](https://www.customjs.space) - Sign up to the customJS platform. - Navigate to your profile page. - Press the Show button to get your API key.  ### Set Credentials for CustomJS API on n8n Copy and paste your API key generated from CustomJS here.  ### Design workflow - A Manual Trigger for starting the workflow. - HTTP Request Nodes for downloading PDF files. - Code node for handling URLs that indicate a PDF file. - Compress PDF files. You can replace the logic for triggering and returning results. For example, you can trigger this workflow by calling a webhook and get a result as a response from the webhook. Simply replace the Manual Trigger and Write to Disk nodes.
n8n$9.99Manage Adobe Acrobat E-Signatures with Webhooks
This workflow automatically manages Acrobat Sign signatures, responding with intent to Acrobat Sign webhooks. ## Prerequisites - [Adobe Acrobat Sign](https://www.adobe.com/sign.html) and [Sign webhook](https://helpx.adobe.com/sign/using/adobe-sign-webhooks-api.html) - Basic knowledge of JavaScript ## Nodes - [Webhook nodes](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.webhook/) trigger the workflow on new sign intents on a document. - [Respond to Webhook node](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.respondToWebhook/) sets the response headers. - [Function node](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.function/) processes data returned by the previous node. - [Set node](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.set/) sets the required values.
n8n$4.99Download and Merge Multiple PDFs from URLs with a Custom JS API
This n8n template demonstrates how to download multiple PDF files from public URLs and merge them into a single PDF using the PDF Toolkit from [www.customjs.space](https://www.customjs.space). [@custom-js/n8n-nodes-pdf-toolkit](https://www.npmjs.com/package/@custom-js/n8n-nodes-pdf-toolkit) ## What this workflow does - **Defines** an array of PDF URLs. - **Splits** the array to process each URL individually. - **Downloads** each PDF using an HTTP Request. - **Merges** all downloaded PDFs using the Merge PDF node from the @custom-js/n8n-nodes-pdf-toolkit. - **Writes** the final merged PDF to disk. ## Requirements A free CustomJS account. An API Key saved in n8n as credentials of type CustomJS account. ## Notice Community nodes can only be installed on self-hosted instances of n8n. ## Usage ### Get API key from [customJS](https://www.customjs.space) - Sign up to the customJS platform. - Navigate to your profile page. - Press the Show button to get your API key. ### Set Credentials for CustomJS API on n8n Copy and paste your API key generated from CustomJS here. ### Design workflow - A Manual trigger for starting the workflow. - A code node that returns URLs of PDF files as an array. - Split Out node for concurrent processing. - HTTP node for downloading PDF file locally. - Merge PDFs node for merging files. - Write to Disk node for saving the merged PDF file. You can replace the logic for triggering and returning results. For example, you can trigger this workflow by calling a webhook and get a result as a response from the webhook. Simply replace the Manual trigger and Write to Disk nodes. ## Perfect for - Bundling reports or invoices. - Generating document sets from external sources. - Automating PDF handling without writing custom code.
n8n$4.99Automate Invoice and Receipt OCR from Google Drive to Google Sheets
This workflow automates the process of recognizing invoices and receipts from a specified Google Drive folder and logging the extracted data into Google Sheets. It supports PDF, PNG, and JPG formats and triggers on new file uploads or manually.
n8n$9.99Automate File Uploads to Digital Ocean Spaces via n8n Form
This workflow automates the process of uploading files through an n8n form and saving them to Digital Ocean Spaces, ensuring they are publicly accessible.
n8n$3.99Convert HTML to PDF & Extract Text from PDFs with CustomJS API
 This n8n workflow illustrates how to convert PDF files into text with the PDF Toolkit from www.customjs.space. [@custom-js/n8n-nodes-pdf-toolkit](https://www.npmjs.com/package/@custom-js/n8n-nodes-pdf-toolkit) ### Notice Community nodes can only be installed on self-hosted instances of n8n. ### What this workflow does - **Change** the requested HTML to PDF. - **Extract** text from the PDF. - **Use** a Code node to handle URLs that point to PDF files. - **Convert** the PDF to text. ### Requirements - **Self-hosted** n8n instance. - **CustomJS API key** for converting PDF to text. - **HTML** Data to convert PDF files. - **Code node** for handling URL that indicates PDF file. ### Workflow Steps: 1. **Manual Trigger**: - Runs with user interaction. 2. **HTML to PDF**: - Request HTML Data - Convert HTML to PDF 3. **Convert PDF to Text**: - Convert the generated text from PDF --- ### Usage #### Get API key from [customJS](https://www.customjs.space) - Sign up to customJS platform. - Navigate to your profile page. - Press Show button to get API key.  #### Set Credentials for CustomJS API on n8n Copy and paste your API key generated from CustomJS here.  #### Design workflow - A Manual Trigger for starting the workflow. - HTTP Request Nodes for downloading PDF files. - Code node for handling URL that indicates PDF file. - Convert PDF to text. You can replace logic for triggering and returning results. For example, you can trigger this workflow by calling a webhook and get a result as a response from the webhook. Simply replace Manual Trigger and Write to Disk nodes.
n8n$4.99Automate PDF Processing and Summarization from Emails and Messaging Apps with OpenAI
Automatically extract and summarize PDF documents from Gmail, Outlook, Telegram, and WhatsApp using OpenAI, providing concise insights and routing summaries back to the original senders.
n8n$14.99Automate Document Conversion to Markdown Using MinerU API and GPT-4o-mini
This workflow automates the conversion of documents like PDFs and Word files into Markdown format using the MinerU API and GPT-4o-mini. It facilitates easy document uploads via an n8n chat interface, ensuring efficient and accurate markdown conversion.
n8n$4.99Effortlessly Convert Multi-Page PDFs to PNGs Using PDF.co API
This workflow automates the conversion of each page in a multi-page PDF into high-quality PNG images using the PDF.co API, streamlining the process for quick and efficient document conversion.
n8n$14.99Monitor and Download Changed Files from Google Drive Automatically
## Description This workflow automates the download of new or updated files from a Google Drive folder, processing only files changed since the last run using a timestamp control file. ## How It Works - Triggered on a schedule. - Checks for a `n8n_last_run.txt` file in your Google Drive to read when the workflow last ran. - If missing, defaults to processing changes in the last 24 hours. - Searches for new or modified files in your specified folder. - Downloads new/changed files. - Replaces the timestamp file with the current time for future runs. ## Setup Steps 1. Set up your Google Drive credentials in n8n. 2. Find the Folder ID of the Google Drive folder you wish to monitor. 3. Edit all Google Drive nodes: - Select your credentials - Paste the Folder ID 4. Adjust the schedule trigger if needed. 5. Activate the workflow. ## Features - No duplicate file processing (idempotent) - Handles missing timestamp files - Clear logical structure in the editor - Modular, extendable design ## Prerequisites - Google Drive API credentials connected to n8n - Target Google Drive folder accessible by the credentials
n8n$14.99Automate Local File Organization with AI on n8n
This n8n workflow automates the organization of files in a local directory using AI. It categorizes and moves files into appropriate subdirectories based on their filenames, helping maintain a tidy and efficient file system.
n8n$14.99Automate Nested Folder Creation in OneDrive with Existence Check
This workflow automates the creation of nested folders in OneDrive, ensuring only non-existing folders are created. Ideal for use as a sub-workflow in larger automation processes.
n8n$9.99Comprehensive Google Drive Operations with AI Integration
Deploy a fully operational MCP server that integrates all Google Drive operations with AI agents, requiring no configuration. This workflow supports 17 pre-built operations for seamless interaction with Google Drive.
n8n$14.99Automate Email Export from Gmail to Google Drive as CSV
This n8n workflow automates the export of emails from a specific sender in Gmail, formats the data, and uploads it as a CSV file to Google Drive.
n8n$9.99Convert HTML to PDF and Deliver via Webhook
This n8n workflow converts HTML content into a PDF using CustomJS and sends it back to the requester through a webhook.
n8n$3.99Convert Notion Pages to Markdown and Back
This workflow converts Notion pages to markdown format and then back to Notion blocks, effectively duplicating the content for demonstration purposes.
n8n$9.99Convert HTML & PDF Files to PNG Images with CustomJS PDF Toolkit
 This n8n workflow shows how to convert PDF files into PNG format with the PDF Toolkit from www.customjs.space. [@custom-js/n8n-nodes-pdf-toolkit](https://www.npmjs.com/package/@custom-js/n8n-nodes-pdf-toolkit) ### Notice Community nodes can only be installed on self-hosted instances of n8n. ### What this workflow does - **Generate** PDF file from the requested HTML. - **Convert** the PDF to PNG images. - **Use** a Code node to handle URLs that point to PDF files. - **Convert** the PDF to PNG format. ### Requirements - **Self-hosted** n8n instance. - **CustomJS API key** for converting PDF to PNG. - **HTML** Data to convert PDF files. - **Code node** for handling URL that indicates PDF file. ### Workflow Steps: 1. **Manual Trigger**: - Runs with user interaction. 2. **HTML to PDF**: - Request HTML Data. - Convert HTML to PDF. - Request PDF from Code. 3. **Convert PDF to PNG**: - Convert the generated PNG from PDF. --- ### Usage ### Get API key from [customJS](https://www.customjs.space) - Sign up to customJS platform. - Navigate to your profile page. - Press Show button to get API key.  ### Set Credentials for CustomJS API on n8n Copy and paste your API key generated from CustomJS here.  ### Design workflow - A Manual Trigger for starting the workflow. - HTTP Request Nodes for downloading PDF files. - Code node for handling URL that indicates PDF file. - Convert PDF to PNG. You can replace logic for triggering and returning results. For example, you can trigger this workflow by calling a webhook and get a result as a response from the webhook. Simply replace Manual Trigger and Write to Disk nodes.
n8n$9.99Convert JSON to an Excel File
Send a simple JSON array via HTTP POST and get an Excel file. The default filename is Export.xlsx. By adding the (optional) request `?filename=xyz`, you can specify the filename. NOTE: Do not forget to change the webhook path!
n8n$4.99Automate Recursive Google Drive Folder Duplication with Permission Retention
This n8n workflow automates the duplication of Google Drive folders, including all nested subfolders and files, while preserving the original sharing permissions.
n8n$14.99
Related categories
Custom AI Systems & Services
Our team of experienced AI builders will help build custom AI systems, workflows, and solutions.
Request Custom Work