{
  "schema_version": "1.0.0",
  "id": "helpscout-low-rating-alert",
  "title": "Escalate a Help Scout \"Not Good\" rating",
  "category": "support",
  "difficulty": "beginner",
  "featured": false,
  "description": "When a customer rates a Help Scout reply Not Good, post it to the team lead in Slack and log it for the weekly review.",
  "tags": [
    "help-scout",
    "csat",
    "support",
    "slack",
    "google-sheets"
  ],
  "apps": [
    "Help Scout",
    "Filter by Zapier",
    "Slack",
    "Google Sheets"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 3 steps after the trigger",
      "Filter by Zapier"
    ]
  },
  "tasks": {
    "typical": 0,
    "max": 2
  },
  "trigger": {
    "app": "Help Scout",
    "event": "Satisfaction Rating",
    "kind": "instant",
    "title": "New satisfaction rating",
    "why": "Fires for every rating customers leave on a reply: Great, Okay, or Not Good.",
    "config": {
      "Mailbox": "YOUR_HELPSCOUT_MAILBOX"
    },
    "outputs": [
      "rating_id",
      "rating",
      "comments",
      "customer_name",
      "customer_email",
      "conversation_number",
      "conversation_subject",
      "user_name",
      "created_at"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "bad",
      "kind": "filter",
      "app": "Filter by Zapier",
      "event": "Only continue if...",
      "title": "Only Not Good ratings",
      "why": "Great and Okay ratings stop here.",
      "conditions": [
        [
          {
            "field": "{{trigger.rating}}",
            "operator": "(Text) Exactly matches",
            "value": "Not Good"
          }
        ]
      ],
      "usually": false
    },
    {
      "key": "lead",
      "kind": "action",
      "app": "Slack",
      "event": "Send Channel Message",
      "title": "Tell the team lead",
      "why": "Includes the comment and who answered, so the lead can decide on a callback right away.",
      "fields": {
        "Channel": "#support-leads",
        "Message Text": ":disappointed: Not Good rating on #{{trigger.conversation_number}} \"{{trigger.conversation_subject}}\" (answered by {{trigger.user_name}}). {{trigger.customer_name}} wrote: \"{{trigger.comments}}\"",
        "Send as a bot?": "Yes",
        "Bot Name": "Zap alerts",
        "Include a link to this Zap?": "No"
      },
      "outputs": [
        "ts",
        "permalink"
      ]
    },
    {
      "key": "log",
      "kind": "action",
      "app": "Google Sheets",
      "event": "Create Spreadsheet Row",
      "title": "Log it for the weekly review",
      "why": "The sheet is the agenda for the weekly support review.",
      "fields": {
        "Drive": "My Google Drive",
        "Spreadsheet": "Support quality",
        "Worksheet": "Low ratings",
        "Columns": {
          "rated_at": "{{trigger.created_at}}",
          "conversation": "{{trigger.conversation_number}}",
          "agent": "{{trigger.user_name}}",
          "customer": "{{trigger.customer_email}}",
          "comment": "{{trigger.comments}}",
          "follow_up": ""
        }
      },
      "outputs": [
        "id",
        "row_number"
      ]
    }
  ]
}
