{"product_id":"gmail-email-labeling-triage-with-deepseek-openai-n8n-workflow","title":"Gmail Email Labeling \u0026 Triage with DeepSeek\/OpenAI (n8n Workflow)","description":"\u003ch3\u003eAuto-triage your Gmail with AI: label every incoming email in minutes (no replies)\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow monitors your Gmail inbox, uses DeepSeek (or an OpenAI-compatible API) to classify each new message, and automatically applies the right Gmail label—keeping your inbox clean and your support pipeline organized.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003eTriggers every 5 minutes\u003c\/b\u003e when new messages arrive in Gmail.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eFilters noise and auto-messages\u003c\/b\u003e by checking message headers, sender, and subject—skipping auto-replies, mailing-list traffic, and common \u003ci\u003enoreply\/system\u003c\/i\u003e senders.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eClassifies email intent with DeepSeek\/OpenAI\u003c\/b\u003e by sending the email’s subject and body to the chat completions API.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eParses the model’s JSON response\u003c\/b\u003e and maps the returned intent to one of four categories.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eApplies Gmail labels\u003c\/b\u003e to the original email for immediate triage (e.g., Order status, Product question, Refund\/complaint, or Other).\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cb\u003eNo automatic replies are sent\u003c\/b\u003e—the workflow is designed for labeling and routing your attention, not for messaging customers.\u003c\/p\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS teams who want instant sorting of incoming support emails into \u003cb\u003eAI\/Order\u003c\/b\u003e, \u003cb\u003eAI\/Product\u003c\/b\u003e, \u003cb\u003eAI\/Refund\u003c\/b\u003e, and \u003cb\u003eAI\/Other\u003c\/b\u003e.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers building inbox workflows that reduce manual inbox review.\u003c\/li\u003e\n  \u003cli\u003eOperators who want to separate \u003cb\u003eorder status\u003c\/b\u003e requests from \u003cb\u003eproduct questions\u003c\/b\u003e and \u003cb\u003erefund\/complaints\u003c\/b\u003e for faster handling.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003eGmail Trigger\u003c\/b\u003e to detect new messages (runs every 5 minutes).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eHTTP Request\u003c\/b\u003e with provider authentication (e.g., \u003ccode\u003eAuthorization: Bearer \u0026lt;API_KEY\u0026gt;\u003c\/code\u003e) for DeepSeek or OpenAI-compatible chat completions.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eif \/ code\u003c\/b\u003e steps to skip unwanted messages and parse JSON output.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eGmail label action\u003c\/b\u003e to apply the mapped label ID to each email.\u003c\/li\u003e\n  \u003cli\u003eOptional provider swap: update API base URL and model name for OpenAI vs DeepSeek.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSetup requirements\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eConnect a Gmail OAuth2 credential for the mailbox you want to monitor.\u003c\/li\u003e\n  \u003cli\u003eCreate four Gmail labels and update the intent-to-label mapping with their label IDs (after importing the workflow if needed).\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45726239424691,"sku":"N8N-17466","price":13.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/c87sAuWaQ6KZBil8xnofe_jIFXvcap.png?v=1785056992","url":"https:\/\/buyflowscripts.com\/products\/gmail-email-labeling-triage-with-deepseek-openai-n8n-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}