File & Document Management Workflows
Document processing and management
Automate Invoice Processing from Gmail with AI and Human Verification
Streamline your invoice management by automatically processing invoices received via Gmail using Azure OpenAI for analysis and optional human verification for accuracy.
n8n$14.99Convert JSON Objects to Base64 Strings with File Processing
## Encode JSON to Base64 String in n8n This example workflow demonstrates how to convert a JSON object into a base64-encoded string using n8n's built-in file processing capabilities. This is a common requirement when working with APIs, webhooks, or SaaS integrations that expect payloads to be base64-encoded. > **Tip:** The three green-highlighted nodes (Stringify → Convert to File → Extract from File) can be wrapped in a Subworkflow to create a reusable Base64 encoder in your own projects. --- ## Requirements - Any running n8n instance (local or cloud) - No credentials or external services required --- ## What This Workflow Does 1. Generates example JSON data 2. Converts the JSON to a string 3. Saves the string as a binary file 4. Extracts the file's contents as a base64 string 5. Outputs the base64 string on the final node --- ## Step-by-Step Setup 1. **Manual Trigger** Start the workflow using the `Manual Execution` node. This is useful for testing and development. 2. **Create JSON Data** The `Create Json Data` node uses raw mode to construct a sample object with all major JSON types: strings, numbers, booleans, nulls, arrays, nested objects, etc. 3. **Convert to String** The `Convert to String` node uses the expression `={{ JSON.stringify($json) }}` to flatten the object into a single string field named `json_text`. 4. **Convert to File** The `Convert to File` node takes the `json_text` value and saves it to a UTF-8 encoded binary file in the property `encoded_text`. 5. **Extract from File** This node takes the binary file and extracts its contents as a base64-encoded string. The result is saved in the `base64_text` field. --- ## Customization Tips - Replace the sample JSON in the `Create Json Data` node with your own payload structure. - To make this reusable, extract the three core nodes into a Subworkflow or wrap them in a custom Function. - Use the `base64_text` output field to post to APIs, store in databases, or include in webhook responses.
n8n$9.99Automate Image Resizing and Insertion from Google Drive to Google Docs
This n8n workflow automates the retrieval, resizing, and insertion of images from Google Drive into Google Docs, ensuring efficient document creation with minimal manual effort.
n8n$9.99Automate Bulk File Uploads to Google Drive with Dynamic Folder Creation
Streamline your file management by automatically uploading multiple files to Google Drive, with dynamic folder creation based on user input.
n8n$9.99Automate Invoice Classification and Sorting in Google Drive with AI
Streamline your invoice processing by automatically classifying and sorting invoices in Google Drive using AI-powered classification. This workflow leverages n8n to extract, classify, and organize invoices into industry-specific folders, reducing manual effort and increasing efficiency.
n8n$14.99Automate Invoice Data Extraction and Excel Export with DocSumo
Streamline your invoice processing by automatically extracting structured data from PDFs using DocSumo and exporting it to Excel. This workflow simplifies data entry and reporting tasks, making it ideal for integration with accounting systems.
n8n$4.99Automate Markdown Note Creation in Obsidian via Google Drive
This workflow automatically converts n8n workflow outputs into Markdown notes, synchronizing them with your Obsidian Vault through Google Drive. Enhance your note-taking process by integrating AI for formatting and metadata generation.
n8n$9.99Convert Multiple Files to Base64 with JavaScript Code
## Base64 Encode Multiple Binary Files with a Code Node This template demonstrates how to handle multiple binary files in n8n by using a Code node to convert them into a Base64 encoded string. It's particularly useful when an API requires file uploads in this format and the standard Extract From File node is not sufficient for batch processing. The workflow starts by downloading a ZIP file, unzipping it to get multiple binary files, and then uses a Code node with custom JavaScript to encode each file individually. ### Instructions 1. Download and import this template into your n8n instance. 2. Run the workflow once to see how it downloads, unzips, and then encodes multiple files. 3. Modify the HTTP Request node to download your own binary file or a ZIP file containing multiple files. 4. Update the Code node if you need to adjust the output format or file paths. 5. Use the output of the Code node in a subsequent node, such as another HTTP Request to send the Base64-encoded files to your desired API. A link to the full blog post is available [here](https://n8nplaybook.com/post/2025/08/from-binary-to-base64-in-n8n/).
n8n$4.99Automate LINE File Management with Google Drive and Sheets Logging
Streamline your file management by automatically saving LINE message files to Google Drive, organizing them by date and type, and logging details in Google Sheets.
n8n$14.99Automate Gmail Attachment Uploads to Google Drive Without Coding
Effortlessly upload multiple Gmail attachments to Google Drive using n8n's item handling and expression features, without any coding.
n8n$4.99Deploy a Microsoft OneDrive MCP Server for AI Integration
Set up a complete Microsoft OneDrive MCP server to handle all 14 operations seamlessly with AI agents. This workflow requires no configuration and is ready for immediate deployment.
n8n$14.99Automatically Secure New PDF Files in SharePoint with Plumsail
This workflow automatically secures new PDF files in a SharePoint library using Plumsail Documents, ensuring they are protected and saved back to the cloud storage.
Make$4.99Automate HOA Lien Document Generation with n8n, Apify, and Google Workspace
Streamline the lien filing process for Homeowners Associations by automating document retrieval, information extraction, and document generation using n8n, Apify, and Google Workspace.
n8n$19.99Automate Video Transcription with Google Drive and VLM Run
Streamline your video transcription process by automatically converting video files from Google Drive into text using VLM Run's AI capabilities and storing the results in Google Docs.
n8n$9.99Automatically Upload Gmail Attachments to Google Drive
This workflow extracts multiple attachments from new Gmail emails and uploads them to Google Drive, streamlining your file management process.
n8n$3.99Get CSV from URL and Convert to Excel
This workflow demonstrates the conversion of a CSV file to Excel format. First, an example CSV file is downloaded via a direct link. The source file is taken from the European Open Data Portal: [https://data.europa.eu/data/datasets/veranstaltungsplaetze-potsdam-potsdam?locale=en](https://data.europa.eu/data/datasets/veranstaltungsplaetze-potsdam-potsdam?locale=en) The binary data is then imported via the Spreadsheet File node and converted to Excel format. N.B. Note that as of version 1.23.0 of n8n, the Spreadsheet File node has been redesigned and is now called Convert to File node. Learn more on the release notes page: [https://docs.n8n.io/release-notes/#n8n1230](https://docs.n8n.io/release-notes/#n8n1230)
n8n$4.99Parse and Extract Invoice Data with Nanonets OCR and Export to Excel
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. ## Description This workflow automates document processing and structured table extraction using the Nanonets API. You can submit a PDF file via an n8n form trigger or webhook—the workflow then forwards the document to Nanonets, waits for asynchronous parsing to finish, retrieves the results (including header fields and line items/tables), and returns the output as an Excel file. Ideal for automating invoice, receipt, or order data extraction with downstream business use. ## How It Works - A document is uploaded (via n8n form or webhook). - The PDF is sent to the Nanonets Workflow API for parsing. - The workflow waits until processing is complete. - Parsed results are fetched. Both top-level fields and any table rows/line items are extracted and restructured. - Data is exported to Excel format and delivered to the requester. ## Setup Steps 1. **Nanonets Account**: Register for a Nanonets account and set up a workflow for your specific document type (e.g., invoice, receipt). 2. **Credentials in n8n**: Add HTTP Basic Auth credentials in n8n for the Nanonets API (never store credentials directly in node parameters). 3. **Webhook/Form Configuration**: - Option 1: Configure and enable the included n8n Form Trigger node for document uploads. - Option 2: Use the included Webhook node to accept external POSTs with a PDF file. 4. **Adjust Workflow**: - Update any HTTP nodes to use your credential profile. - Insert your Nanonets Workflow ID in all relevant nodes. 5. **Test the Workflow**: Enable the workflow and try with a sample document. ## Features - Accepts documents via n8n Form Trigger or direct webhook POST. - Securely sends files to Nanonets for document parsing (credentials stored in n8n credentials manager). - Automatically waits for async processing, checking Nanonets until results are ready. - Extracts both header data and all table/line items into a tabular format. - Exports results as an Excel file download. - Modular nodes allow easy customization or extension. ## Prerequisites - **Nanonets account** with workflow configured for your document type. - **n8n** instance with HTTP Request, Webhook/Form, Code, and Excel/Spreadsheet nodes enabled. - **Valid HTTP Basic Auth credentials** saved in n8n for API access. ## Example Use Cases | Scenario | Benefit | |---------------------|----------------------------------------------| | Invoice Processing | Automated extraction of line items and totals| | Receipt Digitization| Parse amounts and charges for expense reports| | Purchase Orders | Convert scanned POs into structured Excel sheets| ## Notes - You must set up credentials in the n8n credentials manager—do not store API keys directly in nodes. - All configuration and endpoints are clearly explained with inline sticky notes in the workflow editor. - Easily adaptable for other document types or similar APIs—just modify endpoints and result mapping.
n8n$9.99Automate PDF to HTML Conversion with Google Drive and PDF.co
This n8n workflow automates the conversion of newly uploaded PDF files in Google Drive to HTML format using PDF.co, and saves the converted files back to Google Drive.
n8n$4.99Import Odoo Product Images From Google Drive
## **Objective** This workflow automatically imports product images from Google Drive and associates them with templates and products in Odoo.
n8n$14.99Automate FTP File Transfers to Google Drive
This workflow automates the transfer of files from an FTP server to Google Drive, ideal for backups, data migration, and file synchronization.
n8n$9.99Create eSignatures.io contracts from Google Sheets
Every time a new row is added to your Google Sheets spreadsheet, Make will automatically create a contract from an eSignatures.io template. The template uses this [example spreadsheet](https://docs.google.com/spreadsheets/d/1LuxqFtx8eBNUwLyHkPxbUpP-aqMMX8ykE25Yn4UmKk/edit?usp=sharing).
Make$3.99Generate and Upload Survey123 Feature Reports to Google Drive
Automatically create a feature report from a Survey123 submission and upload the report to Google Drive for easy access and sharing.
Make$4.99Automate PDF Signing Workflow from OneDrive to PandaDoc
Automatically send newly uploaded PDF documents from OneDrive to PandaDoc for signing. This workflow supports documents with one or two signature fields, streamlining the document signing process.
Make$4.99Generate barcode from data in Google Sheets rows and save it to FileCloud
When a new row is added in Google Sheets spreadsheet, a new Barcode with data from the row is generated and the output file with the barcode is then uploaded to specified folder in FileCloud.
Make$3.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