{
 "name": "[노드 한 장] Wait · 보내고 10초 뒤 다시 확인",
 "nodes": [
  {
   "id": "w1",
   "name": "Run manually",
   "type": "n8n-nodes-base.manualTrigger",
   "typeVersion": 1,
   "position": [
    0,
    0
   ],
   "parameters": {}
  },
  {
   "id": "w2",
   "name": "Send quote",
   "type": "n8n-nodes-base.set",
   "typeVersion": 3.4,
   "position": [
    240,
    0
   ],
   "parameters": {
    "assignments": {
     "assignments": [
      {
       "id": "a1",
       "name": "step",
       "type": "string",
       "value": "견적서 보냄"
      },
      {
       "id": "a2",
       "name": "sent_at",
       "type": "string",
       "value": "={{ $now.setZone('Asia/Seoul').toFormat('HH:mm:ss.SSS') }}"
      },
      {
       "id": "a3",
       "name": "sent_ms",
       "type": "number",
       "value": "={{ $now.toMillis() }}"
      }
     ]
    },
    "options": {}
   }
  },
  {
   "id": "w3",
   "name": "Wait 10 seconds",
   "type": "n8n-nodes-base.wait",
   "typeVersion": 1.1,
   "position": [
    480,
    0
   ],
   "parameters": {
    "resume": "timeInterval",
    "amount": 10,
    "unit": "seconds"
   }
  },
  {
   "id": "w4",
   "name": "Check again",
   "type": "n8n-nodes-base.set",
   "typeVersion": 3.4,
   "position": [
    720,
    0
   ],
   "parameters": {
    "assignments": {
     "assignments": [
      {
       "id": "b1",
       "name": "step",
       "type": "string",
       "value": "답장 왔는지 다시 확인"
      },
      {
       "id": "b2",
       "name": "sent_at",
       "type": "string",
       "value": "={{ $json.sent_at }}"
      },
      {
       "id": "b3",
       "name": "checked_at",
       "type": "string",
       "value": "={{ $now.setZone('Asia/Seoul').toFormat('HH:mm:ss.SSS') }}"
      },
      {
       "id": "b4",
       "name": "waited_sec",
       "type": "number",
       "value": "={{ Math.round(($now.toMillis() - $json.sent_ms)/100)/10 }}"
      }
     ]
    },
    "options": {}
   }
  }
 ],
 "connections": {
  "Run manually": {
   "main": [
    [
     {
      "node": "Send quote",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Send quote": {
   "main": [
    [
     {
      "node": "Wait 10 seconds",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Wait 10 seconds": {
   "main": [
    [
     {
      "node": "Check again",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {
  "timezone": "Asia/Seoul",
  "executionOrder": "v1"
 },
 "meta": {
  "templateCredsSetupCompleted": false,
  "source": "datapopcorn.ai/workflow/nodes"
 }
}