{
  "schema_version": "1.0.0",
  "id": "shopify-vip-order-tag",
  "title": "Tag big Shopify orders as VIP and tell the owner",
  "category": "ecommerce",
  "difficulty": "beginner",
  "featured": false,
  "description": "Tag any paid Shopify order of 300 or more as VIP so it gets gift wrap and a handwritten card, and DM the owner the details.",
  "tags": [
    "shopify",
    "vip",
    "customer-experience",
    "slack"
  ],
  "apps": [
    "Shopify",
    "Filter by Zapier",
    "Slack"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 3 steps after the trigger",
      "Filter by Zapier",
      "premium app: Shopify"
    ]
  },
  "tasks": {
    "typical": 0,
    "max": 2
  },
  "trigger": {
    "app": "Shopify",
    "event": "New Paid Order",
    "kind": "instant",
    "title": "New paid order",
    "why": "Fires once per paid order.",
    "config": {
      "Store": "YOUR_STORE"
    },
    "outputs": [
      "id",
      "order_number",
      "email",
      "customer_first_name",
      "customer_name",
      "total_price",
      "subtotal_price",
      "currency",
      "shipping_country_code",
      "billing_country_code",
      "line_item_count",
      "line_item_titles",
      "line_item_quantities",
      "line_item_prices",
      "line_item_skus",
      "discount_codes",
      "customer_orders_count",
      "created_at",
      "admin_url"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "big",
      "kind": "filter",
      "app": "Filter by Zapier",
      "event": "Only continue if...",
      "title": "Only orders of 300 or more",
      "why": "Smaller orders stop here.",
      "conditions": [
        [
          {
            "field": "{{trigger.total_price}}",
            "operator": "(Number) Greater than",
            "value": "299.99"
          }
        ]
      ],
      "usually": false
    },
    {
      "key": "tag",
      "kind": "action",
      "app": "Shopify",
      "event": "Add Tag to Order",
      "title": "Tag the order VIP",
      "why": "The tag shows in the Shopify order list and can drive a packing-slip template.",
      "fields": {
        "Order": "{{trigger.id}}",
        "Tags": "VIP, handwritten-card"
      },
      "outputs": [
        "id",
        "tags"
      ]
    },
    {
      "key": "dm",
      "kind": "action",
      "app": "Slack",
      "event": "Send Direct Message",
      "title": "DM the owner",
      "why": "The owner writes the cards, so the DM carries the name and what they bought.",
      "fields": {
        "To Username": "YOUR_SLACK_USERNAME",
        "Message Text": "VIP order #{{trigger.order_number}}: {{trigger.customer_name}} spent {{trigger.total_price}} {{trigger.currency}} on {{trigger.line_item_titles}}. Card please! {{trigger.admin_url}}",
        "Send as a bot?": "Yes",
        "Bot Name": "Zap alerts"
      },
      "outputs": [
        "ts"
      ]
    }
  ]
}
