Category: n8n Workflows

  • Automate Tiktok Video Posting From Google Sheets & Drive With Blotato 7731 – n8n Workflows – Free Template

    What This Workflow Does

    This n8n workflow automates the process of retrieving video data from Google Sheets and filtering content based on publication status. It runs on a scheduled interval to identify videos marked as “pending” and processes them one at a time to prevent exceeding API rate limits. The workflow integrates with Google Sheets, Google Drive, and the Blotato node to manage video content efficiently.

    How It Works

    The workflow operates through a series of coordinated steps that ensure reliable data retrieval and processing:

    • Schedule Trigger: Activates automatically every hour to maintain consistent data synchronization
    • Google Sheets Node: Connects to your spreadsheet and retrieves all video data records
    • If Node: Evaluates each record and filters for entries with a “pending” status only
    • Limit Node: Restricts processing to one video per execution cycle to avoid overwhelming external APIs
    • Set Node: Prepares and structures data for downstream processing
    • Blotato Node: Handles specialized processing of video metadata or content transformation
    • Google Drive Node: Manages file storage and organization of processed videos
    • Sticky Note: Provides workflow documentation and reference notes for team members

    Use Cases

    • Video Content Management: Automatically process pending video uploads from a content calendar stored in Google Sheets, updating their status as they move through production stages
    • Social Media Publishing Pipeline: Retrieve videos awaiting publication from a shared spreadsheet and organize them into Google Drive folders by date or platform destination
    • Batch Video Processing: Transform and prepare video metadata for multiple platforms by processing one video per hour to maintain stable API connections
    • Content Review Workflow: Filter videos marked as pending review, organize supporting files in Google Drive, and prepare them for team member approval
    • Scheduled Content Distribution: Automatically queue pending videos for distribution to multiple channels while tracking status changes in your Google Sheet

    Nodes Used

    • Schedule Trigger: Time-based trigger that executes the workflow at regular hourly intervals
    • Google Sheets: Reads and retrieves video data from a connected Google Sheet
    • If Node: Conditional logic that evaluates status fields and filters for pending items
    • Limit Node: Rate limiting control that processes exactly one record per workflow execution
    • Set Node: Data transformation and variable assignment for downstream nodes
    • Blotato Node: Custom processing node for specialized video data handling (community node)
    • Google Drive: File management and storage integration for processed videos
    • Sticky Note: Documentation node for adding notes and instructions within the workflow

    Prerequisites

    • Self-hosted n8n instance with community node support enabled
    • Active Google Account with access to Google Sheets and Google Drive
    • Blotato community node installed on your n8n instance
    • A Google Sheet containing video data with a status column marked as “pending”
    • Google OAuth credentials configured in your n8n environment
    • Proper permissions set for both Google Sheets and Google Drive access
    • Understanding of basic workflow structure and conditional logic

    Difficulty Level

    Intermediate. This workflow requires familiarity with n8n node configuration, Google API integration, and conditional filtering logic. Users should understand how to set up OAuth credentials, configure API connections, and modify filtering conditions based on their specific data structure. The workflow is more complex than basic automation but remains manageable for users with prior n8n experience.

    This workflow template is shared under the n8n fair-code license. Free to use and modify.

  • Automate Tiktok Video Transcription With Rapidapi And Google Sheets 5882 – n8n Workflows – Free Template

    What This Workflow Does

    This n8n workflow automates the extraction of transcripts from TikTok videos using the RapidAPI TikTok Transcript Generator. It seamlessly integrates with Google Sheets to store and organize transcriptions, automatically cleaning the data and adding timestamps. The workflow intelligently processes only rows that are missing transcripts, preventing duplicate work and optimizing API usage.

    How It Works

    The workflow begins with a manual trigger that initiates the process on demand. It retrieves video data from a connected Google Sheet, identifies rows without transcripts, and sends requests to the RapidAPI TikTok Transcript Generator service. The system processes responses in batches to manage API rate limits, includes built-in wait times between requests, and implements conditional logic to handle various response scenarios. Finally, it updates the Google Sheet with cleaned transcriptions and timestamps, maintaining a complete audit trail of when each transcript was extracted.

    Key Features:

    • Automatic transcript extraction from TikTok videos
    • Integration with Google Sheets for centralized data management
    • Batch processing to respect API rate limits
    • Error handling and conditional logic for robust operation
    • Timestamp logging for audit purposes
    • Smart filtering to skip rows already containing transcripts

    Use Cases

    • Content Analysis: Marketing teams can extract and analyze TikTok video transcripts to understand messaging trends and audience engagement patterns across their content library.
    • Accessibility Compliance: Content creators can automatically generate transcripts for accessibility purposes, ensuring their TikTok videos meet WCAG standards and reach a broader audience.
    • SEO Optimization: Digital marketers can repurpose TikTok transcripts for blog posts, social media captions, and search engine optimization to drive organic traffic from multiple channels.
    • Research and Data Collection: Researchers and analysts can systematically collect and organize transcripts from TikTok videos for sentiment analysis, trend detection, and competitive research.
    • Content Management: Agencies managing multiple TikTok accounts can maintain a centralized database of all video transcripts for easier searchability, compliance audits, and content repurposing workflows.

    Nodes Used

    • Manual Trigger: Initiates the workflow on demand rather than running on a schedule
    • Google Sheets: Reads video data and writes transcript results back to the spreadsheet
    • HTTP Request: Communicates with the RapidAPI TikTok Transcript Generator endpoint
    • Split in Batches: Divides the video list into manageable chunks to handle API rate limits
    • Wait: Introduces delays between API requests to avoid exceeding rate limits
    • If: Implements conditional logic to handle different API response scenarios and error states
    • Code: Processes and cleans transcript data before updating the sheet
    • Sticky Note: Provides documentation and guidance within the workflow interface

    Prerequisites

    • An active n8n account with access to workflow creation and management
    • A Google Sheets account with a spreadsheet containing TikTok video URLs or IDs
    • A RapidAPI account with an active subscription to the TikTok Transcript Generator API
    • API credentials including the RapidAPI key and TikTok Transcript Generator endpoint details
    • Proper Google Sheets authentication configured within n8n
    • Understanding of basic workflow concepts and JSON data structure

    Difficulty Level

    Intermediate: This workflow requires foundational knowledge of n8n node configuration, API integration, and Google Sheets connectivity. While the core concepts are straightforward, implementing batch processing, rate limiting, error handling, and data transformation requires hands-on experience with workflow automation. Users should be comfortable with JSON data manipulation and have successfully completed at least one previous n8n workflow before attempting this setup.

    This workflow template is shared under the n8n fair-code license. Free to use and modify.

  • Automate Time Tracking Enforcement & Cleanup For Awork Tasks 4805 – n8n Workflows – Free Template

    What This Workflow Does

    This n8n workflow automates time tracking enforcement and cleanup for Awork tasks. It ensures that time has been properly tracked before tasks can be closed, maintains minimum time tracking intervals, and notifies users when time tracking requirements are not met. The workflow can be customized to monitor specific tasks using tags and automatically reopens tasks that don’t meet time tracking criteria.

    How It Works

    The workflow operates through a webhook trigger that monitors task status changes in Awork. When a task is marked as complete, the system checks whether adequate time has been tracked against that task. If time tracking is missing or falls below the minimum threshold (such as the required 15-minute interval), the workflow automatically:

    • Prevents task closure by reopening the task
    • Sends a notification to the task owner
    • Applies tag-based filtering to limit enforcement to specific task categories
    • Validates time entries meet minimum duration requirements
    • Maintains accurate project time tracking records

    Use Cases

    • Professional Services Firms: Ensure billable hours are properly tracked for client invoicing and project profitability analysis
    • Freelance Teams: Enforce consistent time logging practices across team members working on multiple client projects
    • Software Development: Track time spent on specific development tasks to improve project estimation accuracy
    • Creative Agencies: Monitor time allocation across design, revision, and client communication tasks for better resource planning
    • Compliance-Heavy Industries: Maintain audit trails and enforce regulatory requirements for time tracking documentation

    Nodes Used

    • Webhook: Triggers the workflow when task status changes occur in Awork
    • Set: Initializes variables and data structures for workflow execution
    • SplitOut: Distributes data across multiple processing paths
    • Filter: Narrows down task processing based on specific criteria
    • If: Creates conditional logic branches for decision making
    • Code: Executes custom JavaScript for advanced time tracking calculations
    • HttpRequest: Makes API calls to Awork to retrieve and update task information
    • Switch: Routes workflow execution based on different outcome scenarios
    • StickyNote: Provides inline documentation and workflow annotations

    Prerequisites

    • Active Awork account with administrative or project manager permissions
    • n8n self-hosted or cloud instance with webhook capability enabled
    • Awork API credentials configured in n8n credentials manager
    • Understanding of Awork task management and time tracking features
    • Basic familiarity with workflow automation concepts
    • Access to define webhook URLs in your n8n environment

    Difficulty Level

    Intermediate. This workflow requires understanding of conditional logic, API integration, and time tracking concepts. While the template provides a foundation, customization for tag-based filtering and notification preferences may require some code modification experience. Users comfortable with workflow automation and API connections should find implementation straightforward.

    This workflow template is shared under the n8n fair-code license. Free to use and modify.

  • Automate Timesheet To Invoice Conversion With Openai, Gmail & Google Workspace 11327 – n8n Workflows – Free Template

    What This Workflow Does

    This n8n workflow automates the complete process of converting timesheet data into professional invoices. It extracts timesheet information from email attachments using OCR technology, processes the data through AI for intelligent parsing, calculates invoice dates based on project requirements, and automatically generates formatted invoice sheets in Google Sheets while storing supporting documents in Google Drive.

    How It Works

    The workflow begins when a new email arrives with timesheet attachments. Each attachment is sent to an OCR API service to convert PDFs and images into machine-readable text. This extracted text is then processed through OpenAI to intelligently parse timesheet details, extract relevant information, and structure the data. The workflow calculates invoice dates and due dates based on the timesheet’s week-end date and predefined PO due date rules. Finally, it creates organized folder structures in Google Drive, generates new invoice sheets in Google Sheets, populates them with the extracted and processed data, and sends confirmation emails through Gmail.

    Use Cases

    • Freelance agencies receiving multiple client timesheets weekly and needing to rapidly convert them into invoices for billing
    • Project-based companies automating timesheet processing to reduce manual data entry and invoice generation time
    • Staffing firms managing contractor hours across multiple clients with varying PO terms and invoice requirements
    • Consulting businesses processing handwritten or scanned timesheet documents from field teams into standardized digital invoices
    • Finance departments reducing invoice processing cycle time and minimizing errors in timesheet-to-invoice workflows

    Nodes Used

    • Gmail Trigger – Monitors incoming emails for timesheet attachments
    • Code – Executes custom logic for data transformation and processing
    • Split In Batches – Processes multiple attachments efficiently in controlled batches
    • OpenAI – Intelligently extracts and parses timesheet data from OCR text
    • Google Sheets – Creates and populates invoice sheets with processed data
    • Set – Defines variables and data mappings throughout the workflow
    • If – Creates conditional branches based on data validation and requirements
    • Merge – Combines data from multiple sources before creating invoices
    • Google Drive – Organizes and stores invoice documents and supporting files
    • HTTP Request – Calls external OCR API services for document text extraction
    • Sticky Note – Provides workflow documentation and notes for operators

    Prerequisites

    • Active Gmail account with IMAP access enabled for email trigger functionality
    • Google Workspace account with Sheets and Drive access for document creation and storage
    • OpenAI API key with access to GPT models for intelligent data extraction
    • Access to an OCR API service with HTTP endpoint for converting documents to text
    • n8n instance running with proper node packages installed for Gmail, Google Sheets, Google Drive, and HTTP request nodes
    • Pre-configured Google Sheets template with invoice formatting and formulas
    • Defined folder structure in Google Drive for organizing invoice documents by year and client

    Difficulty Level

    Intermediate to Advanced. This workflow requires familiarity with multiple cloud services including Gmail, Google Workspace, and OpenAI API integration. Users should understand how to configure authentication across multiple platforms, work with JSON data structures, and have basic knowledge of conditional logic. Prior experience with automation workflows and API integration is recommended, though the template provides a solid foundation for users willing to customize authentication and API keys for their specific environment.

    This workflow template is shared under the n8n fair-code license. Free to use and modify.

  • Automate Token Purchases With Dollar Cost Averaging On Uniswap V3 & 1Shot Api 8044 – n8n Workflows – Free Template

    What This Workflow Does

    This n8n workflow automates Dollar-Cost Averaging (DCA) purchases on Uniswap V3. It executes scheduled cryptocurrency swaps at regular intervals, allowing you to invest a fixed amount at consistent time periods without manual intervention. The workflow sends Telegram notifications to keep you updated on each transaction.

    How It Works

    The workflow operates through a scheduled trigger that initiates at your chosen frequency. When activated, it executes a series of steps:

    • The Schedule Trigger node determines when purchases occur (daily, weekly, monthly, etc.)
    • The Swap Configs code node calculates the transaction parameters based on your settings
    • The workflow connects directly to Uniswap V3 smart contracts to execute the swap
    • A Telegram notification is sent confirming the purchase details and transaction status
    • The oneShot nodes ensure the workflow executes exactly once per scheduled interval

    Use Cases

    • Automated investment strategy for long-term cryptocurrency holdings without timing the market
    • Regular purchasing of stable assets or altcoins at predetermined intervals
    • Building a diversified crypto portfolio through consistent, disciplined investments
    • Reducing emotional trading decisions by automating buys on a fixed schedule
    • Tracking multiple DCA positions simultaneously across different token pairs

    Nodes Used

    • Schedule Trigger: Sets the recurring execution frequency for DCA purchases
    • Code Node: Contains swap configuration logic and calculation parameters
    • oneShot Node: Ensures single execution per scheduled interval
    • oneShotSynch Node: Synchronizes execution across multiple instances
    • Telegram Node: Sends transaction confirmations and status updates
    • Sticky Note Node: Provides workflow documentation and configuration reminders

    Prerequisites

    • Active n8n instance with workflow execution enabled
    • Uniswap V3 smart contract interaction capability
    • Cryptocurrency wallet with sufficient balance for DCA purchases
    • Telegram bot token and chat ID for notifications
    • Knowledge of token contract addresses and swap pair configurations
    • Understanding of gas fees and transaction costs on your blockchain network

    Difficulty Level

    Intermediate. This workflow requires familiarity with cryptocurrency protocols, Uniswap V3 parameters, and wallet configuration. Users should understand DCA concepts and be comfortable editing code nodes to customize swap amounts and token addresses. Basic knowledge of n8n workflow structure and node connections is essential.

    This workflow template is shared under the n8n fair-code license. Free to use and modify.

  • Automate Social Media Posts With Ai Content And Images Across Twitter, Linkedin & Facebook 5841 – n8n Workflows – Free Template

    What This Workflow Does

    This n8n workflow automates the process of scheduling and distributing content across multiple social media platforms simultaneously. It retrieves scheduled posts from Google Sheets, generates or processes content using OpenAI, and automatically publishes to Twitter, LinkedIn, and Facebook at specified times.

    How It Works

    The workflow operates through a scheduled trigger that activates at predetermined intervals. Once triggered, it pulls post data from Google Sheets, uses OpenAI to enhance or generate content if needed, and then distributes the final posts across three major social media platforms in a single automated action. This eliminates manual posting and ensures consistent timing across all channels.

    Use Cases

    • Marketing teams managing multi-channel social media campaigns with consistent messaging across platforms
    • Content creators maintaining a regular posting schedule without manual intervention throughout the day
    • Small business owners automating promotional content distribution during peak engagement hours
    • Agencies managing multiple client social accounts with centralized scheduling and approval workflows
    • Thought leaders and influencers maintaining active presence on multiple networks simultaneously

    Nodes Used

    • Schedule Trigger: Initiates the workflow at specified times or intervals
    • Google Sheets: Retrieves scheduled posts and content data from a spreadsheet
    • OpenAI: Generates, optimizes, or transforms content for social media
    • Twitter: Publishes posts to Twitter accounts
    • LinkedIn: Distributes content to LinkedIn profiles or company pages
    • Facebook Graph API: Posts content to Facebook pages or groups

    Prerequisites

    • Active accounts on Twitter, LinkedIn, and Facebook with API access credentials
    • OpenAI API key with appropriate credits for content generation
    • Google account with Sheets API enabled and a prepared spreadsheet containing post data
    • n8n instance with access to all required node types and integrations
    • Proper authentication and permission tokens for each social media platform

    Difficulty Level

    Intermediate. This workflow requires basic familiarity with n8n node configuration, API authentication, and social media platform credentials. Users should understand how to set up Google Sheets data structure and configure API connections, but no advanced coding is required.

    This workflow template is shared under the n8n fair-code license. Free to use and modify.

  • Automate Support Qa Reviews With Intercom, Gpt And Google Sheets 5831 – n8n Workflows – Free Template

    What This Workflow Does

    This n8n automation streamlines quality assurance for customer support teams by leveraging AI to analyze Intercom conversations. When a support conversation is closed, the workflow automatically triggers an intelligent review process that evaluates agent performance, identifies coaching opportunities, and logs structured feedback directly into Google Sheets for team analysis and improvement tracking.

    How It Works

    The workflow begins when Intercom sends a webhook notification for a closed conversation. An HTTP request retrieves the full conversation details from Intercom’s API. An AI agent powered by OpenAI’s language model analyzes the conversation against key QA metrics including response quality, tone, resolution effectiveness, and customer satisfaction indicators. The workflow then splits the analysis results, processes them through custom code logic, merges the data with conversation metadata, and automatically logs all findings into a Google Sheets document for team review and trend analysis.

    Use Cases

    • Quality Assurance Teams: Automatically review support interactions and identify agents needing coaching without manual monitoring
    • Customer Success Leaders: Track conversation quality metrics over time to identify training gaps and high performers
    • Support Operations: Build a centralized database of conversation reviews to benchmark team performance against service level agreements
    • Compliance and Risk Management: Ensure customer interactions follow brand guidelines and regulatory requirements with AI-powered audit trails
    • Training Programs: Use AI-generated feedback and coaching recommendations to develop targeted agent training curriculum

    Nodes Used

    • Webhook: Receives conversation closure events from Intercom
    • HTTP Request: Fetches detailed conversation data from Intercom API
    • n8n Agent: Orchestrates the AI analysis process with decision logic
    • LM Chat OpenAI: Performs intelligent conversation analysis using GPT models
    • Split Out: Distributes analysis results for parallel processing
    • Code: Transforms and validates AI analysis data
    • Merge: Combines processed data with original conversation metadata
    • Google Sheets: Stores final QA review results for team access
    • If: Routes workflow based on analysis scores or thresholds
    • Sticky Note: Provides workflow documentation and process notes

    Prerequisites

    • Active Intercom account with API access and webhook configuration capabilities
    • OpenAI API key with access to GPT-4 or GPT-3.5-turbo models
    • Google Workspace account with Google Sheets API enabled
    • Pre-created Google Sheet with columns for conversation ID, agent name, QA score, feedback summary, and coaching notes
    • n8n instance with outbound webhook functionality and HTTP request capabilities enabled
    • Basic familiarity with Intercom conversation data structure and API endpoints

    Difficulty Level

    Intermediate. This workflow requires configuration of three external APIs (Intercom, OpenAI, and Google Sheets), understanding of JSON data structures, and knowledge of n8n’s agent and code nodes. Most technical users with API integration experience can implement this in 30-45 minutes.

    This workflow template is shared under the n8n fair-code license. Free to use and modify.

  • Automate Solana Trading With Gemini Ai, Multi Timeframe Analysis & Afk Crypto 9691 – n8n Workflows – Free Template

    What This Workflow Does

    This n8n workflow automates cryptocurrency trading analysis and execution for SOL/USDT trading pairs. It fetches real-time market data across multiple timeframes, analyzes price action using artificial intelligence, and sends trade signals to Telegram for manual approval before execution. The workflow runs on a scheduled basis, eliminating the need for manual market monitoring.

    How It Works

    The workflow operates through a systematic process designed for both automation and human oversight:

    • A schedule trigger initiates the workflow every hour, starting a complete analysis cycle
    • The Market Data Aggregator node fetches OHLCV (Open, High, Low, Close, Volume) data from Crypto Compare API across multiple timeframes
    • An AI agent powered by Google Gemini LM processes the market data and generates trading analysis
    • The code node formats the analysis results into a readable message
    • A Telegram notification sends the trade signal to your approved channel or chat
    • An if condition node evaluates approval status from Telegram responses
    • Upon approval, the workflow executes the trade or waits for the next cycle
    • A merge node consolidates data from multiple branches for final processing

    Use Cases

    • Day traders who need hourly analysis of SOL/USDT without constant screen monitoring
    • Swing traders seeking AI-powered confirmation before entering or exiting positions
    • Portfolio managers tracking Solana exposure alongside other digital assets
    • Crypto trading bots that require human approval gates for risk management
    • Traders building a trading journal with automated signal generation and timestamps

    Nodes Used

    • Schedule Trigger: Initiates workflow execution at defined intervals (default: hourly)
    • HTTP Request: Connects to Crypto Compare API to retrieve market data
    • Code Node: Processes and formats raw data for AI analysis and readability
    • Google Gemini LM Chat: AI language model that analyzes market conditions and generates insights
    • Agent Node: Coordinates multi-step decision making and data flow between nodes
    • Telegram Node: Sends notifications and receives approval responses
    • If Node: Routes workflow based on approval status or market conditions
    • Wait Node: Introduces delays between actions to comply with API rate limits
    • Merge Node: Combines data from parallel workflow branches
    • Sticky Note: Documentation nodes explaining workflow logic and parameters

    Prerequisites

    • Active n8n instance (cloud or self-hosted)
    • Crypto Compare API key for accessing SOL/USDT market data
    • Google Gemini API credentials for AI analysis capabilities
    • Telegram bot token and authorized chat ID or channel for notifications
    • Basic understanding of cryptocurrency trading terminology and concepts
    • Exchange API credentials (optional, if automating actual trades beyond analysis)
    • Stable internet connection for scheduled workflow execution

    Difficulty Level

    Advanced. This workflow combines multiple API integrations, conditional logic, AI processing, and manual approval gates. Users should be comfortable with n8n node configuration, API authentication, and cryptocurrency trading concepts. Customization for different trading pairs or timeframes requires knowledge of JSON data structures and workflow node connections.

    This workflow template is shared under the n8n fair-code license. Free to use and modify.

  • Automate Solar Lead Qualification & Follow Ups With Google Sheets And Gmail 3794 – n8n Workflows – Free Template

    What This Workflow Does

    This n8n workflow automates the qualification process for solar energy leads. It captures incoming lead information through a webhook, validates and processes the data, stores it in Google Sheets, and sends automated notifications via Gmail when leads meet specific qualification criteria.

    How It Works

    The workflow follows this sequence of operations:

    • Receives lead data from an external source via webhook trigger
    • Retrieves relevant documents from Google Drive for reference or qualification standards
    • Processes the lead information using custom functions to validate and enrich the data
    • Stores qualified lead details in a Google Sheets database for tracking and analysis
    • Monitors the Google Sheets for new entries using the sheet trigger
    • Executes conditional logic to determine if leads meet qualification thresholds
    • Sends Gmail notifications to relevant team members for qualified leads
    • Includes note documentation for workflow reference and maintenance

    Use Cases

    • Solar installation companies automating lead qualification to prioritize high-value prospects and reduce manual review time
    • Real estate investment firms qualifying property leads based on solar installation potential and ROI metrics
    • Energy efficiency consultants automating client intake and qualification for solar system assessments
    • Marketing agencies managing solar leads for multiple clients with standardized qualification workflows
    • Solar financing companies pre-qualifying applicants before formal credit review and underwriting processes

    Nodes Used

    • Webhook – Receives incoming lead data from external sources or forms
    • Google Drive – Accesses reference documents and qualification criteria files
    • Function – Processes and validates lead data with custom JavaScript logic
    • Google Sheets – Stores and manages qualified lead records in a spreadsheet database
    • Google Sheets Trigger – Monitors the spreadsheet for new or updated entries
    • Code – Executes additional data transformation and business logic
    • If – Implements conditional branching based on qualification criteria
    • Gmail – Sends email notifications to team members about qualified leads
    • Sticky Note – Provides inline documentation and workflow notes

    Prerequisites

    • Active n8n instance or cloud account with workflow building capabilities
    • Google account with access to Google Drive, Google Sheets, and Gmail services
    • n8n credentials configured for Google Drive, Google Sheets, and Gmail integrations
    • A Google Sheet created with columns for lead data such as name, email, property details, and qualification scores
    • Gmail account with permission to send automated emails from your domain
    • Webhook URL generated within n8n to receive lead submissions from your lead source
    • Understanding of your lead qualification criteria and scoring methodology
    • Basic familiarity with JSON data structure and conditional logic

    Difficulty Level

    Intermediate – This workflow requires understanding of webhook configuration, Google service authentication, and conditional logic. Users should be comfortable with basic data transformation and have access to configure integrations. No advanced coding is required, though knowledge of JavaScript function syntax is helpful for customization.

    This workflow template is shared under the n8n fair-code license. Free to use and modify.

  • Automate Spam Filtering With Gpt 4 & Gmail 4091 – n8n Workflows – Free Template

    What This Workflow Does

    This AI-powered automation workflow automatically scans your Gmail inbox and intelligently filters out unwanted emails. Using OpenAI’s GPT-4 language model, it analyzes incoming messages and automatically deletes emails classified as spam or marketing offers, keeping your inbox clean and focused on important communications.

    How It Works

    The workflow operates on a scheduled hourly trigger that checks your Gmail inbox for new messages. Here’s the step-by-step process:

    • Gmail trigger detects new incoming emails
    • Each message is sent to OpenAI’s GPT-4 for intelligent content analysis
    • The AI classifies messages into three categories: IMPORTANT, OFFER, or SPAM
    • A conditional node evaluates the classification result
    • Emails marked as OFFER or SPAM are automatically deleted from your inbox
    • Important messages remain untouched for your review

    Use Cases

    • Remove promotional email clutter from marketing campaigns and retailers
    • Automatically delete newsletter subscriptions you no longer want to receive
    • Filter out unwanted solicitation emails and marketing offers
    • Maintain a cleaner inbox by eliminating low-priority commercial messages
    • Focus on genuine customer communications and important messages only

    Nodes Used

    • Gmail Trigger – Detects new incoming email messages
    • OpenAI Chat Model – Analyzes and classifies email content using GPT-4
    • Conditional Node – Routes emails based on classification
    • n8n Agent – Orchestrates workflow logic and decision-making
    • Gmail Node – Performs email deletion operations
    • Sticky Note – Documentation and workflow notes

    Prerequisites

    • Active Gmail account with API access enabled
    • OpenAI API key with GPT-4 model access
    • n8n account with workflow creation capabilities
    • Gmail authentication credentials configured in n8n
    • OpenAI authentication credentials configured in n8n

    Difficulty Level

    Intermediate. This workflow requires knowledge of Gmail and OpenAI API authentication, understanding of conditional logic, and familiarity with n8n node configuration. Users should have basic experience setting up integrations and testing workflows.

    This workflow template is shared under the n8n fair-code license. Free to use and modify.