# Analyze customer feedback sentiment with OpenAI, Google Sheets, and Slack

> Quick overview This workflow receives customer feedback via a webhook, uses OpenAI to classify sentiment and extract topics, logs every result to Google Sheets, and posts an alert to Slack when feedback is negative. How it works 1. Receives a POST webhook request containing JSON feedback fields (for example, customer and feedback text). 2. Extracts the feedback text and customer name and sends the text to OpenAI Chat Completions (gpt-4o-mini) to return structured sentiment analysis as JSON. 3. Parses the OpenAI JSON response and formats the output fields (including joining topics into a comma-separated string). 4. Appends each analyzed feedback entry to a Google Sheets worksheet. 5. Checks whether the sentiment is negative and, if so, posts a formatted alert message to a Slack channel. Setup 1. Add an OpenAI API credential in n8n and select it in the OpenAI HTTP request step. 2. Add a Google Sheets OAuth2 credential, then replace the Google Sheet URL/ID and ensure the target sheet (for

- **Domain**: `n8n-workflow-21128.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/21128
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21128.n8n.io
- Documentation: https://n8n.io/workflows/21128
