{
  "schema_version": "1.0.0",
  "id": "shopify-abandoned-checkout-email",
  "title": "Follow up an abandoned Shopify checkout after an hour",
  "category": "ecommerce",
  "difficulty": "beginner",
  "featured": false,
  "description": "Wait an hour after a checkout is abandoned, then send one personal email with the checkout link, only for carts worth chasing.",
  "tags": [
    "shopify",
    "abandoned-cart",
    "gmail",
    "recovery"
  ],
  "apps": [
    "Shopify",
    "Filter by Zapier",
    "Delay by Zapier",
    "Gmail"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 3 steps after the trigger",
      "Filter by Zapier",
      "premium app: Shopify"
    ]
  },
  "tasks": {
    "typical": 1,
    "max": 1
  },
  "trigger": {
    "app": "Shopify",
    "event": "New Abandoned Cart",
    "kind": "polling",
    "title": "New abandoned checkout",
    "why": "Picks up checkouts where the buyer entered an email but did not pay.",
    "config": {
      "Store": "YOUR_STORE"
    },
    "outputs": [
      "id",
      "email",
      "customer_first_name",
      "total_price",
      "currency",
      "abandoned_checkout_url",
      "line_item_titles",
      "created_at"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "worth",
      "kind": "filter",
      "app": "Filter by Zapier",
      "event": "Only continue if...",
      "title": "Only carts worth a personal note",
      "why": "Carts under 80 stop here, along with checkouts that have no email to write to.",
      "conditions": [
        [
          {
            "field": "{{trigger.total_price}}",
            "operator": "(Number) Greater than",
            "value": "79.99"
          },
          {
            "field": "{{trigger.email}}",
            "operator": "Exists"
          }
        ]
      ],
      "usually": true
    },
    {
      "key": "wait",
      "kind": "delay",
      "app": "Delay by Zapier",
      "event": "Delay For",
      "title": "Give them an hour",
      "why": "Many buyers come back on their own within the hour. Waiting avoids emailing people who are already paying.",
      "fields": {
        "Time Delayed For (value)": "1",
        "Time Delayed For (unit)": "hours"
      },
      "outputs": [
        "run_at"
      ]
    },
    {
      "key": "email",
      "kind": "action",
      "app": "Gmail",
      "event": "Send Email",
      "title": "Send a short personal note",
      "why": "Plain text from the owner's mailbox, with the exact checkout link so nothing has to be re-entered.",
      "fields": {
        "To": "{{trigger.email}}",
        "Subject": "Your {{trigger.line_item_titles}} is still in your cart",
        "Body Type": "plain",
        "Body": "Hi {{trigger.customer_first_name}},\n\nI noticed you got as far as checkout and stopped. If something was unclear (sizing, delivery time, payment) just reply and I will answer myself.\n\nYour cart is saved here: {{trigger.abandoned_checkout_url}}\n\nThanks,\nYOUR_NAME, YOUR_STORE_NAME",
        "From Name": "YOUR_NAME at YOUR_STORE_NAME"
      },
      "outputs": [
        "id",
        "thread_id"
      ]
    }
  ]
}
