{
  "nodes": [
    {
      "id": "2f3c491b-c307-44cb-abdc-5bf6889c1b58",
      "name": "Beer & Cig Farmer",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -624,
        704
      ],
      "parameters": {
        "url": "https://api.doordash.com/v2/orders",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "dfb6049b-4bbb-44fc-a3d8-dd9bb5734c8e",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -416,
        704
      ],
      "parameters": {
        "unit": "minutes",
        "amount": 20
      },
      "typeVersion": 1.1
    },
    {
      "id": "1473c3ea-bd05-44ae-9a66-5f4b891b9a9c",
      "name": "Uber Black to Casino",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -208,
        704
      ],
      "parameters": {
        "url": "https://api.uber.com/v1/requests",
        "options": {},
        "authentication": "genericCredentialType"
      },
      "typeVersion": 1
    },
    {
      "id": "7682b674-c0d6-430d-923d-3ae196d4b172",
      "name": "Arbitrage Calculator",
      "type": "n8n-nodes-base.function",
      "position": [
        0,
        928
      ],
      "parameters": {
        "functionCode": "// Calculate arbitrage opportunities\nconst site1Odds = $input.first().json;\nconst site2Odds = $input.all()[1].json;\n\nlet arbitrageOpps = [];\n\nfor (let game of site1Odds.games) {\n  const matchingGame = site2Odds.games.find(g => g.id === game.id);\n  if (matchingGame) {\n    const impliedProb1 = 1 / game.odds;\n    const impliedProb2 = 1 / matchingGame.odds;\n    const totalImplied = impliedProb1 + impliedProb2;\n    \n    if (totalImplied < 1) {\n      const profit = ((1 / totalImplied) - 1) * 100;\n      if (profit > 2) { // Only 2%+ arbitrage\n        arbitrageOpps.push({\n          game: game.name,\n          profit: profit.toFixed(2),\n          bet1: { site: 'Site1', odds: game.odds, stake: (impliedProb1 * 1000).toFixed(2) },\n          bet2: { site: 'Site2', odds: matchingGame.odds, stake: (impliedProb2 * 1000).toFixed(2) }\n        });\n      }\n    }\n  }\n}\n\nreturn arbitrageOpps.map(opp => ({ json: opp }));"
      },
      "typeVersion": 1
    },
    {
      "id": "15e1a1aa-5a29-4db0-84ad-f0fb33eebc10",
      "name": "Bet365 API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -208,
        928
      ],
      "parameters": {
        "url": "https://api.bet365.com",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "d0feb6d6-7055-41f7-bf12-efca420c05eb",
      "name": "Flex Wins on Socials",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        208,
        928
      ],
      "parameters": {
        "url": "https://api.stocktwits.com/v2/messages",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "3d7167cf-46df-4a3a-ba23-1b25f97da5cc",
      "name": "INSTAGRAM",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        432,
        800
      ],
      "parameters": {
        "url": "https://backend.blotato.com/v2/posts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"post\": {\n    \"accountId\": \"{{ $('Assign Social Media IDs').item.json.instagram_id }}\",\n    \"target\": {\n      \"targetType\": \"instagram\"\n    },\n    \"content\": {\n      \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n      \"platform\": \"instagram\",\n      \"mediaUrls\": [\n        \"{{ $json.url }}\"\n      ]\n    }\n  },\n  \"scheduledTime\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Schedule Time'] }}\"\n}\n\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "blotato-api-key",
              "value": "YOUR_API"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "9a75ff44-2ff1-4e18-b171-7637f31ab84b",
      "name": "TIKTOK",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        624,
        800
      ],
      "parameters": {
        "url": "https://backend.blotato.com/v2/posts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"post\": {\n    \"accountId\": \"{{ $('Assign Social Media IDs').item.json.tiktok_id }}\",\n    \"target\": {\n      \"targetType\": \"tiktok\",\n      \"isYourBrand\": \"false\", \n      \"disabledDuet\": \"false\",\n      \"privacyLevel\": \"PUBLIC_TO_EVERYONE\",\n      \"isAiGenerated\": \"true\",\n      \"disabledStitch\": \"false\",\n      \"disabledComments\": \"false\",\n      \"isBrandedContent\": \"false\"\n      \n    },\n    \"content\": {\n      \"text\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Clip Caption'] }}\",\n      \"platform\": \"tiktok\",\n      \"mediaUrls\": [\n        \"{{ $json.url }}\"\n      ]\n    }\n  },\n  \"scheduledTime\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Schedule Time'] }}\"\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "blotato-api-key",
              "value": "your_api"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "de85b6bc-a433-4000-96b0-f57b7488ee85",
      "name": "FACEBOOK",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        432,
        1072
      ],
      "parameters": {
        "url": "https://backend.blotato.com/v2/posts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"post\": {\n    \"accountId\": \"{{ $('Assign Social Media IDs').item.json.facebook_id }}\",\n    \"target\": {\n      \"targetType\": \"facebook\",\n      \"pageId\": \"{{ $('Assign Social Media IDs').item.json.facebook_page_id }}\"\n\n      \n    },\n    \"content\": {\n      \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n      \"platform\": \"facebook\",\n      \"mediaUrls\": [\n        \"{{ $json.url }}\"\n      ]\n    }\n  },\n  \"scheduledTime\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Schedule Time'] }}\"\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "blotato-api-key",
              "value": "your_api"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "a4fc9c48-351f-4ad9-bdf9-9ef2cfc7e56e",
      "name": "THREADS",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        624,
        1072
      ],
      "parameters": {
        "url": "https://backend.blotato.com/v2/posts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"post\": {\n    \"accountId\": \"{{ $('Assign Social Media IDs').item.json.threads_id }}\",\n    \"target\": {\n      \"targetType\": \"threads\"\n      \n    },\n    \"content\": {\n      \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n      \"platform\": \"threads\",\n      \"mediaUrls\": [\n        \"{{ $json.url }}\"\n      ]\n    }\n  },\n  \"scheduledTime\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Schedule Time'] }}\"\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "blotato-api-key",
              "value": "your_api"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "e6889526-e98f-4f91-9d1e-e7dd41c7486c",
      "name": "LINKEDIN",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        832,
        1072
      ],
      "parameters": {
        "url": "https://backend.blotato.com/v2/posts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"post\": {\n    \"accountId\": \"{{ $('Assign Social Media IDs').item.json.linkedin_id }}\",\n    \"target\": {\n      \"targetType\": \"linkedin\"\n      \n    },\n    \"content\": {\n      \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n      \"platform\": \"linkedin\",\n      \"mediaUrls\": [\n        \"{{ $json.url }}\"\n      ]\n    }\n  },\n  \"scheduledTime\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Schedule Time'] }}\"\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "blotato-api-key",
              "value": "your_api"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "00788d10-d57f-4b5f-9d32-a30348bc0d3f",
      "name": "TWITTER",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        832,
        800
      ],
      "parameters": {
        "url": "https://backend.blotato.com/v2/posts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"post\": {\n    \"accountId\": \"{{ $('Assign Social Media IDs').item.json.twitter_id }}\",\n    \"target\": {\n      \"targetType\": \"twitter\"\n      \n    },\n    \"content\": {\n      \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n      \"platform\": \"twitter\",\n      \"mediaUrls\": [\n        \"{{ $json.url }}\"\n      ]\n    }\n  },\n  \"scheduledTime\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Schedule Time'] }}\"\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "blotato-api-key",
              "value": "your_api"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "b805ec99-2cc4-4f06-be18-383a26b44960",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        0,
        704
      ],
      "parameters": {
        "unit": "minutes",
        "amount": 35
      },
      "typeVersion": 1.1
    },
    {
      "id": "607bc982-3ff0-4c37-983d-9614d929ab4b",
      "name": "Rise and Grind",
      "type": "n8n-nodes-base.cron",
      "position": [
        -848,
        704
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "13b5ef5d-30bf-4858-a9d7-0dc82b237ddd",
      "name": "INSTAGRAM1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -656,
        192
      ],
      "parameters": {
        "url": "https://backend.blotato.com/v2/posts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"post\": {\n    \"accountId\": \"{{ $('Assign Social Media IDs').item.json.instagram_id }}\",\n    \"target\": {\n      \"targetType\": \"instagram\"\n    },\n    \"content\": {\n      \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n      \"platform\": \"instagram\",\n      \"mediaUrls\": [\n        \"{{ $json.url }}\"\n      ]\n    }\n  },\n  \"scheduledTime\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Schedule Time'] }}\"\n}\n\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "blotato-api-key",
              "value": "YOUR_API"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "0f68e808-feb4-4668-97c2-4954471dfc54",
      "name": "TIKTOK1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -464,
        192
      ],
      "parameters": {
        "url": "https://backend.blotato.com/v2/posts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"post\": {\n    \"accountId\": \"{{ $('Assign Social Media IDs').item.json.tiktok_id }}\",\n    \"target\": {\n      \"targetType\": \"tiktok\",\n      \"isYourBrand\": \"false\", \n      \"disabledDuet\": \"false\",\n      \"privacyLevel\": \"PUBLIC_TO_EVERYONE\",\n      \"isAiGenerated\": \"true\",\n      \"disabledStitch\": \"false\",\n      \"disabledComments\": \"false\",\n      \"isBrandedContent\": \"false\"\n      \n    },\n    \"content\": {\n      \"text\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Clip Caption'] }}\",\n      \"platform\": \"tiktok\",\n      \"mediaUrls\": [\n        \"{{ $json.url }}\"\n      ]\n    }\n  },\n  \"scheduledTime\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Schedule Time'] }}\"\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "blotato-api-key",
              "value": "your_api"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "01dc8ab4-0eb7-47b4-88b0-c55af121cd76",
      "name": "FACEBOOK1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -656,
        368
      ],
      "parameters": {
        "url": "https://backend.blotato.com/v2/posts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"post\": {\n    \"accountId\": \"{{ $('Assign Social Media IDs').item.json.facebook_id }}\",\n    \"target\": {\n      \"targetType\": \"facebook\",\n      \"pageId\": \"{{ $('Assign Social Media IDs').item.json.facebook_page_id }}\"\n\n      \n    },\n    \"content\": {\n      \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n      \"platform\": \"facebook\",\n      \"mediaUrls\": [\n        \"{{ $json.url }}\"\n      ]\n    }\n  },\n  \"scheduledTime\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Schedule Time'] }}\"\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "blotato-api-key",
              "value": "your_api"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "eca7cda1-404d-42d5-8998-b87fde90fc8e",
      "name": "THREADS1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -464,
        368
      ],
      "parameters": {
        "url": "https://backend.blotato.com/v2/posts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"post\": {\n    \"accountId\": \"{{ $('Assign Social Media IDs').item.json.threads_id }}\",\n    \"target\": {\n      \"targetType\": \"threads\"\n      \n    },\n    \"content\": {\n      \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n      \"platform\": \"threads\",\n      \"mediaUrls\": [\n        \"{{ $json.url }}\"\n      ]\n    }\n  },\n  \"scheduledTime\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Schedule Time'] }}\"\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "blotato-api-key",
              "value": "your_api"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "f9ddad3c-3729-4e78-9917-38f58fe9d70c",
      "name": "LINKEDIN1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -256,
        368
      ],
      "parameters": {
        "url": "https://backend.blotato.com/v2/posts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"post\": {\n    \"accountId\": \"{{ $('Assign Social Media IDs').item.json.linkedin_id }}\",\n    \"target\": {\n      \"targetType\": \"linkedin\"\n      \n    },\n    \"content\": {\n      \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n      \"platform\": \"linkedin\",\n      \"mediaUrls\": [\n        \"{{ $json.url }}\"\n      ]\n    }\n  },\n  \"scheduledTime\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Schedule Time'] }}\"\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "blotato-api-key",
              "value": "your_api"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "71ca955b-c19a-4b5f-a85f-baeb37c5dda0",
      "name": "TWITTER1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -256,
        192
      ],
      "parameters": {
        "url": "https://backend.blotato.com/v2/posts",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"post\": {\n    \"accountId\": \"{{ $('Assign Social Media IDs').item.json.twitter_id }}\",\n    \"target\": {\n      \"targetType\": \"twitter\"\n      \n    },\n    \"content\": {\n      \"text\": \"{{ $('Get my video').item.json.DESCRIPTION }}\",\n      \"platform\": \"twitter\",\n      \"mediaUrls\": [\n        \"{{ $json.url }}\"\n      ]\n    }\n  },\n  \"scheduledTime\": \"{{ $('Log Shorts & Schedule Info to Google Sheets').item.json['Schedule Time'] }}\"\n}\n",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "blotato-api-key",
              "value": "your_api"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "ef195463-4c88-48ad-8125-b05826ec4d70",
      "name": "Steak & Monster Delivery",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        544,
        544
      ],
      "parameters": {
        "url": "https://api.doordash.com/v2/orders",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "b57c0e88-3df5-4395-8cf8-e310c83a826e",
      "name": "Play Man in the box",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -624,
        944
      ],
      "parameters": {
        "url": "https://api.spotify.com/v1/me/player/play",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "e7ce97ce-2661-4ea7-8eb8-bafa450d72f9",
      "name": "Wait2",
      "type": "n8n-nodes-base.wait",
      "position": [
        -848,
        944
      ],
      "parameters": {
        "unit": "minutes"
      },
      "typeVersion": 1.1
    },
    {
      "id": "6b01e3b6-a12c-465b-ab4c-888f0b9ef669",
      "name": "Data Normalizer",
      "type": "n8n-nodes-base.function",
      "position": [
        192,
        0
      ],
      "parameters": {
        "functionCode": "return [\n  {\n    json: {\n      id: \"12345\",\n      title: \"Like New iPhone 13 Pro\",\n      price: 899,\n      description: \"Mint condition, used for 2 months\",\n      seller: \"John Smith\",\n      seller_id: \"1029384756\",\n      image_url: \"https://example.com/iphone.jpg\",\n      location: \"Seattle, WA\",\n      posted: \"2 hours ago\"\n    }\n  },\n  {\n    json: {\n      id: \"67890\",\n      title: \"Gaming PC RTX 3080\",\n      price: 1500,\n      description: \"High-end gaming rig, barely used\",\n      seller: \"Mike Johnson\",\n      seller_id: \"5647382910\",\n      image_url: \"https://example.com/pc.jpg\",\n      location: \"Portland, OR\",\n      posted: \"1 day ago\"\n    }\n  }\n];"
      },
      "typeVersion": 1
    },
    {
      "id": "4ea945ed-6342-4a98-aa83-7fbcf32baf72",
      "name": "Deal Analyzer",
      "type": "n8n-nodes-base.function",
      "position": [
        0,
        160
      ],
      "parameters": {
        "functionCode": "const successProbability = Math.floor($json.marketDemand * 100) - \n                       ($json.offerStrategy === 'aggressive' ? 35 : \n                        $json.offerStrategy === 'moderate' ? 20 : 10);\n\nreturn {\n  json: {\n    ...$json,\n    successProbability: Math.max(5, successProbability),\n    negotiationStage: 'Initial Offer',\n    lastOffer: $json.lowballOffer,\n    totalOpportunityValue: $json.opportunityValue\n  }\n};"
      },
      "typeVersion": 1
    },
    {
      "id": "80747f16-2046-4f40-8d21-e62de15726c6",
      "name": "Opportunity Recalculator",
      "type": "n8n-nodes-base.function",
      "position": [
        512,
        160
      ],
      "parameters": {
        "functionCode": "const newOffer = Math.round($json.lastOffer * 0.85);\nreturn {\n  json: {\n    ...$json,\n    negotiationStage: 'Nuclear Offer',\n    lastOffer: newOffer,\n    totalOpportunityValue: $json.price - newOffer,\n    successProbability: Math.min(90, $json.successProbability + 15)\n  }\n};"
      },
      "typeVersion": 1
    },
    {
      "id": "056ebd91-e0d6-4d5c-a201-460bfb0bf438",
      "name": "CRM Integration",
      "type": "n8n-nodes-base.salesforce",
      "position": [
        672,
        160
      ],
      "parameters": {
        "company": "=",
        "lastname": "=",
        "additionalFields": {}
      },
      "typeVersion": 1
    },
    {
      "id": "7f71a082-5b83-48b2-99e2-fb5755d2ba5c",
      "name": "Deal Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        832,
        320
      ],
      "parameters": {
        "text": "=",
        "chatId": "=",
        "forceReply": {},
        "replyMarkup": "=none",
        "additionalFields": {},
        "replyKeyboardRemove": {},
        "replyKeyboardOptions": {}
      },
      "typeVersion": 1
    },
    {
      "id": "a64b0082-4208-40de-b0cf-28290a5ed588",
      "name": "Value Calculator",
      "type": "n8n-nodes-base.function",
      "position": [
        832,
        160
      ],
      "parameters": {
        "functionCode": "const totals = {\n  totalOpportunityValue: items.reduce((sum, item) => sum + item.json.totalOpportunityValue, 0),\n  averageDiscount: Math.round(items.reduce((sum, item) => sum + (item.json.totalOpportunityValue/item.json.price), 0) / items.length * 100),\n  totalOffers: items.length\n};\n\nreturn [{\n  json: totals\n}];"
      },
      "typeVersion": 1
    },
    {
      "id": "4c4b8cf8-3133-433b-952c-e2e7e394a0db",
      "name": "FB Marketplace scraper",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        0,
        0
      ],
      "parameters": {
        "edge": "=",
        "node": "=",
        "options": {},
        "graphApiVersion": "="
      },
      "typeVersion": 1
    },
    {
      "id": "e4cdf6cb-59ed-4e3f-be5d-e31295b0a5d0",
      "name": "Item filter",
      "type": "n8n-nodes-base.if",
      "position": [
        368,
        0
      ],
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{$json['price']}}",
              "operation": "larger"
            },
            {
              "value1": "={{$json['posted']}}",
              "operation": "contains"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "937237e3-ca6f-408c-9829-44a2db049b10",
      "name": "Lowball Algorithm",
      "type": "n8n-nodes-base.function",
      "position": [
        512,
        0
      ],
      "parameters": {
        "functionCode": "const strategies = {\n  'aggressive': 0.15,\n  'moderate': 0.25,\n  'soft': 0.35\n};\n\nconst marketDemand = {\n  'iPhone': 0.85,\n  'Gaming': 0.65,\n  'Macbook': 0.75,\n  'RTX': 0.70,\n  'Designer': 0.55\n};\n\n// Detect item type\nlet itemType = 'other';\nObject.keys(marketDemand).forEach(key => {\n  if ($json.title.includes(key)) itemType = key;\n});\n\n// Determine strategy based on demand\nconst strategy = marketDemand[itemType] > 0.7 ? 'aggressive' : \n               marketDemand[itemType] > 0.6 ? 'moderate' : 'soft';\n\nconst offer = Math.round($json.price * strategies[strategy]);\n\nreturn {\n  json: {\n    ...$json,\n    lowballOffer: offer,\n    offerStrategy: strategy,\n    marketDemand: marketDemand[itemType] || 0.5,\n    opportunityValue: $json.price - offer\n  }\n};"
      },
      "typeVersion": 1
    },
    {
      "id": "5555ad70-f413-478f-a200-19ced50e2a0b",
      "name": "Message Blaster1",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        832,
        0
      ],
      "parameters": {
        "node": "=",
        "options": {},
        "graphApiVersion": "="
      },
      "typeVersion": 1
    },
    {
      "id": "0e7867f1-75c6-4567-985a-8d1e7312541f",
      "name": "Follow-up Nuke",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        368,
        160
      ],
      "parameters": {
        "edge": "=",
        "node": "=",
        "options": {},
        "graphApiVersion": "="
      },
      "typeVersion": 1
    },
    {
      "id": "81651b41-c135-4663-a43d-d8217eb744c5",
      "name": "Relentless Negotiation Engine",
      "type": "n8n-nodes-base.if",
      "position": [
        192,
        160
      ],
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{$json['successProbability']}}",
              "operation": "=smaller"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "5466187a-534a-4c5f-969d-41507e904ecc",
      "name": "Execute Purchase",
      "type": "n8n-nodes-base.function",
      "position": [
        992,
        160
      ],
      "parameters": {
        "functionCode": "return [{\n  json: {\n    report: `\ud83d\udd25 LOWBALL SUMMARY \ud83d\udd25\\n\\n` +\n           `\ud83d\udcb8 Total Opportunity Value: $${$json.totalOpportunityValue}\\n` +\n           `\ud83d\udcc9 Average Discount: ${$json.averageDiscount}%\\n` +\n           `\ud83d\udce4 Offers Sent: ${$json.totalOffers}\\n\\n` +\n           `\ud83d\udcbc Best Deal: iPhone - $800 value\\n` +\n           `\ud83e\udd2f Most Aggressive: 85% off Gaming PC`\n  }\n}];"
      },
      "typeVersion": 1
    },
    {
      "id": "192abd38-3c49-420b-b0bf-a655332e257c",
      "name": "Flaw Detection",
      "type": "n8n-nodes-base.function",
      "position": [
        672,
        0
      ],
      "parameters": {
        "functionCode": "const excuses = [\n  \"My budget is only this after my dog's surgery\",\n  \"This is all I have until payday next month\",\n  \"I found one cheaper but prefer yours (just not the price)\",\n  \"I'm a student with very limited funds\",\n  \"I can pay cash today if you accept this\"\n];\n\nreturn {\n  json: {\n    ...$json,\n    message: `Hi ${$json.seller}! I'm very interested in your ${$json.title}. Would you consider $${$json.lowballOffer}? ${excuses[Math.floor(Math.random() * excuses.length)]}`\n  }\n};"
      },
      "typeVersion": 1
    },
    {
      "id": "c1d8a622-46cb-458a-94af-fa8686513960",
      "name": "Tinder API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        208,
        544
      ],
      "parameters": {
        "url": "https://www.tinder.com/api",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "dfadd2c8-4f16-4cdd-af55-2643f3891d5c",
      "name": "Wait3",
      "type": "n8n-nodes-base.wait",
      "position": [
        368,
        544
      ],
      "parameters": {
        "unit": "hours"
      },
      "typeVersion": 1.1
    },
    {
      "id": "454ebd79-76ba-43c4-8d0b-cbf0fef1a1fc",
      "name": "Book All Available Slots",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        832,
        544
      ],
      "parameters": {
        "url": "https://api.rangebooking.com/v1/reservations",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "faa0d2dc-bbac-4429-8baf-4897d61da585",
      "name": "Search eBay Deals",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1184,
        368
      ],
      "parameters": {
        "url": "https://svcs.ebay.com/services/search/FindingService/v1",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "1327a281-1f57-4622-b437-529a4a0cde6e",
      "name": "Find Profitable Items",
      "type": "n8n-nodes-base.function",
      "position": [
        1344,
        368
      ],
      "parameters": {
        "functionCode": "// Filter items with valid pricing data\nconst items = $json[\"findItemsByKeywordsResponse\"][0][\"searchResult\"][0][\"item\"] || [];\n\nconst deals = [];\nfor (const item of items) {\n  try {\n    const currentPrice = parseFloat(item[\"sellingStatus\"][0][\"currentPrice\"][0][\"__value__\"]);\n    const productValue = item[\"productId\"] ? \n      parseFloat(item[\"productId\"][0][\"__value__\"]) * 3 : // Placeholder logic\n      currentPrice * 4; // Fallback\n      \n    if (productValue > currentPrice * 3) {\n      deals.push({\n        itemId: item[\"itemId\"][0],\n        title: item[\"title\"][0],\n        price: currentPrice,\n        galleryURL: item[\"galleryURL\"][0],\n        productValue: productValue\n      });\n    }\n  } catch (e) {}\n}\nreturn [{\n  json: { deals }\n}];"
      },
      "typeVersion": 1
    },
    {
      "id": "57c96089-ff99-4a8f-9289-6f7e573836d5",
      "name": "Item Lists",
      "type": "n8n-nodes-base.itemLists",
      "position": [
        1184,
        544
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "Tactical Gear"
      },
      "typeVersion": 1
    },
    {
      "id": "4681c53d-c346-4ad1-8383-141686d55e94",
      "name": "Get Item Details",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1344,
        544
      ],
      "parameters": {
        "url": "https://api.ebay.com/buy/browse/v1/item/{{$json[\"itemId\"]}}",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "b688e78f-49f7-44b6-9ae2-001bde128699",
      "name": "List Item for Sale",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1504,
        544
      ],
      "parameters": {
        "url": "https://api.ebay.com/sell/inventory/v1/offer",
        "options": {},
        "jsonParameters": true
      },
      "typeVersion": 1
    },
    {
      "id": "0ecc3411-c15f-4469-ba21-57f265ab355c",
      "name": "Log Transaction",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1664,
        544
      ],
      "parameters": {
        "options": {},
        "sheetId": "=",
        "operation": "append",
        "authentication": "oAuth2"
      },
      "typeVersion": 1
    },
    {
      "id": "e102de56-a161-4ca2-9d4a-49dc3b239385",
      "name": "Find Facebook Group",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1168,
        864
      ],
      "parameters": {
        "node": "=",
        "options": {},
        "graphApiVersion": "="
      },
      "credentials": {},
      "typeVersion": 1
    },
    {
      "id": "2e3ff02d-c548-4f29-8fd8-b811692602cc",
      "name": "Filter Recent Discussions",
      "type": "n8n-nodes-base.function",
      "position": [
        1360,
        864
      ],
      "parameters": {
        "functionCode": "// Filter recent active discussions\nconst posts = $input.all().filter(post => {\n  return post.created_time > new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString()\n});\n\nreturn posts.map(post => ({\n  post_id: post.id,\n  topic: post.message,\n  engagement: post.comments?.data?.length || 0\n}));"
      },
      "typeVersion": 1
    },
    {
      "id": "183bd956-928c-4caa-bfd7-e8dded60b6ff",
      "name": "Send WhatsApp Alert",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1568,
        864
      ],
      "parameters": {
        "textBody": "=",
        "operation": "send",
        "phoneNumberId": "=",
        "additionalFields": {},
        "recipientPhoneNumber": "="
      },
      "credentials": {},
      "typeVersion": 1
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Uber Black to Casino",
            "type": "main",
            "index": 0
          },
          {
            "node": "Bet365 API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Tinder API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait2": {
      "main": [
        [
          {
            "node": "Play Man in the box",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait3": {
      "main": [
        [
          {
            "node": "Steak & Monster Delivery",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bet365 API": {
      "main": [
        [
          {
            "node": "Arbitrage Calculator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Item Lists": {
      "main": [
        [
          {
            "node": "Get Item Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tinder API": {
      "main": [
        [
          {
            "node": "Wait3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Item filter": {
      "main": [
        [
          {
            "node": "Lowball Algorithm",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Deal Analyzer": {
      "main": [
        [
          {
            "node": "Relentless Negotiation Engine",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Flaw Detection": {
      "main": [
        [
          {
            "node": "Message Blaster1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Follow-up Nuke": {
      "main": [
        [
          {
            "node": "Opportunity Recalculator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rise and Grind": {
      "main": [
        [
          {
            "node": "Beer & Cig Farmer",
            "type": "main",
            "index": 0
          },
          {
            "node": "FACEBOOK1",
            "type": "main",
            "index": 0
          },
          {
            "node": "INSTAGRAM1",
            "type": "main",
            "index": 0
          },
          {
            "node": "THREADS1",
            "type": "main",
            "index": 0
          },
          {
            "node": "TIKTOK1",
            "type": "main",
            "index": 0
          },
          {
            "node": "LINKEDIN1",
            "type": "main",
            "index": 0
          },
          {
            "node": "TWITTER1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Wait2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CRM Integration": {
      "main": [
        [
          {
            "node": "Deal Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Value Calculator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Data Normalizer": {
      "main": [
        [
          {
            "node": "Item filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Item Details": {
      "main": [
        [
          {
            "node": "List Item for Sale",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message Blaster1": {
      "main": [
        [
          {
            "node": "Deal Analyzer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Value Calculator": {
      "main": [
        [
          {
            "node": "Execute Purchase",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Beer & Cig Farmer": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lowball Algorithm": {
      "main": [
        [
          {
            "node": "Flaw Detection",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search eBay Deals": {
      "main": [
        [
          {
            "node": "Find Profitable Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List Item for Sale": {
      "main": [
        [
          {
            "node": "Log Transaction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Facebook Group": {
      "main": [
        [
          {
            "node": "Filter Recent Discussions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Arbitrage Calculator": {
      "main": [
        [
          {
            "node": "Flex Wins on Socials",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Flex Wins on Socials": {
      "main": [
        [
          {
            "node": "INSTAGRAM",
            "type": "main",
            "index": 0
          },
          {
            "node": "TIKTOK",
            "type": "main",
            "index": 0
          },
          {
            "node": "TWITTER",
            "type": "main",
            "index": 0
          },
          {
            "node": "LINKEDIN",
            "type": "main",
            "index": 0
          },
          {
            "node": "THREADS",
            "type": "main",
            "index": 0
          },
          {
            "node": "FACEBOOK",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Uber Black to Casino": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          },
          {
            "node": "FB Marketplace scraper",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Profitable Items": {
      "main": [
        [
          {
            "node": "Item Lists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FB Marketplace scraper": {
      "main": [
        [
          {
            "node": "Data Normalizer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Book All Available Slots": {
      "main": [
        [
          {
            "node": "Find Facebook Group",
            "type": "main",
            "index": 0
          },
          {
            "node": "Search eBay Deals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Opportunity Recalculator": {
      "main": [
        [
          {
            "node": "CRM Integration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Steak & Monster Delivery": {
      "main": [
        [
          {
            "node": "Book All Available Slots",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Recent Discussions": {
      "main": [
        [
          {
            "node": "Send WhatsApp Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Relentless Negotiation Engine": {
      "main": [
        [
          {
            "node": "Follow-up Nuke",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}