Everything you need to build an AI-powered customer feedback system — from survey design to automated analysis to weekly leadership reports. Copy, paste, adapt.
Survey Design Prompt
Use this prompt to generate professionally designed NPS surveys in minutes. Review and adjust for your specific context before deploying.
Design an NPS survey for [company type] with the following requirements:
1. Core NPS question (standard wording for benchmarking)
2. Follow-up question asking WHY they gave that score (open-ended)
3. 2-3 specific questions about key experience areas:
- [Area 1: e.g., product quality]
- [Area 2: e.g., customer support]
- [Area 3: e.g., value for price]
4. One question about likelihood to continue using/purchasing
5. Optional demographic question for segmentation
Guidelines:
- Keep total survey under 3 minutes to complete
- Use consistent scale formats
- Avoid leading questions
- Include "prefer not to answer" options where appropriate
Output: Ready-to-implement survey questions with response formats.
Post-Purchase Survey Workflow
This n8n workflow triggers automatically when an order is fulfilled. It handles timing, deduplication, reminders, and tracking — no manual intervention needed.
TRIGGER: Webhook from e-commerce platform (order fulfilled)
NODES:
1. [Wait] Delay 7 days
2. [Filter] Check if customer hasn't received survey in 90 days
3. [Google Forms] Generate unique survey link with customer ID
4. [Email] Send personalized survey invitation
5. [Wait] Delay 3 days
6. [Filter] Check if survey completed
7. [Email] Send reminder if not completed
8. [Supabase] Log survey send for tracking
Response Processing Workflow + Prompt
When surveys complete, responses flow through AI analysis automatically. Urgent detractor feedback triggers immediate alerts.
TRIGGER: New Google Forms response
NODES:
1. [Google Forms] Get response data
2. [Code] Calculate NPS category (promoter/passive/detractor)
3. [AI Node] Analyze open-ended response:
PROMPT:
Analyze this customer feedback response:
NPS Score: {{ score }}
Category: {{ category }}
Open response: {{ response }}
Extract:
1. Primary sentiment (positive/negative/mixed)
2. Key themes mentioned (list up to 3)
3. Specific product/service mentioned
4. Urgency level (immediate attention/routine/informational)
5. Suggested category: product, support, pricing, usability, other
6. One-sentence summary
Return as JSON.
4. [Supabase] Store processed response
5. [Filter] If detractor AND urgent → alert flow
6. [Slack] Alert customer success team for urgent issues
Weekly Synthesis Workflow + Prompt
Leadership receives synthesized intelligence every Monday morning. No manual compilation. No analyst hours spent on routine aggregation.
TRIGGER: Schedule - Every Monday 6 AM
NODES:
1. [Supabase] Query all responses from past 7 days
2. [Code] Calculate overall NPS and segment breakdown
3. [AI Node] Generate weekly synthesis:
PROMPT:
Analyze this week's customer feedback data:
Total responses: {{ count }}
NPS: {{ nps }}
Promoters: {{ promoter_count }} ({{ promoter_pct }}%)
Passives: {{ passive_count }} ({{ passive_pct }}%)
Detractors: {{ detractor_count }} ({{ detractor_pct }}%)
Individual responses:
{{ response_summaries }}
Generate a weekly feedback report including:
1. EXECUTIVE SUMMARY (3 sentences)
2. NPS TREND (compared to previous weeks if available)
3. TOP THEMES (most frequently mentioned, with counts)
4. WINS (what customers praised)
5. CONCERNS (what customers criticized)
6. URGENT ITEMS (requiring immediate attention)
7. RECOMMENDED ACTIONS (specific, actionable)
Format for executive readability - busy leaders have
2 minutes, not 20.
4. [Email] Send report to leadership distribution list
5. [Supabase] Archive report for trend analysis
Competitive Intelligence Workflow
Run NPS on your competitors' products. When deals are lost, this workflow automatically gathers intelligence on why — without being pushy about it.
TRIGGER: CRM update - Deal marked "Closed Lost"
NODES:
1. [Wait] Delay 14 days (let emotions settle)
2. [AI Node] Generate personalized outreach:
PROMPT:
Write a brief, non-defensive email to a prospect who chose
[competitor] over us. The goal is learning, not selling. Ask:
- What ultimately drove their decision?
- What did the competitor do better?
- What would have changed their mind?
Tone: Genuinely curious, appreciative of their time, no hard
feelings. This is research, not sales.
3. [Email] Send outreach
4. [Supabase] Log for tracking
5. [Wait for reply workflow] Process responses when received
Supabase Database Schema
The database structure that powers the entire feedback system. Enables queries like "Show me all detractor feedback from the past month mentioning 'pricing'" or "Track NPS trend by customer segment over time."
CREATE TABLE feedback_responses (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
created_at TIMESTAMP DEFAULT now(),
survey_type TEXT NOT NULL,
survey_id TEXT,
customer_id TEXT,
customer_segment TEXT,
nps_score INTEGER CHECK (nps_score >= 0 AND nps_score <= 10),
nps_category TEXT,
open_response TEXT,
ai_sentiment TEXT,
ai_themes TEXT[],
ai_urgency TEXT,
ai_category TEXT,
ai_summary TEXT,
processed BOOLEAN DEFAULT false,
actioned BOOLEAN DEFAULT false,
action_taken TEXT,
routed_to TEXT[],
reviewed_by TEXT,
reviewed_at TIMESTAMP
);
CREATE INDEX idx_feedback_nps ON feedback_responses(nps_category);
CREATE INDEX idx_feedback_created ON feedback_responses(created_at DESC);
CREATE INDEX idx_feedback_themes ON feedback_responses USING GIN(ai_themes);
CREATE INDEX idx_feedback_urgency ON feedback_responses(ai_urgency);