{
  "name": "Sync Etsy customers to Meta Custom Audiences (PRO)",
  "nodes": [
    {
      "id": "meta-schedule",
      "name": "Sync audience every day",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        420
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "meta-config",
      "name": "Configuration (EDIT ME)",
      "type": "n8n-nodes-base.set",
      "position": [
        280,
        420
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "meta-request",
      "name": "Request receipt emails",
      "type": "n8n-nodes-base.set",
      "position": [
        560,
        420
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "meta-receipts",
      "name": "Get Etsy customer receipts",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        840,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "meta-hash",
      "name": "Normalize and hash customer emails",
      "type": "n8n-nodes-base.code",
      "position": [
        1120,
        420
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "meta-dry",
      "name": "Dry run?",
      "type": "n8n-nodes-base.if",
      "position": [
        1400,
        420
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "meta-preview",
      "name": "Preview hashed audience payload",
      "type": "n8n-nodes-base.set",
      "position": [
        1680,
        300
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "meta-upload",
      "name": "Upload users to Meta Custom Audience",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1680,
        520
      ],
      "parameters": {},
      "typeVersion": 4.3
    },
    {
      "id": "meta-overview",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        -420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "meta-section-1",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        300
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "meta-section-2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1240,
        260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "settings": {
    "executionOrder": "v1"
  },
  "connections": {
    "Dry run?": {
      "main": [
        [
          {
            "node": "Preview hashed audience payload",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Upload users to Meta Custom Audience",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Request receipt emails": {
      "main": [
        [
          {
            "node": "Get Etsy customer receipts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Configuration (EDIT ME)": {
      "main": [
        [
          {
            "node": "Request receipt emails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sync audience every day": {
      "main": [
        [
          {
            "node": "Configuration (EDIT ME)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Etsy customer receipts": {
      "main": [
        [
          {
            "node": "Normalize and hash customer emails",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize and hash customer emails": {
      "main": [
        [
          {
            "node": "Dry run?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}