Automate Customer Feedback Sentiment Analysis with n8n & OpenAI

Discover how this n8n workflow captures customer feedback via form, analyzes sentiment using OpenAI, and logs results in Google Sheets, saving hours of manual data handling. Automate accurate sentiment classification to improve feedback response times and decision making.
stickyNote
googleSheets
openAi
+2
Workflow Identifier: 1472
NODES in Use: stickyNote, googleSheets, openAi, merge, formTrigger
Automate feedback with n8n and OpenAI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow collects customer feedback from an online form.
It then uses OpenAI to check if the feedback is positive, negative, or neutral.
After that, it saves the feedback and sentiment result in Google Sheets automatically.
This helps teams see and sort feedback faster and easier without doing it by hand.

It stops slow responses to customer issues.
The workflow links feedback type with sentiment for clearer insight.


Who Should Use This Workflow

Anyone collecting a lot of feedback and needing quick reviews can use this.
Support teams, customer experience staff, and managers will save time and avoid mistakes.

Users with basic n8n knowledge and access to Google Sheets and OpenAI can set it up easily.


Tools and Services Used

  • n8n Platform: Runs the automation workflow.
  • OpenAI API: Analyzes feedback text for sentiment.
  • Google Sheets: Stores and tracks all feedback data.
  • Online Form Trigger: Starts workflow when customers send feedback.

Beginner Step-by-Step: How to Use This Workflow in Production

Step 1: Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. In the n8n editor, click on “Import from File” and select the downloaded file.

Step 2: Add Credentials

  1. Open the Credentials section and add your OpenAI API Key and Organization ID.
  2. Set up Google Sheets OAuth2 credentials for authorized access.

Step 3: Update IDs and Settings

  1. Enter your Google Sheets document ID and worksheet name in the Google Sheets node.
  2. Check all node settings for correct form URLs and field names.

Step 4: Test the Workflow

  1. Submit a test response via the form URL.
  2. Watch n8n execution logs for errors and check the Google Sheet for the entry.

Step 5: Activate the Workflow

  1. Turn on the workflow by toggling active status in n8n.
  2. Monitor execution initially to confirm everything works.

If self hosting n8n, consider resources like self-host n8n for stable uptime.


Workflow Inputs, Processing Steps, and Output

Inputs

  • Customer feedback submitted via an online form.
  • Form fields including Name, Feedback Category, Feedback Text, and Contact info.

Processing Steps

  • The Form Trigger node captures the form data live.
  • The OpenAI node analyzes the feedback text to classify sentiment.
  • The Merge node combines sentiment data with original feedback input.
  • The Google Sheets node appends the data to the specified spreadsheet.

Output

  • A single Google Sheets table row containing name, category, feedback text, sentiment, contact, and timestamp.
  • Clear labels to help teams identify urgent or critical feedback by sentiment and category.

Common Issues and How to Fix Them

OpenAI API Errors or Blank Results

Usually caused by wrong API Key or bad prompt syntax.
Fix by rechecking the API credentials and using exact curly braces in the prompt:

=Classify the sentiment in the following customer feedback:  {{ $json['Your feedback'] }}

Test with a simple static text if needed.

Google Sheets Append Failures

Often caused by wrong sheet ID or lack of OAuth permission.
Fix by confirming the sheet ID in Google Sheets node and reauthorizing OAuth.

Empty Merge Data

Ensure correct connection order in the Merge node: OpenAI node as first input, Form Trigger as second.
Wrong order leads to missing data.


Customization Ideas

  • Add Urgency Detection: Change OpenAI prompt to also ask about urgency like:
=Classify the sentiment and urgency of the following customer feedback: {{ $json['Your feedback'] }}
  • Helps mark feedback needing fast responses.
  • Feedback Routing: Use a Filter or IF node after merge to send Product, Service, or Other categories to different sheets.
  • Slack Alerts: Add a Slack node to notify the team on negative feedback quickly.

Summary of Benefits and Results

✓ Saves several hours weekly by automating feedback handling.
✓ Reduces human error in sentiment tagging.
✓ Speeds up identifying feedback type and urgency.
→ Customers get faster, clearer responses.
→ Teams work smarter with accurate data.


Automate feedback with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Check API Key and organization ID. Verify the prompt uses correct {{ }} syntax. Test with static text input.
Incorrect Google Sheets document ID or missing Google OAuth permission usually cause failures. Confirm IDs and reauthorize credentials.
Yes, use a Filter or IF node after the Merge node to route feedback by category to different sheets or processes.
Yes, each call to classify sentiment consumes OpenAI API credits according to the user’s plan.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.