{
  "name": "Enhance your workflow with 2Ndmoises_Generator AI",
  "nodes": [
    {
      "id": "a091c223-2791-499b-89e8-434bcf31e67a",
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        64,
        144
      ]
    },
    {
      "id": "d36b25ad-4311-4413-b0ad-4c5a46c4e188",
      "name": "Set API Key",
      "type": "n8n-nodes-base.set",
      "position": [
        288,
        144
      ]
    },
    {
      "id": "461d4923-1b34-4aeb-b289-bbf44e711d06",
      "name": "Create Prediction",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        512,
        144
      ]
    },
    {
      "id": "01a4bdfd-18b8-4246-9243-70a0df65d98e",
      "name": "Extract Prediction ID",
      "type": "n8n-nodes-base.code",
      "position": [
        720,
        144
      ]
    },
    {
      "id": "2ed26955-6706-4bf2-888c-73723f5959e9",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        944,
        144
      ]
    },
    {
      "id": "1ac52ee8-c440-4811-a2b0-3615354a2955",
      "name": "Check Prediction Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1168,
        144
      ]
    },
    {
      "id": "78c38493-4abd-4519-8798-c603509c4103",
      "name": "Check If Complete",
      "type": "n8n-nodes-base.if",
      "position": [
        1392,
        144
      ]
    },
    {
      "id": "832db3de-e99d-43a8-94ee-d765d8d6b46e",
      "name": "Process Result",
      "type": "n8n-nodes-base.code",
      "position": [
        1680,
        48
      ]
    },
    {
      "id": "c9ec6eb2-ab8d-4a95-9a9b-09f5dab2ad05",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -416
      ],
      "parameters": {
        "width": 436,
        "height": 736,
        "content": "## 📌 Section 1: Trigger & Authentication\n\n### ⚡ On Clicking ‘Execute’ (Manual Trigger)\n\n* Purpose: Start the workflow manually whenever you want to run it.\n* Benefit: Great for testing or running on-d"
      }
    },
    {
      "id": "8458b03b-0d9f-4703-a8fd-0921db0e92b6",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        -528
      ],
      "parameters": {
        "width": 420,
        "height": 848,
        "content": "## 📌 Section 2: Sending the AI Request\n\n### 📤 Create Prediction (HTTP Request Node)\n\n* Purpose: Sends a request to the Replicate API to start generating output with the model.\n* Input Parameters:\n\n  *"
      }
    },
    {
      "id": "7984c90e-5a31-493f-9008-ad2dec8fdffa",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        -496
      ],
      "parameters": {
        "width": 612,
        "height": 816,
        "content": "## 📌 Section 3: Polling & Waiting\n\n### ⏳ Wait (Wait Node)\n\n* Purpose: Adds a short pause (2 seconds) between checks.\n* Benefit: Prevents hitting the API too quickly and avoids errors.\n\n### 🔄 Check Pre"
      }
    },
    {
      "id": "eaa16b1f-04cd-47de-858f-9edba0f06d8d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1552,
        -448
      ],
      "parameters": {
        "width": 372,
        "height": 768,
        "content": "## 📌 Section 4: Handling the Result\n\n### 📦 Process Result (Code Node)\n\n* Purpose: Cleans up the final API response and extracts:\n\n  * Status\n  * Output (generated result)\n  * Metrics\n  * Timestamps (c"
      }
    },
    {
      "id": "87ad749a-a346-442e-9dcd-8285f57d659e",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1776,
        -528
      ],
      "parameters": {
        "width": 1300,
        "height": 320,
        "content": "=======================================\n            WORKFLOW ASSISTANCE\n=======================================\nFor any questions or support, please contact:\n    Yaron@nofluff.online\n\nExplore more tip"
      }
    },
    {
      "id": "5ec1f0de-52e9-4194-a602-f56839d0085f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1776,
        -192
      ],
      "parameters": {
        "width": 1289,
        "height": 2510,
        "content": "# Enhance Your Workflow with 2Ndmoises_Generator AI\n\nThis n8n workflow integrates with **Replicate’s `moicarmonas/2ndmoises_generator` model** to generate custom outputs based on your prompt. It handl"
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Check Prediction Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set API Key": {
      "main": [
        [
          {
            "node": "Create Prediction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Complete": {
      "main": [
        [
          {
            "node": "Process Result",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Prediction": {
      "main": [
        [
          {
            "node": "Extract Prediction ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Prediction ID": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Set API Key",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Prediction Status": {
      "main": [
        [
          {
            "node": "Check If Complete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}