{
  "name": "Demo 2 — Inbox → Calendar Draft",
  "nodes": [
    {
      "parameters": {
        "content": "## Demo 2 — Inbox → Calendar Draft\n\nWhen a new email arrives, n8n creates a tentative \"REVIEW\" event on your calendar so nothing date-like slips through. You confirm or edit it later — the calendar event is the draft.\n\n**Build order:** 1) Gmail trigger  →  2) build the title  →  3) create a tentative calendar event.\n\n**Level up:** drop an AI \"Information Extractor\" between steps 2 and 3 to pull the real date/time out of the email body (see the walkthrough).",
        "height": 260,
        "width": 360,
        "color": 5
      },
      "id": "a1a1a1a1-1111-4111-8111-aaaaaaaaaaaa",
      "name": "Read me first",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-80, 60]
    },
    {
      "parameters": {
        "pollTimes": { "item": [{ "mode": "everyMinute" }] },
        "simple": true,
        "filters": {},
        "options": {}
      },
      "id": "b2b2b2b2-2222-4222-8222-bbbbbbbbbbbb",
      "name": "On new email",
      "type": "n8n-nodes-base.gmailTrigger",
      "typeVersion": 1.2,
      "position": [120, 360]
    },
    {
      "parameters": {
        "mode": "manual",
        "assignments": {
          "assignments": [
            {
              "id": "c3c3c3c3-0001-4000-8000-000000000001",
              "name": "title",
              "value": "=REVIEW: {{ $json.subject || $json.Subject || 'New email' }}",
              "type": "string"
            },
            {
              "id": "c3c3c3c3-0002-4000-8000-000000000002",
              "name": "notes",
              "value": "=From: {{ $json.from || $json.From }}\n\n{{ $json.snippet || $json.text }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "c3c3c3c3-3333-4333-8333-cccccccccccc",
      "name": "Build the event title",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [360, 360]
    },
    {
      "parameters": {
        "operation": "create",
        "calendar": { "__rl": true, "value": "", "mode": "list" },
        "start": "={{ $now.plus(1, 'days').toISO() }}",
        "end": "={{ $now.plus(1, 'days').plus(1, 'hours').toISO() }}",
        "additionalFields": {
          "summary": "={{ $json.title }}",
          "description": "={{ $json.notes }}",
          "transparency": "transparent"
        }
      },
      "id": "d4d4d4d4-4444-4444-8444-dddddddddddd",
      "name": "Create tentative event",
      "type": "n8n-nodes-base.googleCalendar",
      "typeVersion": 1.3,
      "position": [600, 360]
    }
  ],
  "connections": {
    "On new email": {
      "main": [[{ "node": "Build the event title", "type": "main", "index": 0 }]]
    },
    "Build the event title": {
      "main": [[{ "node": "Create tentative event", "type": "main", "index": 0 }]]
    }
  },
  "settings": { "executionOrder": "v1" },
  "pinData": {}
}
