{
  "createdAt": "2025-09-29T12:14:52.503Z",
  "updatedAt": "2025-09-29T12:23:24.000Z",
  "id": "H2VLK6uc1UXDbLoy",
  "name": "Fluxo Disparo Mensagem",
  "active": false,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {
        "options": {}
      },
      "id": "447c1abe-4f21-4c90-955f-d4250b65d375",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        192,
        -64
      ]
    },
    {
      "parameters": {},
      "id": "cdb81fa2-1bc2-4c17-9ac8-b60acf56a0fc",
      "name": "Replace Me",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        720,
        -48
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://graph.facebook.com/v22.0/576678365532139/messages",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "whatsAppApi",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n    \"messaging_product\": \"whatsapp\",\n    \"recipient_type\": \"individual\",\n    \"to\": \"+55{{ $('Google Sheets').item.json.Telefone }}\",\n    \"type\": \"template\",\n    \"template\": {\n        \"name\": \"inhotim_slide6_a\",\n        \"language\": {\n            \"code\": \"pt_BR\"\n        },\n        \"components\": [\n            {\n                \"type\": \"header\",\n                \"parameters\": [\n                    {\n                        \"type\": \"video\",\n                        \"video\": {\n                            \"link\": \"https://mobilevet.blob.core.windows.net/arquivos/video_teaser_inhotim_1.mp4\"\n                        }\n                    }\n                ]\n            },\n            {\n                \"type\": \"body\",\n                \"parameters\": []\n            }\n        ]\n    }\n}",
        "options": {}
      },
      "id": "bd76f622-c14d-44ab-8617-c888a2c90c3d",
      "name": "Registrar",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        464,
        -48
      ],
      "credentials": {
        "whatsAppApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "75905614-f9d8-4abe-b67c-e4ddf84caf2e",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -320,
        -64
      ],
      "id": "d535758d-c846-4dca-8674-ff78bd2e9032",
      "name": "Webhook"
    },
    {
      "parameters": {
        "mode": "raw",
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        -112,
        -64
      ],
      "id": "f8be75ca-8109-481d-83b7-3550cbebcf47",
      "name": "Edit Fields"
    }
  ],
  "connections": {
    "Replace Me": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Registrar",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Registrar": {
      "main": [
        [
          {
            "node": "Replace Me",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "meta": null,
  "versionId": "0f15be56-f345-4714-866e-8ee148c49981",
  "triggerCount": 0,
  "shared": [
    {
      "createdAt": "2025-09-29T12:14:52.515Z",
      "updatedAt": "2025-09-29T12:14:52.515Z",
      "role": "workflow:owner",
      "workflowId": "H2VLK6uc1UXDbLoy",
      "projectId": "5dTxE8vBWJ6kQMrp"
    }
  ],
  "tags": []
}