Templates / Handle NPS survey responses with OpenAI, Gmail, and Google Sheets

Handle NPS survey responses with OpenAI, Gmail, and Google Sheets

Ready for 3.0

by Incrementors ✓ · 8 views · created 2026-07-15 · Ticket Management, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 13 nodes and runs on a schedule (every 6 hours). Along the way it connects Google Sheets and Gmail. It also calls api.openai.com over HTTP.

How it runs

Trigger: On a schedule (every 6 hours).

  1. 2. Sheets - Read NPS Responses (Google Sheets): uses Google Sheets
  2. 3. Filter - Only Status New Rows (Filter): keeps only the items that match a condition
  3. 4. Code - Validate and Parse NPS Score (Code): runs custom JavaScript code
  4. 5. HTTP - OpenAI Generate Personalized Reply (HTTP Request): calls api.openai.com (POST)
  5. 5b. Code - Parse AI Reply and Build Email (Code): runs custom JavaScript code
  6. 6. Gmail - Send Personalized Reply to Customer (Gmail): uses Gmail
  7. 7. Switch - Route by NPS Segment (Switch): routes items into 3 branches
  8. 8. Sheets - Save Promoter Quote (Google Sheets): append
  9. 11. Sheets - Update Passive Status to Processed (Google Sheets): update
  10. 12. Gmail - Send Detractor Alert to Support Team (Gmail): uses Gmail

…plus 2 more steps. See the full node list below.

Services it uses

Google SheetsGmail

HTTP calls to: api.openai.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

Quick Overview This workflow runs every 6 hours to read new NPS survey responses from Google Sheets, generates a personalized reply with OpenAI, and sends the email via Gmail. It then routes promoters, passives, and detractors for follow-up actions and marks…

Excerpt from Incrementors's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.