{
  "name": "Facebook/Meta conversion API for eCommerce leads/orders",
  "nodes": [
    {
      "id": "7fd5ddfd-a858-4a0a-84b8-f8f4ec034d63",
      "name": "Normalize data",
      "type": "n8n-nodes-base.set",
      "position": [
        -60,
        0
      ]
    },
    {
      "id": "978d3854-44f6-4773-928e-4536a97a48b1",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        -60
      ],
      "parameters": {
        "width": 343,
        "height": 252,
        "content": "## Data normalization"
      }
    },
    {
      "id": "feb4a686-278f-41d4-ab13-ba4fbc159ef6",
      "name": "Encrypt data",
      "type": "n8n-nodes-base.set",
      "position": [
        300,
        0
      ]
    },
    {
      "id": "1beb8a7c-0bce-489a-aea4-c2acb937601f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -60
      ],
      "parameters": {
        "width": 343,
        "height": 252,
        "content": "## Data encryption\n"
      }
    },
    {
      "id": "9f867c8b-fdc1-4294-b56e-12340c604111",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -220
      ],
      "parameters": {
        "width": 375,
        "height": 414,
        "content": "## Send event\nYou can use a test code from Facebook Events Manager to verify your integration.\n\nAdd your test code to the test_code parameter inside the JSON payload.\n\nOnce everything is confirmed to "
      }
    },
    {
      "id": "c00c1fac-7550-4fa9-8fc9-e9f250519e6a",
      "name": "Send event to Meta",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        820,
        20
      ]
    },
    {
      "id": "5b486767-1ec1-4829-a556-ddc4f0c13f95",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1260,
        -240
      ]
    },
    {
      "id": "8a8ee5fb-edf4-410c-b86c-a1b805a66319",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1160,
        100
      ],
      "parameters": {
        "width": null,
        "height": 220,
        "content": "## Test data \nYou can chenge test data here"
      }
    },
    {
      "id": "40240bfc-8e7b-4c5b-84e0-b8ccd52b097e",
      "name": "Test data",
      "type": "n8n-nodes-base.code",
      "position": [
        -1100,
        180
      ]
    },
    {
      "id": "dbb5d646-4500-4ed9-89b6-607ebfc216d9",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1620,
        80
      ],
      "parameters": {
        "width": null,
        "height": 240,
        "content": "## Test Workflow\nClick this button to test the workflow with fake data \n"
      }
    },
    {
      "id": "8473264d-fbad-4213-a0bf-84e7f841053e",
      "name": "Execute workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1540,
        180
      ]
    },
    {
      "id": "ad465243-cb30-492d-b77c-1066fec33c1b",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -220
      ],
      "parameters": {
        "width": 340,
        "height": 80,
        "content": "## Change here\n"
      }
    },
    {
      "id": "1b1c1cd5-ecfe-40d2-af82-1b0cc2b65e7c",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -120
      ],
      "parameters": {
        "width": 343,
        "height": 312,
        "content": "## Collect data\nIn this node you link between your webhook data with this node parameters, also you can add more data."
      }
    },
    {
      "id": "63208dd1-6258-4630-9c3b-c8913cf04085",
      "name": "Format data",
      "type": "n8n-nodes-base.code",
      "position": [
        -520,
        0
      ]
    },
    {
      "id": "81bb1144-9e20-41d2-a611-c5f2422cba09",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        360
      ],
      "parameters": {
        "width": 1700,
        "height": 100,
        "content": "## Do you need more help or have any suggestions?\nContact me at mediaplus.ma@gmail.com"
      }
    },
    {
      "id": "a959b199-3d42-4a97-9c59-17cfa0b48124",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1620,
        340
      ],
      "parameters": {
        "width": 700,
        "height": 80,
        "content": "## Just to test"
      }
    },
    {
      "id": "541e0afe-1fd4-4c5e-a8e9-d7aa6f0e5832",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1300,
        -320
      ],
      "parameters": {
        "width": 200,
        "height": 240,
        "content": "## Production"
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Format data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test data": {
      "main": [
        [
          {
            "node": "Format data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format data": {
      "main": [
        [
          {
            "node": "Normalize data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Encrypt data": {
      "main": [
        [
          {
            "node": "Send event to Meta",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize data": {
      "main": [
        [
          {
            "node": "Encrypt data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute workflow": {
      "main": [
        [
          {
            "node": "Test data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}