{
  "name": "Meteor IA: send a WhatsApp template",
  "nodes": [
    {
      "parameters": {},
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "When clicking Execute",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.met.meteor.com.co/api/v1/channels/TU_CHANNEL_ID/whatsapp/send-template",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "dry_run",
              "value": "true"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\n  \"contact_id\": 12345,\n  \"template_name\": \"recordatorio_pago\",\n  \"language\": \"es_CO\",\n  \"components\": [\n    {\n      \"type\": \"body\",\n      \"parameters\": [\n        {\n          \"type\": \"text\",\n          \"text\": \"Ana\"\n        }\n      ]\n    }\n  ]\n}",
        "options": {}
      },
      "id": "00000000-0000-4000-8000-000000000002",
      "name": "Send template (dry_run)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        240,
        0
      ]
    },
    {
      "parameters": {
        "content": "## Send a template with the Meteor IA API\n\n1. In the HTTP Request node pick your **Bearer Auth** credential with your live Meteor IA key (scope `channels:send`).\n2. Replace `TU_CHANNEL_ID` with your WhatsApp channel id (`GET /workspaces/{workspaceId}/channels`).\n3. Set the `contact_id`, `template_name`, `language` and `components` of your approved template (`GET /channels/{channelId}/templates`).\n4. With `dry_run=true` Meteor validates and sends nothing. Remove that parameter to send for real. The dry run does not evaluate autopilot: the real send can answer `409 autopilot_silenced` if a person is handling that contact.",
        "height": 300,
        "width": 420
      },
      "id": "00000000-0000-4000-8000-000000000003",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        160
      ]
    }
  ],
  "connections": {
    "When clicking Execute": {
      "main": [
        [
          {
            "node": "Send template (dry_run)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}
