{
  "name": "Schedule food photo sharing to Pinterest with GPT-3.5 captions and Google Sheets",
  "nodes": [
    {
      "id": "adea325f-884b-4fc9-9582-74c97e9c3473",
      "name": "Daily Post Scheduler",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "1866b165-64c4-45ce-b9a5-e19e810272c4",
      "name": "Fetch Food Photos from Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        220,
        0
      ]
    },
    {
      "id": "522fc6bc-88a1-4c52-a16e-7a72c9ce8b62",
      "name": "Filter 4+ Star Dishes",
      "type": "n8n-nodes-base.if",
      "position": [
        440,
        0
      ]
    },
    {
      "id": "0818f0bb-a769-4e64-a951-106dcd3b12c6",
      "name": "AI Caption Generator",
      "type": "n8n-nodes-base.openAi",
      "position": [
        660,
        0
      ]
    },
    {
      "id": "1e7a31cd-e6be-48f1-aad1-6af1c56ccbab",
      "name": "Upload to Pinterest",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        0
      ]
    },
    {
      "id": "cc06c3aa-e57a-4b01-9614-e2f5a4876dcf",
      "name": "Mark as Posted in Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1100,
        0
      ]
    },
    {
      "id": "62bec8d6-0535-425c-8151-af312a20e98e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        -260
      ],
      "parameters": {
        "width": 180,
        "height": 420,
        "content": "Triggers the workflow at a scheduled time (e.g., once daily) to check for new food photos to post.\n\n"
      }
    },
    {
      "id": "007ca09a-8d6a-4fa3-b02b-a066cc9a8999",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -260
      ],
      "parameters": {
        "width": 180,
        "height": 420,
        "content": "Filters only those food entries with high ratings (4 stars or above) and unposted status.\n\n"
      }
    },
    {
      "id": "107ef438-5954-4230-af66-b12ebaac449f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        620,
        -260
      ],
      "parameters": {
        "width": 180,
        "height": 420,
        "content": "Uses AI (e.g., GPT/OpenAI) to create engaging and relevant captions for selected food photos.\n\n"
      }
    },
    {
      "id": "2990e8da-40e2-47aa-959a-b1c70741aec4",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        840,
        -260
      ],
      "parameters": {
        "width": 180,
        "height": 420,
        "content": "Automatically posts the food photo with the generated caption to Pinterest via API.\n\n"
      }
    },
    {
      "id": "14b92980-38cc-47bf-8e03-f1d530f276b3",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1060,
        -260
      ],
      "parameters": {
        "width": 180,
        "height": 420,
        "content": "Updates the Google Sheet to reflect that the photo has been successfully shared.\n\n"
      }
    },
    {
      "id": "4997f1e2-a34f-4aa3-8580-a63042f4aac9",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -260
      ],
      "parameters": {
        "width": 180,
        "height": 420,
        "content": "Retrieves rows from the Google Sheet that contain food photos and metadata like rating and status.\n\n"
      }
    },
    {
      "id": "ba50326f-70f6-4af4-a213-34752536cd40",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -520
      ],
      "parameters": {
        "width": 720,
        "height": 140,
        "content": "## Purpose: Automatically share highly-rated food photos from a spreadsheet to Pinterest with AI-generated captions, and mark them as posted."
      }
    }
  ],
  "connections": {
    "Upload to Pinterest": {
      "main": [
        [
          {
            "node": "Mark as Posted in Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Caption Generator": {
      "main": [
        [
          {
            "node": "Upload to Pinterest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Post Scheduler": {
      "main": [
        [
          {
            "node": "Fetch Food Photos from Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter 4+ Star Dishes": {
      "main": [
        [
          {
            "node": "AI Caption Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Food Photos from Sheet": {
      "main": [
        [
          {
            "node": "Filter 4+ Star Dishes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}