{"product_id":"n8n-gmail-trigger-gemini-email-classify-auto-reply","title":"n8n Gmail Trigger: Gemini Email Classify + Auto Reply","description":"\u003ch3\u003eTurn new Gmail messages into labeled, AI-classified, ready-to-send replies—automatically\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow watches your Gmail inbox, uses Google Gemini to classify every new email (Important, Finance\/Billing, Promotion, or Customer Support), applies the matching Gmail label, and generates an AI-written auto reply directly in the original thread.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers every minute\u003c\/strong\u003e when a new email arrives in Gmail.\u003c\/li\u003e\n  \u003cli\u003eExtracts the email \u003cstrong\u003esubject and snippet\u003c\/strong\u003e and sends them to \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e for \u003cstrong\u003ecategory classification\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eApplies the corresponding \u003cstrong\u003eGmail label\u003c\/strong\u003e (Important, Finance\/Billing, Promotion, or Customer Support) to the original message based on the chosen category.\u003c\/li\u003e\n  \u003cli\u003eRoutes the email content to a \u003cstrong\u003ecategory-specific Google Gemini agent\u003c\/strong\u003e to draft a \u003cstrong\u003eprofessional reply\u003c\/strong\u003e tailored to that type of message.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReplies to the original Gmail thread\u003c\/strong\u003e with the generated response.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaaS support routing:\u003c\/strong\u003e Automatically identify Customer Support emails and respond faster without manual sorting.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBilling and finance efficiency:\u003c\/strong\u003e Classify Finance\/Billing messages and generate consistent replies for invoicing or payment questions.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePromotion handling:\u003c\/strong\u003e Tag and respond to promotional inquiries while keeping Important messages prioritized.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOps automation for inboxes:\u003c\/strong\u003e Reduce email triage time by labeling and drafting responses based on AI classification.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n Gmail Trigger\u003c\/strong\u003e to detect new messages (runs \u003cstrong\u003eevery minute\u003c\/strong\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e used twice: once for \u003cstrong\u003eclassification\u003c\/strong\u003e (subject\/snippet) and once for \u003cstrong\u003ereply generation\u003c\/strong\u003e via \u003cstrong\u003ecategory-specific agents\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail actions\u003c\/strong\u003e to \u003cstrong\u003eadd labels\u003c\/strong\u003e and \u003cstrong\u003ereply in the same thread\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eNodes include: \u003cem\u003egmail\u003c\/em\u003e, \u003cem\u003esticky note\u003c\/em\u003e, \u003cem\u003eGmail Trigger\u003c\/em\u003e, \u003cem\u003en8n-nodes-langchainagent\u003c\/em\u003e, \u003cem\u003en8n-nodes-langchaintext classifier\u003c\/em\u003e, and \u003cem\u003en8n-nodes-langchainlm chat google gemini\u003c\/em\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSetup requirements\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eConnect \u003cstrong\u003eGmail OAuth2\u003c\/strong\u003e credentials with permission to read and reply.\u003c\/li\u003e\n  \u003cli\u003eConnect \u003cstrong\u003eGoogle Gemini (PaLM) API\u003c\/strong\u003e credentials for both the classifier and reply-generation agents.\u003c\/li\u003e\n  \u003cli\u003eCreate\/confirm Gmail labels and update the \u003cstrong\u003elabel IDs\u003c\/strong\u003e in the workflow to match your account.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45931004362931,"sku":"N8N-18992","price":48.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/R7jLyAZZKYBn86FdjV523_3OlaStg7.png?v=1788253315","url":"https:\/\/buyflowscripts.com\/products\/n8n-gmail-trigger-gemini-email-classify-auto-reply","provider":"N8N Commerce","version":"1.0","type":"link"}