Automate sophisticated multi-level document approval processes using this n8n workflow template, leveraging Supabase as the backend database and Gmail for secure, tokenized approval links. Track every step with audit logs.
Download this n8n workflow template and start using it instantly.
Managing internal document approvals, such as contracts or policies, often requires complex, multi-tiered workflows. This sophisticated n8n workflow template solves this challenge by providing a robust, automated approval system. When a document is submitted via an n8n trigger form, the system stores the file in Supabase storage and initiates the first approval level defined in your workflowlevels table. The core value of this n8n workflow is its ability to handle conditional progression: if approved, it automatically identifies and routes the document to the next required approver level; if rejected, the process terminates immediately. Furthermore, every action, including submission, approval requests, and final decisions, is meticulously recorded in an auditlogs table, ensuring full compliance and traceability. This comprehensive n8n template significantly reduces manual overhead for document processing.
This n8n workflow operates in two distinct phases: initiation and execution.
documents table using a Supabase n8n node.workflowlevels table.roleid from the users table.approvals table, linking the document, approver, and the unique token.checkrejectorapprove If n8n node evaluates the decision:documents table, and an audit log is created.getnextlevel).islast_level If n8n node checks if a subsequent level exists:documents table status is updated to 'Approved', and a final audit log is recorded, concluding this powerful n8n workflow.To deploy this high-functioning n8n workflow template, follow these steps:
documents, approvals, auditlogs, workflowlevels, users).uploadtosupabasestorage and fetchfiletoreview nodes with your specific Supabase Project ID and bucket name.roles, users, documents, workflowlevels, approvals, auditlogs) exactly as described in the sticky note within the n8n workflow JSON.http://localhost:5678/webhook-test/approve?token=... with the live URL of your n8n instance. Remember to remove /webhook-test if running in production mode.This n8n workflow utilizes several key n8n nodes to manage the logic and data:
Form Trigger (startapprovalform): This is the initial n8n trigger. It provides a simple web form interface for users to submit the document title, description, and the required PDF file.
Supabase Node (Multiple Instances): This essential n8n node handles all database interactions. Operations include insert (saving documents, approvals, audit logs) and get/getAll (fetching workflow levels and user roles).
Key Configuration: Used extensively for filtering (e.g., matching token, levelnumber, or roleid) to ensure data integrity across the approval stages.
HTTP Request Node (uploadtosupabasestorage): Used to securely push the submitted document file directly into your designated Supabase Storage bucket. This uses binary data mapping.
Crypto Node (createuuidtoken / generateuuid): A vital security n8n node that generates unique, one-time tokens. These tokens are used in the approval links to securely identify the approval record when the webhook is triggered.
Gmail Node (sendemail / sendemaibylevel): Sends rich HTML emails containing the secure, tokenized Approve/Reject links necessary to continue the n8n workflow execution.
Webhook Node (Webhook): Acts as the execution n8n trigger for the approval decision callback. It captures the query parameters token and decision from the clicked link.
If Node (checkrejectorapprove / islast_level): These core logic n8n nodes control the flow. They check if the decision was 'approved' and determine if the current level is the final stage before proceeding or concluding the n8n workflow.
Use this robust n8n workflow to automate Docker-based n8n updates securely. Features scheduled checks, digest comparison, and required email approval before executing critical SSH commands.

Use this powerful n8n workflow to automate checking and updating your self-hosted n8n Docker instance. This n8n template integrates SSH for executing Docker commands and Telegram for secure, manual approval.

Automate digital product delivery using this n8n workflow. Triggered by Stripe payments, it handles logging in Google Sheets, securing file links from Google Drive, and sending the product via email.

Use this powerful n8n workflow to automatically ingest, chunk, embed, and index Google Drive documents into Pinecone for a custom RAG (Retrieval Augmented Generation) knowledge base, powered by OpenAI. Discover how to create efficient n8n templates.

Use this powerful n8n workflow to automatically deploy and orchestrate multiple RAG agents via Contextual AI and Gemini. This advanced n8n template leverages sophisticated n8n nodes, memory, and specialized tools, starting with the n8n trigger.

I am a Principal Software Engineer based in Ireland with a deep passion for AI and emerging technologies. With extensive experience in designing and implementing scalable software solutions, I focus on leveraging artificial intelligence to solve real-world problems. I enjoy exploring innovative applications of AI, from intelligent automation to data-driven insights, and I’m dedicated to building systems that are both efficient and impactful.







































