{
  "schema_version": "1.0.0",
  "id": "nps-weekly-themes",
  "title": "Summarise a week of NPS answers into themes",
  "category": "reporting",
  "difficulty": "advanced",
  "featured": false,
  "description": "Collect each NPS form answer into a weekly digest, then have AI group the comments into themes and post the summary to Slack.",
  "tags": [
    "nps",
    "feedback",
    "digest",
    "ai-summary",
    "google-forms"
  ],
  "apps": [
    "Google Forms",
    "Digest by Zapier",
    "Filter by Zapier",
    "AI by Zapier",
    "Slack"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 4 steps after the trigger",
      "Filter by Zapier",
      "AI by Zapier"
    ]
  },
  "tasks": {
    "typical": 0,
    "max": 2
  },
  "trigger": {
    "app": "Google Forms",
    "event": "New Form Response",
    "kind": "polling",
    "title": "New NPS answer",
    "why": "Fires for each submitted survey answer.",
    "config": {
      "Form": "Customer NPS survey"
    },
    "outputs": [
      "response_id",
      "timestamp",
      "score",
      "reason",
      "email",
      "plan"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "collect",
      "kind": "digest",
      "app": "Digest by Zapier",
      "event": "Append Entry and Schedule Digest",
      "title": "Add the answer to this week's batch",
      "why": "Score, plan, and comment per line. Released every Monday at 9am.",
      "fields": {
        "Title": "NPS answers",
        "Entry": "{{trigger.score}} | {{trigger.plan}} | {{trigger.reason}}",
        "Frequency": "Weekly",
        "Day of the Week": "Monday",
        "Time of Day": "9am",
        "Timezone": "YOUR_TIMEZONE"
      },
      "outputs": [
        "entries",
        "entry_count",
        "is_released"
      ]
    },
    {
      "key": "released",
      "kind": "filter",
      "app": "Filter by Zapier",
      "event": "Only continue if...",
      "title": "Only when the batch is released",
      "why": "Zapier holds the run at the digest step until the digest is released, and the released run carries every collected entry. The filter states that rule in the Zap itself, so a copy edited to use \"Release Existing Digest\" elsewhere still only sends once.",
      "conditions": [
        [
          {
            "field": "{{collect.is_released}}",
            "operator": "(Boolean) Is true"
          }
        ]
      ],
      "usually": false
    },
    {
      "key": "themes",
      "kind": "ai",
      "app": "AI by Zapier",
      "event": "Analyze and Return Data",
      "title": "Group the comments into themes",
      "why": "Asks for counts per theme and a quote per theme, so the summary stays tied to what customers wrote.",
      "fields": {
        "Model": "Default (fast)",
        "Instructions": "Each line is one NPS answer: score (0-10) | plan | comment. Return: promoters, passives, detractors (counts: 9-10, 7-8, 0-6), nps (promoters percent minus detractors percent, whole number), and themes (up to five lines, each \"Theme (count): one short quote\", most frequent first, detractor themes before praise). Use only these answers.",
        "Input data": "{{collect.entries}}",
        "Output fields": "promoters, passives, detractors, nps, themes"
      },
      "outputs": [
        "promoters",
        "passives",
        "detractors",
        "nps",
        "themes"
      ]
    },
    {
      "key": "post",
      "kind": "action",
      "app": "Slack",
      "event": "Send Channel Message",
      "title": "Post the weekly summary",
      "why": "Score and themes in one message for product and CS.",
      "fields": {
        "Channel": "#customer-feedback",
        "Message Text": "*NPS last week: {{themes.nps}}* ({{collect.entry_count}} answers · {{themes.promoters}} promoters, {{themes.passives}} passives, {{themes.detractors}} detractors)\n{{themes.themes}}",
        "Send as a bot?": "Yes",
        "Bot Name": "Zap alerts",
        "Include a link to this Zap?": "No"
      },
      "outputs": [
        "ts",
        "permalink"
      ]
    }
  ]
}
