{
  "name": "S6 Send ten test e-mails",
  "nodes": [
    {
      "parameters": {},
      "id": "00db19f1-07b8-4151-b4c9-99343a3185cf",
      "name": "Run once",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "jsCode": "// One item per test e-mail. The Gmail node runs once per item: ten items, ten e-mails (Session 5: items).\nconst tests = [\n  {\n    \"expected\": \"billing\",\n    \"subject\": \"[S6 test] Invoice INV-2207 charged twice\",\n    \"body\": \"Hello, my card was charged twice for invoice INV-2207 this month. Please refund the duplicate payment. Thanks, Rania\"\n  },\n  {\n    \"expected\": \"billing\",\n    \"subject\": \"[S6 test] Change my plan to annual billing\",\n    \"body\": \"Hi, we would like to switch our subscription from monthly to annual billing from next month. What do I need to do? Omar\"\n  },\n  {\n    \"expected\": \"billing\",\n    \"subject\": \"[S6 test] Refund for unused licences\",\n    \"body\": \"Good morning, we cancelled three seats last week but were still billed for them. Can you refund those three licences? Lina, Finance\"\n  },\n  {\n    \"expected\": \"technical\",\n    \"subject\": \"[S6 test] Error 500 when exporting reports\",\n    \"body\": \"Since this morning every PDF export fails with \\\"Error 500, internal server error\\\". We tried two browsers. Sara\"\n  },\n  {\n    \"expected\": \"technical\",\n    \"subject\": \"[S6 test] Cannot log in after password reset\",\n    \"body\": \"I reset my password yesterday and now the login page says \\\"invalid token\\\". I am locked out of my account. Khaled\"\n  },\n  {\n    \"expected\": \"technical\",\n    \"subject\": \"[S6 test] How do I add a new user?\",\n    \"body\": \"Where in the settings can I add a new user to our team workspace and give them read-only access? Thanks, Huda\"\n  },\n  {\n    \"expected\": \"sales\",\n    \"subject\": \"[S6 test] Price for 50 seats\",\n    \"body\": \"We are a university department and would like a quote for 50 seats, with any education discount you offer. Dr. Yousef\"\n  },\n  {\n    \"expected\": \"sales\",\n    \"subject\": \"[S6 test] Can we book a demo next week?\",\n    \"body\": \"Our operations team would like a 30-minute demo of the reporting features next week. Which days suit you? Nadia\"\n  },\n  {\n    \"expected\": \"unsure\",\n    \"subject\": \"[S6 test] Your talk at the conference\",\n    \"body\": \"Hi, I enjoyed your talk last week. Would you share the slides? Also, do you have student pricing? Best, Tariq\"\n  },\n  {\n    \"expected\": \"unsure\",\n    \"subject\": \"[S6 test] Invoice question and an error\",\n    \"body\": \"The invoice link in your e-mail gives an error page and I cannot see what I owe. Can someone look at this? Maha\"\n  }\n];\nreturn tests.map(t => ({ json: t }));"
      },
      "id": "5ea42110-2664-4513-b50d-4914bed3fb5d",
      "name": "Ten test e-mails",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        240,
        0
      ]
    },
    {
      "parameters": {
        "sendTo": "PASTE-YOUR-TEST-GMAIL-ADDRESS-HERE",
        "subject": "={{ $json.subject }}",
        "emailType": "text",
        "message": "={{ $json.body }}",
        "options": {
          "appendAttribution": false
        }
      },
      "id": "baa4f26f-9c58-4101-bd2a-e10473966b5c",
      "name": "Send to myself",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        480,
        0
      ]
    },
    {
      "parameters": {
        "content": "## Send the ten test e-mails\nPaste your own test Gmail address into **Send to myself**, connect Gmail, then **Execute workflow** once.\n\n3 billing, 3 technical, 2 sales, 2 ambiguous. Expected result in M6 Inbox triage: 8 labelled, 2 in the Triage review sheet.",
        "width": 520,
        "height": 210,
        "color": 5
      },
      "id": "ba241513-e25c-49b2-9e15-ff515c6e35bb",
      "name": "Note 79d3",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        -300
      ]
    }
  ],
  "connections": {
    "Run once": {
      "main": [
        [
          {
            "node": "Ten test e-mails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ten test e-mails": {
      "main": [
        [
          {
            "node": "Send to myself",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {}
}