Automate customer feedback collection and sentiment analysis with n8n! This project captures feedback via a form, analyzes sentiment using Google Gemini AI, logs entries in Google Sheets, and instantly alerts Customer Success when negative feedback is detected.
- Overview
- How It Works
- Benefits
- Requirements
- Setup Instructions
- Customization
- Troubleshooting
- Contributing
- License
- Contact
Customer Feedback Sentiment Automation is an n8n workflow designed to streamline feedback processing. It:
- Collects customer feedback through an n8n form
- Analyzes sentiment using Google Gemini AI
- Appends feedback to Google Sheets for centralized tracking
- Sends an alert email to Customer Success for negative feedback
-
Trigger on Form Submission
- The
Form Triggernode capturesName,Email Address, andYour Feedback.
- The
-
Analyze Sentiment via Gemini AI
- The
Sentiment Analysisnode uses theGoogle Gemini Chat Modelas its language model. - The system prompt instructs the model to classify feedback sentiment and return structured JSON.
- The
-
Append Feedback to Google Sheets (Positive/Neutral)
- For positive or neutral sentiment, the workflow appends a row to Google Sheets and marks
AlertasNo.
- For positive or neutral sentiment, the workflow appends a row to Google Sheets and marks
-
Append Feedback and Send Alert Email (Negative)
- For negative sentiment, the workflow appends a row to Google Sheets and sets
AlerttoYes, then sends a detailed alert email via Gmail to the Customer Success team.
- For negative sentiment, the workflow appends a row to Google Sheets and sets
- Automates feedback & sentiment analysis
- Enables quick negative feedback response
- Centralizes data in Google Sheets
- Seamless email alerts integration
- n8n installation or cloud account
- Google account with:
- Access to Google Gemini AI (API credentials)
- Access to Google Sheets (for logging feedback)
- Access to Gmail (for sending alert emails)
- Import the attached
Customer Feedback Sentiment Automation.jsoninto your n8n instance (Desktop or Cloud).
- Add your Google/Gemini credentials in n8n.
- In
Google Gemini Chat Model, select your credential (e.g., "Google Gemini(PaLM) Api account").
- Add and select your Google Sheets OAuth credential in both Sheets nodes.
- Set the target Spreadsheet and Sheet (the JSON references a sheet named
Customer Feedback,Sheet1).
- Add your Gmail OAuth2 credential and select it in the Gmail node
Send alert message to Customer Success. - Confirm the recipient address for alerts (default in the JSON is a sample email).
- In
Sentiment Analysis, you can adjust the categories (e.g., Positive, Neutral, Negative) and prompt style. - Ensure output remains structured JSON for downstream nodes to parse reliably.
- Open the workflow and execute the
Form Triggertest URL to submit sample feedback. - Verify rows appear in Google Sheets with correct
SentimentandAlertvalues. - Submit a negative feedback sample to confirm an alert email is sent.
Your sheet should resemble the example below.
You can find an example spreadsheet in the data/ folder: Customer Feedback.xlsx.
Recommended columns:
- Timestamp: When the feedback was received
- Customer Name: Name from the form
- Email Address: Email from the form
- Feedback Text: The full customer message
- Sentiment: Result from Gemini AI (e.g., Positive/Neutral/Negative)
- Alert:
Yesfor negative feedback,Nootherwise
You can tailor the Gmail alert content with n8n expressions using the form payload. Example snippets used in the JSON:
Subject: Urgent: Negative Customer Feedback Received — Immediate Attention Required
Body (excerpt):
Name: {{ $('On form submission').item.json.Name }}
Email: {{ $('On form submission').item.json['Email Address'] }}
Submitted On: {{ $now.format('yyyy-MM-dd HH:mm:ss') }}
Feedback:
{{ $('On form submission').item.json['Your Feedback'] }}
- Gemini node errors: Verify API credentials and model access; check quotas.
- Google Sheets append fails: Confirm OAuth2 is connected and the sheet ID/name are correct.
- Gmail send errors: Re-authenticate Gmail and verify sending permissions.
- Form not triggering: Use the test URL provided by the
Form Triggernode and keep the workflow active during testing.
Contributions and suggestions are welcome! Fork the repo, submit issues, or open pull requests for workflow improvements.
This project is licensed under the MIT License.
- Email: nebeyoumusie@gmail.com
- LinkedIn: LinkedIn
- X(Twitter): X
- Upwork: Upwork
- My Agency: Fuzion Tech Website or Fuzion Tech on Upwork
Skills & Technologies:
n8n, Automation, Sentiment Analysis, Customer Feedback Documentation, Gmail, Google Sheets Automation
Enjoy automated customer feedback processing and rapid sentiment-driven responses!
For any issues, please contact the project maintainer or open an issue on your workflow repository.




