{
 "name": "[노드 한 장] Gmail Trigger · 본인 샘플 발송 helper",
 "nodes": [
  {
   "id": "manual",
   "name": "Run manually",
   "type": "n8n-nodes-base.manualTrigger",
   "typeVersion": 1,
   "position": [
    0,
    0
   ],
   "parameters": {}
  },
  {
   "id": "profile",
   "name": "Verify Gmail profile only",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "retryOnFail": false,
   "position": [
    250,
    0
   ],
   "parameters": {
    "url": "https://gmail.googleapis.com/gmail/v1/users/me/profile",
    "authentication": "predefinedCredentialType",
    "nodeCredentialType": "gmailOAuth2",
    "options": {}
   }
  },
  {
   "id": "guard",
   "name": "Guard own identity",
   "type": "n8n-nodes-base.code",
   "typeVersion": 2,
   "position": [
    500,
    0
   ],
   "parameters": {
    "jsCode": "if($json.emailAddress!=='YOUR_OWN_EMAIL')throw Error('Identity mismatch');return [{json:{own:true}}];"
   }
  },
  {
   "id": "send",
   "name": "Send one own sample",
   "type": "n8n-nodes-base.gmail",
   "typeVersion": 2.1,
   "retryOnFail": false,
   "position": [
    750,
    0
   ],
   "parameters": {
    "resource": "message",
    "operation": "send",
    "sendTo": "YOUR_OWN_EMAIL",
    "subject": "YOUR_TEST_SUBJECT",
    "emailType": "text",
    "message": "Gmail Trigger 실습용으로 직접 작성한 본인 테스트 메일입니다. 샘플 한 통만 보내고 검색 필터로 이 메일만 확인합니다.",
    "options": {
     "appendAttribution": false
    }
   }
  }
 ],
 "connections": {
  "Run manually": {
   "main": [
    [
     {
      "node": "Verify Gmail profile only",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Verify Gmail profile only": {
   "main": [
    [
     {
      "node": "Guard own identity",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Guard own identity": {
   "main": [
    [
     {
      "node": "Send one own sample",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {
  "executionOrder": "v1"
 },
 "meta": {
  "templateCredsSetupCompleted": false,
  "source": "datapopcorn.ai/workflow/nodes"
 }
}