πŸ“Š Analyze customer survey feedback with AI, Google Sheets & Slack reports

⚑ 141 views Β· πŸ“Š Market Research & Insights

Description

Here’s a clean, English-only template description you can paste into the n8n β€œDescription” field.


Overview

This workflow analyzes customer survey responses, groups them by sentiment (positive / neutral / negative), generates themes and insights with an AI agent, and delivers a consolidated report to your destinations (Google Sheets, Slack). It runs on a daily schedule and uses batch-based AI analysis for accuracy.

Flow: Schedule β†’ Fetch from Sheets β†’ Group & batch (Code) β†’ AI analysis β†’ Aggregate β†’ Save/Notify (Sheets, Slack)

What You’ll Need

Setup

  1. Data source (Google Sheets)

    • In Get Survey Responses, replace YOUR_SHEET_ID and YOUR_SHEET_NAME with your sheet details.
    • Ensure the sheet includes columns like: ζΊ€θΆ³εΊ¦ (Rating), θ‡ͺη”±θ¨˜θΏ°γ‚³γƒ‘γƒ³γƒˆ (Comment), ε›žη­”ζ—₯ζ™‚ (Timestamp).
  2. AI model

    • Add credentials to your preferred LLM node (OpenAI/OpenRouter).
    • Keep the prompt’s JSON-only requirement so the structured parser can consume it reliably.
  3. Destinations

    • Save to Sheet: set your output documentId / sheetName.
    • Slack: set the target channelId on the Slack node.

How It Works

  1. Daily Schedule Trigger β€” starts the workflow at your chosen time.
  2. Get Survey Responses (Sheets) β€” reads survey data.
  3. Group & Prepare Data (Code) β€” classifies by rating (>=4: positive, =3: neutral, <3: negative) and creates batches (max 50 per batch).
  4. Loop Over Batches β€” feeds each sentiment batch to the AI separately for cleaner signals.
  5. Analyze Survey Batch (AI Agent) β€” returns structured JSON: themes, insights, recommendations.
  6. Add Metadata (Code) β€” attaches original sentiment and item counts to each AI result.
  7. Aggregate Results (Code) β€” merges all batches; outputs Top Themes, Key Insights, Priority Recommendations, and an Executive Summary.
  8. Save to Sheet / Slack β€” appends the summary to a sheet and posts highlights to Slack.

Data Assumptions (Columns)

Your source should include at least:

Outputs

Customize

Before You Run (Checklist)

Troubleshooting

Security & Template Notes

πŸ”— Nodes Used

Google Sheets, Slack, Schedule Trigger, AI Agent, Structured Output Parser, OpenRouter Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup