{"product_id":"n8n-gmail-ai-labeling-workflow-w-human-approval-openai","title":"n8n Gmail AI Labeling Workflow w\/ Human Approval \u0026 OpenAI","description":"\u003ch3\u003eTurn your Gmail inbox into an AI-assisted, human-approved labeling system—using n8n + OpenAI\u003c\/h3\u003e\n\u003cp\u003eThis \u003cstrong\u003en8n Gmail AI Labeling Workflow w\/ Human Approval \u0026amp; OpenAI\u003c\/strong\u003e samples emails from your inbox, uses \u003cstrong\u003eOpenAI\u003c\/strong\u003e to propose a tailored set of Gmail labels and routing rules, and then requires \u003cstrong\u003ehuman approval\u003c\/strong\u003e before any labels are created or messages are classified.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eStarts from an n8n Form\u003c\/strong\u003e where you choose a \u003cem\u003esample size\u003c\/em\u003e and a \u003cem\u003eGmail search window\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetches a sample of recent inbox emails\u003c\/strong\u003e that match your search criteria, compacts fields like \u003cstrong\u003esender, subject, snippet, and existing labels\u003c\/strong\u003e for analysis.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUses OpenAI to propose label logic\u003c\/strong\u003e: it generates a proposed set of Gmail labels (with purposes and routing rules) based on the sampled emails.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRoutes to a review form\u003c\/strong\u003e so you can approve, reject, or optionally edit the proposed label names.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates approved Gmail labels\u003c\/strong\u003e (and ensures a \u003cstrong\u003e“Needs Review”\u003c\/strong\u003e label exists), then creates an \u003cstrong\u003e“AI_Reviewed”\u003c\/strong\u003e label for deduplication.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eClassifies emails per approved labels\u003c\/strong\u003e: it retrieves inbox messages not marked \u003cstrong\u003eAI_Reviewed\u003c\/strong\u003e, asks OpenAI to classify each email using \u003cem\u003eonly\u003c\/em\u003e your approved labels, then:\n    \u003cul\u003e\n      \u003cli\u003eapplies the selected Gmail label\u003c\/li\u003e\n      \u003cli\u003eadds \u003cstrong\u003eAI_Reviewed\u003c\/strong\u003e to prevent reprocessing\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOutputs a completion summary\u003c\/strong\u003e showing how many emails were labeled.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS operators who want consistent Gmail categorization (e.g., invoices, support, sales leads) with oversight.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers testing AI-assisted workflows without letting the model create labels blindly.\u003c\/li\u003e\n  \u003cli\u003eTeams migrating toward automated triage while maintaining a human approval step.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations\/Credentials:\u003c\/strong\u003e Gmail OAuth2 (read messages, manage labels) and OpenAI (label suggestion + per-email classification).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/blocks mentioned:\u003c\/strong\u003e form, form trigger, gmail, code, if, and sticky note.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCore behavior:\u003c\/strong\u003e sample → OpenAI label proposal → human review → create labels → classify only unprocessed emails (marked with \u003cstrong\u003eAI_Reviewed\u003c\/strong\u003e).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eStart setup\u003c\/strong\u003e by enabling n8n Forms, opening the provided “Start setup form” URL, and selecting your Gmail and OpenAI credentials in the relevant Gmail and OpenAI steps.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45814417391795,"sku":"N8N-18015","price":18.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/yymIaTxZGBx6Mf-pFi0nS_iqYTNmoY.png?v=1786439165","url":"https:\/\/buyflowscripts.com\/products\/n8n-gmail-ai-labeling-workflow-w-human-approval-openai","provider":"N8N Commerce","version":"1.0","type":"link"}