{
  "schema_version": "1.0.0",
  "id": "review-request-after-delivery",
  "title": "Ask for a review five days after a WooCommerce order completes",
  "category": "ecommerce",
  "difficulty": "beginner",
  "featured": false,
  "description": "When an order is marked completed, wait five days and send one short review request from a real mailbox.",
  "tags": [
    "woocommerce",
    "reviews",
    "gmail",
    "delay"
  ],
  "apps": [
    "WooCommerce",
    "Filter by Zapier",
    "Delay by Zapier",
    "Gmail"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 3 steps after the trigger",
      "Filter by Zapier",
      "premium app: WooCommerce"
    ]
  },
  "tasks": {
    "typical": 0,
    "max": 1
  },
  "trigger": {
    "app": "WooCommerce",
    "event": "Order Status Changed",
    "kind": "instant",
    "title": "Order status changed",
    "why": "Fires on every status change; the filter keeps only completed orders.",
    "config": {
      "Store": "YOUR_WOOCOMMERCE_STORE"
    },
    "outputs": [
      "id",
      "number",
      "status",
      "billing_email",
      "billing_first_name",
      "date_completed",
      "line_item_names"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "done",
      "kind": "filter",
      "app": "Filter by Zapier",
      "event": "Only continue if...",
      "title": "Only orders that just became completed",
      "why": "Processing, on-hold, and refunded changes stop here.",
      "conditions": [
        [
          {
            "field": "{{trigger.status}}",
            "operator": "(Text) Exactly matches",
            "value": "completed"
          }
        ]
      ],
      "usually": false
    },
    {
      "key": "wait",
      "kind": "delay",
      "app": "Delay by Zapier",
      "event": "Delay For",
      "title": "Wait five days for delivery",
      "why": "Most domestic parcels have arrived and been used by day five.",
      "fields": {
        "Time Delayed For (value)": "5",
        "Time Delayed For (unit)": "days"
      },
      "outputs": [
        "run_at"
      ]
    },
    {
      "key": "ask",
      "kind": "action",
      "app": "Gmail",
      "event": "Send Email",
      "title": "Send the review request",
      "why": "One short email with a direct link to the review form, signed by a person.",
      "fields": {
        "To": "{{trigger.billing_email}}",
        "Subject": "How is your {{trigger.line_item_names}}?",
        "Body Type": "plain",
        "Body": "Hi {{trigger.billing_first_name}},\n\nYour order #{{trigger.number}} should have reached you by now. If you have a minute, a short review helps other customers more than anything we could write:\n\nYOUR_REVIEW_PAGE_URL\n\nIf anything is wrong with the order, just reply to this email instead and I will sort it out.\n\nYOUR_NAME",
        "From Name": "YOUR_NAME at YOUR_STORE_NAME"
      },
      "outputs": [
        "id",
        "thread_id"
      ]
    }
  ]
}
