{
  "kind": "alaskan.workflow",
  "version": 1,
  "slug": "review-reply-drafts",
  "name": "Review reply drafts",
  "summary": "Every Friday the reviews dog reads the week's Google reviews on its screen, drafts a reply to each (never confirming who's a patient), and posts them after you approve.",
  "for": "Clinics, restaurants and local businesses",
  "author": {
    "name": "Alaskan Labs"
  },
  "license": "MIT",
  "dog": "haines",
  "trigger": {
    "type": "schedule",
    "when": "fri 12:00"
  },
  "nodes": [
    {
      "id": "reviews",
      "type": "computer",
      "title": "Open Google Business Profile and read this week's reviews"
    },
    {
      "id": "drafts",
      "type": "think",
      "title": "Draft the replies",
      "prompt": "For each review this week, draft a reply: thank them by first name, answer the point they made, never confirm they're a patient or mention treatment, and for anything under four stars invite them to call the practice manager. Under 60 words each."
    },
    {
      "id": "approve",
      "type": "decide",
      "kind": "publish",
      "title": "Post these review replies?",
      "prompt": "{{drafts}}",
      "options": [
        {
          "key": "post",
          "label": "Post them all"
        },
        {
          "key": "five",
          "label": "Only the five-star thank-yous"
        },
        {
          "key": "skip",
          "label": "Not now",
          "effect": "decline"
        }
      ]
    },
    {
      "id": "post",
      "type": "computer",
      "title": "Post the replies on Google Business Profile"
    },
    {
      "id": "post-five",
      "type": "computer",
      "title": "Post the five-star thank-yous"
    },
    {
      "id": "log",
      "type": "write",
      "title": "Log the replies"
    }
  ],
  "edges": [
    [
      "reviews",
      "drafts"
    ],
    [
      "drafts",
      "approve"
    ],
    [
      "approve",
      "post",
      "post"
    ],
    [
      "approve",
      "post-five",
      "five"
    ],
    [
      "approve",
      "log",
      "skip"
    ],
    [
      "post",
      "log"
    ],
    [
      "post-five",
      "log"
    ]
  ]
}
