{
  "name": "S12 Send a test e-mail",
  "nodes": [
    {
      "parameters": {},
      "id": "74f65088-a36e-439f-8664-243258572dca",
      "name": "Run once",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "jsCode": "// ONE e-mail per run: Execute workflow on the Gmail trigger takes only the newest matching e-mail.\n// i = 0: a normal run (AI log row).  i = 1: break the model name first (sticky note) to see the failure branch.\nconst i = 0;\nconst tests = [\n  {\n    \"plan\": \"a normal run\",\n    \"subject\": \"[S12 test] Export to Excel adds empty columns\",\n    \"body\": \"When I export the monthly report to Excel, every second column is empty and the totals are shifted. Started last week. Jana\"\n  },\n  {\n    \"plan\": \"the forced failure\",\n    \"subject\": \"[S12 test] Where is my invoice for October?\",\n    \"body\": \"I cannot find the October invoice in the billing page; the last one shown is September. Could you send it or tell me where to look? Sami\"\n  }\n];\nreturn [{ json: tests[i] }];"
      },
      "id": "95c48ec5-fcb5-48ec-9163-a516a1c3a658",
      "name": "Pick one test e-mail",
      "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": "4b9b818d-34ab-4504-9135-6dece7c71477",
      "name": "Send to myself",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        480,
        0
      ]
    },
    {
      "parameters": {
        "content": "## Two test e-mails, one at a time\nPaste your test Gmail address into **Send to myself**, connect Gmail. `i = 0`: Execute, then run M12 Triage with AI log: one AI log row. `i = 1`: first break the model name in the triage workflow, then Execute: the failure branch.",
        "width": 560,
        "height": 190,
        "color": 5
      },
      "id": "74e461d0-bc3c-40a1-af54-75f5c2dd7083",
      "name": "Note c2e7",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        -280
      ]
    }
  ],
  "connections": {
    "Run once": {
      "main": [
        [
          {
            "node": "Pick one test e-mail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pick one test e-mail": {
      "main": [
        [
          {
            "node": "Send to myself",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1",
    "timezone": "Asia/Amman"
  },
  "meta": {}
}