{"product_id":"openai-inbound-message-router-with-n8n-slack-google-sheets","title":"OpenAI Inbound Message Router with n8n, Slack \u0026 Google Sheets","description":"\u003ch3\u003eOpenAI-powered inbound message routing for n8n — send sales to Slack, everything else to the right place\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow receives inbound messages via a \u003cstrong\u003ewebhook\u003c\/strong\u003e, uses \u003cstrong\u003eOpenAI\u003c\/strong\u003e to classify each message as \u003cem\u003esales\u003c\/em\u003e, \u003cem\u003esupport\u003c\/em\u003e, \u003cem\u003ebilling\u003c\/em\u003e, \u003cem\u003espam\u003c\/em\u003e, or \u003cem\u003eother\u003c\/em\u003e, and then routes the result to the appropriate destination—posting \u003cstrong\u003esales enquiries to Slack\u003c\/strong\u003e and sending unrecognized items to a \u003cstrong\u003eGoogle Sheets review queue\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003e1) Ingest inbound messages\u003c\/strong\u003e through a POST \u003cstrong\u003ewebhook\u003c\/strong\u003e. Your payload must include a \u003ccode\u003emessage\u003c\/code\u003e field (or map your incoming field to it).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003e2) Classify with OpenAI\u003c\/strong\u003e and return exactly one category label: \u003ccode\u003esales\u003c\/code\u003e, \u003ccode\u003esupport\u003c\/code\u003e, \u003ccode\u003ebilling\u003c\/code\u003e, \u003ccode\u003espam\u003c\/code\u003e, or \u003ccode\u003eother\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003e3) Normalize and flag off-list outputs\u003c\/strong\u003e by lowercasing the label and keeping letters only; anything not in the expected list is sent for manual review.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003e4) Route by category\u003c\/strong\u003e: \n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003eSales\u003c\/strong\u003e messages are posted to a configured \u003cstrong\u003eSlack\u003c\/strong\u003e channel.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eSupport\u003c\/strong\u003e and \u003cstrong\u003ebilling\u003c\/strong\u003e go to placeholder branches for you to implement your own processing.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eSpam\u003c\/strong\u003e is dropped.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eUnrecognized\/off-list items\u003c\/strong\u003e are appended to a Google Sheets tab named \u003ccode\u003eneeds_review\u003c\/code\u003e.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS teams that want instant triage: sales routed to Slack while support\/billing is handled separately.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers building inbound intake systems without manual sorting.\u003c\/li\u003e\n  \u003cli\u003eOperators who need a lightweight “human review” queue for ambiguous messages via Google Sheets.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes\/tech stack:\u003c\/strong\u003e webhook, OpenAI, code, no op, slack, switch, sticky note.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI setup:\u003c\/strong\u003e add OpenAI credentials; classification works with \u003cstrong\u003egpt-4o-mini\u003c\/strong\u003e at \u003cstrong\u003etemperature 0\u003c\/strong\u003e (no reasoning model required).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSlack integration:\u003c\/strong\u003e configure credentials and select the target channel for sales notifications.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Sheets integration:\u003c\/strong\u003e add credentials, set \u003ccode\u003eYOUR_SHEET_ID\u003c\/code\u003e, and ensure a sheet\/tab named \u003ccode\u003eneeds_review\u003c\/code\u003e exists.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45862250840243,"sku":"N8N-18106","price":8.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/s1ecXsfHuQKBYjILwwAn0_SpDdWJLa.png?v=1786957980","url":"https:\/\/buyflowscripts.com\/products\/openai-inbound-message-router-with-n8n-slack-google-sheets","provider":"N8N Commerce","version":"1.0","type":"link"}