{
  "name": "Nodbot - SendGrid dynamic template email with suppression guard",
  "nodes": [
    {
      "parameters": {},
      "id": "node-1",
      "name": "App event",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        200,
        300
      ],
      "notes": "получает событие onboarding, invoice или alert"
    },
    {
      "parameters": {},
      "id": "node-2",
      "name": "Consent guard",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        420,
        300
      ],
      "notes": "проверяет transactional/marketing consent"
    },
    {
      "parameters": {},
      "id": "node-3",
      "name": "Template data validator",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        640,
        300
      ],
      "notes": "валидирует dynamic_template_data"
    },
    {
      "parameters": {},
      "id": "node-4",
      "name": "Idempotency lookup",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        860,
        300
      ],
      "notes": "отсекает повторную отправку"
    },
    {
      "parameters": {},
      "id": "node-5",
      "name": "SendGrid Mail Send",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        1080,
        300
      ],
      "notes": "отправляет письмо через v3 API"
    },
    {
      "parameters": {},
      "id": "node-6",
      "name": "Event webhook",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        1300,
        300
      ],
      "notes": "обновляет delivered/open/bounce/spam report"
    }
  ],
  "connections": {
    "App event": {
      "main": [
        [
          {
            "node": "Consent guard",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Consent guard": {
      "main": [
        [
          {
            "node": "Template data validator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Template data validator": {
      "main": [
        [
          {
            "node": "Idempotency lookup",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Idempotency lookup": {
      "main": [
        [
          {
            "node": "SendGrid Mail Send",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SendGrid Mail Send": {
      "main": [
        [
          {
            "node": "Event webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false,
    "description": "Problem/Solution-гайд по SendGrid и n8n: как отправлять письма через Mail Send API с dynamic templates, personalizations, idempotency и обработкой event webhook."
  },
  "tags": [
    "nodbot",
    "integration",
    "production"
  ]
}