{
  "updatedAt": "2026-03-18T15:19:41.602Z",
  "createdAt": "2026-03-18T15:19:41.602Z",
  "id": "2wm6Gqnt2NQZ7zJV",
  "name": "Nurse Charles \u2014 Email Priority Manager",
  "description": null,
  "active": false,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyX",
              "value": 5,
              "unit": "minutes"
            }
          ]
        },
        "filters": {
          "readStatus": "unread"
        }
      },
      "id": "71ecb418-21dc-429e-a289-460527b153e3",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "typeVersion": 1,
      "position": [
        -592,
        96
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.anthropic.com/v1/messages",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env['ANTHROPIC_API_KEY'] }}"
            },
            {
              "name": "anthropic-version",
              "value": "2023-06-01"
            },
            {
              "name": "content-type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ model: 'claude-haiku-4-5-20251001', max_tokens: 20, messages: [{ role: 'user', content: 'Classify this email for Nurse Charles, an ER nurse and healthcare influencer at iamnurse.org. Reply ONLY with HIGH_PRIORITY or LOW_PRIORITY.\\n\\nHIGH_PRIORITY: partnership proposals, brand deals, sponsorships, money, payment, contracts, investment, revenue, or business opportunities.\\nLOW_PRIORITY: fan mail, general questions, unsolicited media, anything without a clear financial or partnership angle.\\n\\nFrom: ' + $json.From + '\\nSubject: ' + $json.Subject + '\\nPreview: ' + $json.snippet }] }) }}",
        "options": {}
      },
      "id": "cf51334b-c1c0-451d-a01e-1c36f7075879",
      "name": "Classify Email (Claude)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        -352,
        96
      ]
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{ $json.content[0].text }}",
              "operation": "contains",
              "value2": "HIGH"
            }
          ]
        }
      },
      "id": "d9ee54b4-30a0-450b-8db3-624c91e1cd30",
      "name": "High or Low Priority?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        -112,
        96
      ]
    },
    {
      "parameters": {
        "chatId": "REPLACE_WITH_YOUR_TELEGRAM_CHAT_ID",
        "text": "=\ud83d\udea8 *HIGH PRIORITY \u2014 Nurse Charles Inbox*\n\n*From:* {{ $('Gmail Trigger').item.json.From }}\n*Subject:* {{ $('Gmail Trigger').item.json.Subject }}\n\n{{ $('Gmail Trigger').item.json.snippet }}\n\n_Reply at partnerships@nursecharlesmedia.com_",
        "additionalFields": {
          "parse_mode": "Markdown"
        }
      },
      "id": "f35d26e1-1b74-4388-b9af-9333ef296a65",
      "name": "Telegram Alert",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1,
      "position": [
        128,
        -48
      ],
      "webhookId": "faa09c0f-cecc-4cf5-8bee-afb7da0f406a"
    },
    {
      "parameters": {
        "operation": "reply",
        "messageId": "={{ $('Gmail Trigger').item.json.id }}",
        "message": "Hi there,\n\nThanks for reaching out to Nurse Charles.\n\nCharles reviews every message personally \u2014 he just also works full-time in the ER. You'll hear back within 48 hours.\n\nIf this is a partnership or collaboration inquiry, feel free to attach any decks, rate cards, or campaign briefs in the meantime. It helps us move faster when we connect.\n\nTalk soon,\nThe Nurse Charles Team\npartnerships@nursecharlesmedia.com | iamnurse.org",
        "options": {}
      },
      "id": "184aa355-28f3-464c-b2fe-cb39f1eed8dc",
      "name": "Auto Reply",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [
        128,
        240
      ],
      "webhookId": "58ed4bae-144a-48bc-b657-f503ea5e1137"
    },
    {
      "parameters": {
        "operation": "markAsRead",
        "messageId": "={{ $('Gmail Trigger').item.json.id }}"
      },
      "id": "f085cde3-09ef-459e-bdd2-f350f98224de",
      "name": "Mark Read (High)",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [
        368,
        -48
      ],
      "webhookId": "dd536566-2950-4f82-97ff-28c53eb5b3e0"
    },
    {
      "parameters": {
        "operation": "markAsRead",
        "messageId": "={{ $('Gmail Trigger').item.json.id }}"
      },
      "id": "65bf94e6-e7ca-4958-9a05-b64f80d00c6c",
      "name": "Mark Read (Low)",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [
        368,
        240
      ],
      "webhookId": "6aa20ccb-a304-4cac-ae4c-a14413bd11a7"
    }
  ],
  "connections": {
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Classify Email (Claude)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classify Email (Claude)": {
      "main": [
        [
          {
            "node": "High or Low Priority?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "High or Low Priority?": {
      "main": [
        [
          {
            "node": "Telegram Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Auto Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Alert": {
      "main": [
        [
          {
            "node": "Mark Read (High)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Auto Reply": {
      "main": [
        [
          {
            "node": "Mark Read (Low)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": false
  },
  "staticData": null,
  "meta": null,
  "pinData": {},
  "versionId": "61a8b51d-321a-41e0-9f61-880e264d509d",
  "activeVersionId": null,
  "versionCounter": 1,
  "triggerCount": 0,
  "shared": [
    {
      "updatedAt": "2026-03-18T15:19:41.638Z",
      "createdAt": "2026-03-18T15:19:41.638Z",
      "role": "workflow:owner",
      "workflowId": "2wm6Gqnt2NQZ7zJV",
      "projectId": "91dLj8Hg37i136qG",
      "project": {
        "updatedAt": "2026-03-22T06:53:28.112Z",
        "createdAt": "2026-02-12T18:32:53.056Z",
        "id": "91dLj8Hg37i136qG",
        "name": "Bryce Folsom <bfolsom@emersonnorth.com>",
        "type": "personal",
        "icon": null,
        "description": null,
        "creatorId": "17d3676f-3e74-4586-8363-5c1f4d237ed7"
      }
    }
  ],
  "tags": [],
  "activeVersion": null
}