{"product_id":"n8n-sentiment-analysis-workflow-openai-sheets-slack-alerts","title":"n8n Sentiment Analysis Workflow: OpenAI, Sheets \u0026 Slack Alerts","description":"\u003ch3\u003eAutomatically turn customer feedback into sentiment insights—with Slack alerts and Google Sheets logging\u003c\/h3\u003e\n\u003cp\u003eThis \u003cstrong\u003en8n Sentiment Analysis Workflow\u003c\/strong\u003e accepts customer feedback via a \u003cstrong\u003ewebhook\u003c\/strong\u003e, uses \u003cstrong\u003eOpenAI (gpt-4o-mini)\u003c\/strong\u003e to analyze sentiment and extract topics, writes every result to \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e, and posts a \u003cstrong\u003eSlack\u003c\/strong\u003e alert whenever the feedback is negative.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives feedback via webhook:\u003c\/strong\u003e Handles an incoming \u003cstrong\u003ePOST webhook\u003c\/strong\u003e request containing JSON fields such as \u003cem\u003ecustomer\u003c\/em\u003e and \u003cem\u003efeedback text\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns OpenAI sentiment analysis:\u003c\/strong\u003e Extracts the feedback text and customer name, then sends the text to \u003cstrong\u003eOpenAI Chat Completions (gpt-4o-mini)\u003c\/strong\u003e to return structured \u003cstrong\u003esentiment analysis as JSON\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses and formats results:\u003c\/strong\u003e Processes the returned JSON and formats fields for storage, including \u003cstrong\u003ejoining topics into a comma-separated string\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs to Google Sheets:\u003c\/strong\u003e Appends each analyzed entry to a specified worksheet (for example, \u003cem\u003eSheet1\u003c\/em\u003e) with columns such as \u003cem\u003ecustomer, text, sentiment, score, topics, suggested_action\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAlerts on negative sentiment:\u003c\/strong\u003e Checks whether sentiment is negative and, if so, posts a formatted message to a \u003cstrong\u003eSlack channel\u003c\/strong\u003e (for example, \u003cstrong\u003e#customer-alerts\u003c\/strong\u003e).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eMonitor customer feedback from a form\/survey\/app and instantly flag unhappy users.\u003c\/li\u003e\n  \u003cli\u003eBuild a lightweight feedback triage pipeline for SaaS teams using \u003cstrong\u003en8n automation\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eMaintain an always-updated historical dataset in \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e for reporting and trend analysis.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI\u003c\/strong\u003e via an n8n OpenAI HTTP request step using \u003cstrong\u003egpt-4o-mini\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e OAuth2 integration to append analyzed feedback rows.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSlack\u003c\/strong\u003e credential + channel configuration for negative-feedback alerts.\u003c\/li\u003e\n  \u003cli\u003eWorkflow logic uses nodes including: \u003cstrong\u003ewebhook\u003c\/strong\u003e, \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003eslack\u003c\/strong\u003e, plus a \u003cstrong\u003esticky note\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSetup highlights\u003c\/h3\u003e\n\u003cp\u003eAdd your \u003cstrong\u003eOpenAI\u003c\/strong\u003e, \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e, and \u003cstrong\u003eSlack\u003c\/strong\u003e credentials, align your target sheet columns (customer, text, sentiment, score, topics, suggested_action), then point your form\/survey\/app to the workflow’s production \u003cstrong\u003ewebhook URL\u003c\/strong\u003e with \u003cem\u003ecustomer\u003c\/em\u003e and \u003cem\u003efeedback\u003c\/em\u003e fields.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46244549656755,"sku":"N8N-21128","price":27.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/NtBzC-H23KgZuzaEImcau_BgzT38Bn.png?v=1792401488","url":"https:\/\/buyflowscripts.com\/products\/n8n-sentiment-analysis-workflow-openai-sheets-slack-alerts","provider":"N8N Commerce","version":"1.0","type":"link"}