{
  "name": "Generate Front Book Cover",
  "nodes": [
    {
      "parameters": {
        "content": "## Generate Front Book Cover\n\nSelf-publishing authors and digital bookstores use this recipe to generate a professional front book cover. Define a canvas with a gradient background, add title and author text \u2014 ready for ebook stores, print-on-demand, or preview thumbnails.\n\n**Note:** This workflow uses the Iteration Layer community node (`n8n-nodes-iterationlayer`). Install it via Settings > Community Nodes on self-hosted n8n, or add it directly on n8n Cloud with Verified Community Nodes enabled.",
        "height": 280,
        "width": 500,
        "color": 2
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        200,
        40
      ],
      "id": "2f477ffc-eba2-4829-8db5-82e606bc4183",
      "name": "Overview"
    },
    {
      "parameters": {
        "content": "### Step 1: Generate Image\nResource: **Image Generation**\n\nConfigure the Image Generation parameters below, then connect your credentials.",
        "height": 160,
        "width": 300,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        475,
        100
      ],
      "id": "5d8a159e-9e83-45a3-b106-20223749588a",
      "name": "Step 1 Note"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        250,
        300
      ],
      "id": "e5f6a7b8-5555-4000-8000-000000000001",
      "name": "Manual Trigger"
    },
    {
      "parameters": {
        "resource": "imageGeneration",
        "widthInPx": 600,
        "heightInPx": 900,
        "outputFormat": "png",
        "layersJson": "[{\"index\":0,\"type\":\"gradient\",\"gradient_type\":\"linear\",\"angle_in_degrees\":180.0,\"colors\":[{\"hex_color\":\"#1B1464\",\"position\":0.0},{\"hex_color\":\"#6C63FF\",\"position\":100.0}],\"position\":{\"x_in_px\":0.0,\"y_in_px\":0.0},\"dimensions\":{\"width_in_px\":600,\"height_in_px\":900}},{\"index\":1,\"type\":\"text\",\"text\":\"The Art of API Design\",\"font_name\":\"Playfair Display\",\"font_size_in_px\":52,\"text_color\":\"#FFFFFF\",\"font_weight\":\"bold\",\"text_align\":\"center\",\"position\":{\"x_in_px\":50.0,\"y_in_px\":200.0},\"dimensions\":{\"width_in_px\":500,\"height_in_px\":200}},{\"index\":2,\"type\":\"text\",\"text\":\"Alexandra Chen\",\"font_name\":\"Inter\",\"font_size_in_px\":24,\"text_color\":\"#D4D0FF\",\"text_align\":\"center\",\"position\":{\"x_in_px\":50.0,\"y_in_px\":750.0},\"dimensions\":{\"width_in_px\":500,\"height_in_px\":40}}]",
        "fontsJson": "[]"
      },
      "type": "n8n-nodes-iterationlayer.iterationLayer",
      "typeVersion": 1,
      "position": [
        500,
        300
      ],
      "id": "e5f6a7b8-5555-4000-8000-000000000002",
      "name": "Generate Image",
      "credentials": {
        "iterationLayerApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Generate Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}