{
  "name": "Generate custom text content with IBM Granite 3.3 8B instruct AI",
  "nodes": [
    {
      "id": "04102afd-8353-4b13-84e5-1f89e348da79",
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -32,
        80
      ]
    },
    {
      "id": "59353414-da00-4339-b4d1-734ff1499b7c",
      "name": "Set API Key",
      "type": "n8n-nodes-base.set",
      "position": [
        192,
        80
      ]
    },
    {
      "id": "f81edc17-b6a7-4a1a-979a-8977a56a23b7",
      "name": "Create Prediction",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        416,
        80
      ]
    },
    {
      "id": "a084b94a-cca1-4ae6-9b93-0d2370dd2686",
      "name": "Extract Prediction ID",
      "type": "n8n-nodes-base.code",
      "position": [
        624,
        80
      ]
    },
    {
      "id": "4076b69b-6abf-4f3f-86da-08cf21029150",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        848,
        80
      ]
    },
    {
      "id": "5f0369b0-f62f-4811-8151-96f9a879d02d",
      "name": "Check Prediction Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1072,
        80
      ]
    },
    {
      "id": "799bffa9-0479-4413-acd2-2c2606d7d087",
      "name": "Check If Complete",
      "type": "n8n-nodes-base.if",
      "position": [
        1296,
        80
      ]
    },
    {
      "id": "f669b953-c1a7-499a-be5c-bcd3af83cfba",
      "name": "Process Result",
      "type": "n8n-nodes-base.code",
      "position": [
        1616,
        -48
      ]
    },
    {
      "id": "95f3bffa-3a72-420d-8993-84b54d6a51fc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -608
      ],
      "parameters": {
        "width": 436,
        "height": 864,
        "content": "\n## ✅ **🔵 SECTION 1: Trigger & Setup**\n\n### ⚙️ **Nodes**\n\n1️⃣ **On clicking 'execute'**\n\n* **What it does:** Starts the workflow manually when you hit *Execute*.\n* **Why it’s useful:** Perfect for tes"
      }
    },
    {
      "id": "33be951a-35a4-42cf-b962-8ad5b34140ad",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        -928
      ],
      "parameters": {
        "width": 1044,
        "height": 1184,
        "content": "## ✅ **🤖 SECTION 2: Model Request & Polling**\n\n### ⚙️ **Nodes**\n\n3️⃣ **Create Prediction (HTTP Request)**\n\n* **What it does:** Sends a **POST request** to Replicate’s API to start a text generation jo"
      }
    },
    {
      "id": "10d7d2b3-64e5-42c8-bfda-1468887dbc8b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1520,
        -640
      ],
      "parameters": {
        "width": 308,
        "height": 896,
        "content": "\n## ✅ **🟢 SECTION 3: Process & Output**\n\n### ⚙️ **Nodes**\n\n8️⃣ **Process Result (Code)**\n\n* **What it does:** Collects the final **AI output**, status, metrics, and timestamps.\n* **Adds info like:**\n\n"
      }
    },
    {
      "id": "155a5507-eb11-4762-b94e-8f966bcc17b0",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1680,
        -1184
      ],
      "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": "b2ba39e7-aac3-48a7-940b-1cfef0089997",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1680,
        -848
      ],
      "parameters": {
        "width": 1289,
        "height": 2942,
        "content": "# Generate Custom Text Content with IBM Granite 3.3 8B Instruct AI\n\nThis workflow connects to **Replicate’s API** and uses the **ibm-granite/granite-3.3-8b-instruct** model to generate text.\n\n---\n\n## "
      }
    }
  ],
  "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
          }
        ]
      ]
    }
  }
}