{"product_id":"gmail-reply-classifier-n8n-gemini-ai-slack-routing","title":"Gmail Reply Classifier n8n: Gemini AI + Slack Routing","description":"\u003ch3\u003eAutomatically classify Gmail replies with Gemini and route next steps to Slack\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow watches your \u003cb\u003eGmail\u003c\/b\u003e inbox for labeled outreach replies, uses \u003cb\u003eGoogle Gemini (PaLM)\u003c\/b\u003e to classify each message and draft a suggested response, then logs everything to \u003cb\u003eGoogle Sheets\u003c\/b\u003e and alerts your team in \u003cb\u003eSlack\u003c\/b\u003e with a direct link to the saved draft.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003ePolls Gmail every minute\u003c\/b\u003e when a new message arrives with your specified label (so replies can be separated from everything else).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eFetches full email content\u003c\/b\u003e and extracts the sender and subject.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eCleans the reply body\u003c\/b\u003e by removing quoted text, so Gemini classifies the actual new message.\u003c\/li\u003e\n  \u003cli\u003eSends the cleaned reply to \u003cb\u003eGoogle Gemini\u003c\/b\u003e to classify it into one of: \u003cb\u003eInterested\u003c\/b\u003e, \u003cb\u003eQuestion\u003c\/b\u003e, \u003cb\u003eObjection\u003c\/b\u003e, \u003cb\u003eNot Interested\u003c\/b\u003e, or \u003cb\u003eAuto-Reply\u003c\/b\u003e—and generates a suggested reply.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eParses Gemini JSON output\u003c\/b\u003e; if parsing fails, it falls back to \u003cb\u003eNeeds Manual Review\u003c\/b\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eAppends results to Google Sheets\u003c\/b\u003e, including email details, classification, confidence, reasoning, and the suggested reply.\u003c\/li\u003e\n  \u003cli\u003eIf the classification is \u003cb\u003eInterested\u003c\/b\u003e or \u003cb\u003eQuestion\u003c\/b\u003e, it \u003cb\u003ecreates a Gmail draft\u003c\/b\u003e and posts a \u003cb\u003eSlack alert\u003c\/b\u003e linking directly to the draft.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS teams qualifying outbound leads by quickly identifying replies worth responding to.\u003c\/li\u003e\n  \u003cli\u003eSupport or sales ops tracking outreach response sentiment in \u003cb\u003eGoogle Sheets\u003c\/b\u003e.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers routing high-priority conversations to Slack without manual sorting.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003en8n Gmail Trigger\u003c\/b\u003e (checks every minute for new labeled replies).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eGmail\u003c\/b\u003e node for fetching message content and saving draft replies.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eGoogle Gemini (PaLM)\u003c\/b\u003e for classification + suggested reply generation.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eGoogle Sheets\u003c\/b\u003e logging for classification, confidence, reasoning, and draft suggestion.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eSlack\u003c\/b\u003e notification with a link to the saved Gmail draft.\u003c\/li\u003e\n  \u003cli\u003eUses nodes including \u003cb\u003eif\u003c\/b\u003e and \u003cb\u003ecode\u003c\/b\u003e to parse Gemini output and handle the \u003cb\u003eNeeds Manual Review\u003c\/b\u003e fallback.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cb\u003eSetup requires\u003c\/b\u003e Gmail OAuth2, a Gmail label\/filter for inbound replies (e.g., excluding \u003ci\u003efrom:me\u003c\/i\u003e), a Gemini API credential, Google Sheets OAuth2 with mapped columns, and Slack OAuth2.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45732223516851,"sku":"N8N-17502","price":9.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/UbtwJ5PdoiHwaC-Grp7wZ_ue4kA2eu.png?v=1785143105","url":"https:\/\/buyflowscripts.com\/products\/gmail-reply-classifier-n8n-gemini-ai-slack-routing","provider":"N8N Commerce","version":"1.0","type":"link"}