{
  "name": "Send server-side conversions to the Meta Ads API (CAPI)",
  "nodes": [
    {
      "id": "de88e89c-acfd-4592-8f73-0f1b56dba93b",
      "name": "Edit Normalize PII",
      "type": "n8n-nodes-base.set",
      "position": [
        -752,
        0
      ]
    },
    {
      "id": "cf2debc3-7cc0-450f-9e58-9b981333c537",
      "name": "Crypto - Hash Email",
      "type": "n8n-nodes-base.crypto",
      "position": [
        -512,
        0
      ]
    },
    {
      "id": "b6821a25-cbb2-4083-9693-30cf3da3aaac",
      "name": "Crypto - Hash Phone",
      "type": "n8n-nodes-base.crypto",
      "position": [
        -256,
        0
      ]
    },
    {
      "id": "1a61578d-b32a-41f8-9e24-a635a645eda0",
      "name": "Set - Compute Timestamps & Map Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        400,
        0
      ]
    },
    {
      "id": "13f09e7a-7684-41d1-9396-413f71727703",
      "name": "Crypto - First Name",
      "type": "n8n-nodes-base.crypto",
      "position": [
        -48,
        0
      ]
    },
    {
      "id": "798bdcb5-3861-4a9a-a355-a776e510773c",
      "name": "Crypto - Last Name",
      "type": "n8n-nodes-base.crypto",
      "position": [
        160,
        0
      ]
    },
    {
      "id": "9f465c29-2bfd-443f-8bc9-ba259f3d5751",
      "name": "Sending Events To Facebook Pixel",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        864,
        0
      ]
    },
    {
      "id": "9df179f5-643b-4a2e-8a51-fd407b16183d",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -976,
        0
      ]
    },
    {
      "id": "7a962bb1-7d34-46b5-82d7-3f777ee9ad4f",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1072,
        0
      ]
    },
    {
      "id": "2b5d641f-7cb4-4a2e-b708-66dbf56396c0",
      "name": "Preparing for HTTP Request Payload",
      "type": "n8n-nodes-base.code",
      "position": [
        624,
        0
      ]
    },
    {
      "id": "39e00abc-81c2-475c-b084-9fe1b1db8771",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        -448
      ],
      "parameters": {
        "width": 592,
        "height": 880,
        "content": "## Send Server-Side Conversions to the Meta Ads API (CAPI)\n\nThis workflow acts as a server-side endpoint to send conversion events directly to the Meta (Facebook) Conversions API. This helps you get m"
      }
    },
    {
      "id": "695dd7b8-2030-4114-9e91-f426a55e0ba7",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1056,
        160
      ],
      "parameters": {
        "width": null,
        "height": 272,
        "content": "**👇 STEP 1: START HERE**\n\nThis is your endpoint. Copy the URL from this node and configure your website form or backend to send a POST request with a JSON body to it.\n\nSee the main yellow note and the"
      }
    },
    {
      "id": "eb626055-ef90-420d-a569-715797fd6c7f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        160
      ],
      "parameters": {
        "width": 864,
        "height": 128,
        "content": "**🔒 STEP 2: SECURE & HASH DATA**\n\nThis section automatically cleans and hashes the incoming user data to meet Meta's CAPI requirements.\n\nNo configuration is needed here—it just works!"
      }
    },
    {
      "id": "018c683d-5d26-4931-9cc4-f7f8bd23aafc",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        176
      ],
      "parameters": {
        "width": 512,
        "height": 224,
        "content": "**🚀 STEP 3: SEND TO META**\n\nThis is the final and most important step.\n\n**Action Required:**\n1.  Replace **`PIXEL_ID_HERE`** in the **URL** with your real Meta Pixel ID.\n2.  Under **Authentication**, "
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Edit Normalize PII",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Crypto - Last Name": {
      "main": [
        [
          {
            "node": "Set - Compute Timestamps & Map Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Normalize PII": {
      "main": [
        [
          {
            "node": "Crypto - Hash Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Crypto - First Name": {
      "main": [
        [
          {
            "node": "Crypto - Last Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Crypto - Hash Email": {
      "main": [
        [
          {
            "node": "Crypto - Hash Phone",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Crypto - Hash Phone": {
      "main": [
        [
          {
            "node": "Crypto - First Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sending Events To Facebook Pixel": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Preparing for HTTP Request Payload": {
      "main": [
        [
          {
            "node": "Sending Events To Facebook Pixel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set - Compute Timestamps & Map Fields": {
      "main": [
        [
          {
            "node": "Preparing for HTTP Request Payload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}