{
  "schema_version": "1.0.0",
  "id": "vip-ticket-reminder",
  "title": "Flag a VIP Zendesk ticket and set a two-hour reminder",
  "category": "support",
  "difficulty": "beginner",
  "featured": false,
  "description": "When a ticket from a VIP organisation arrives, post it to the account channel and set a Slack reminder two hours out so it is not forgotten.",
  "tags": [
    "zendesk",
    "vip",
    "sla",
    "slack"
  ],
  "apps": [
    "Zendesk",
    "Filter by Zapier",
    "Slack"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 3 steps after the trigger",
      "Filter by Zapier"
    ]
  },
  "tasks": {
    "typical": 0,
    "max": 2
  },
  "trigger": {
    "app": "Zendesk",
    "event": "New Ticket",
    "kind": "polling",
    "title": "New ticket",
    "why": "Picks up every new ticket; the filter keeps only VIP ones.",
    "config": {
      "View": "All unsolved tickets"
    },
    "outputs": [
      "id",
      "subject",
      "description",
      "requester_email",
      "requester_name",
      "priority",
      "tags",
      "organization_name",
      "url",
      "created_at"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "vip",
      "kind": "filter",
      "app": "Filter by Zapier",
      "event": "Only continue if...",
      "title": "Only tickets tagged vip",
      "why": "Tag the VIP organisations in Zendesk once and their tickets inherit the tag. Everything else stops here.",
      "conditions": [
        [
          {
            "field": "{{trigger.tags}}",
            "operator": "(Text) Contains",
            "value": "vip"
          }
        ]
      ],
      "usually": false
    },
    {
      "key": "post",
      "kind": "action",
      "app": "Slack",
      "event": "Send Channel Message",
      "title": "Post it to the account channel",
      "why": "The account manager and support lead both watch this channel.",
      "fields": {
        "Channel": "#vip-accounts",
        "Message Text": ":star: VIP ticket from {{trigger.organization_name}}: \"{{trigger.subject}}\" by {{trigger.requester_name}}. Reply due within 2 hours. {{trigger.url}}",
        "Send as a bot?": "Yes",
        "Bot Name": "Zap alerts",
        "Include a link to this Zap?": "No"
      },
      "outputs": [
        "ts",
        "permalink"
      ]
    },
    {
      "key": "remind",
      "kind": "action",
      "app": "Slack",
      "event": "Add Reminder",
      "title": "Set a two-hour reminder",
      "why": "A Slack reminder fires even if the channel message scrolls away.",
      "fields": {
        "Reminder Text": "Check VIP ticket {{trigger.id}} ({{trigger.organization_name}}) has a reply: {{trigger.url}}",
        "When": "in 2 hours",
        "Reminder For": "YOUR_SUPPORT_LEAD"
      },
      "outputs": [
        "id"
      ]
    }
  ]
}
