{
  "meta": {
    "instanceId": "workflow-93c5f2a4",
    "versionId": "1.0.0",
    "createdAt": "2025-09-29T07:07:46.106161",
    "updatedAt": "2025-09-29T07:07:46.106179",
    "owner": "n8n-user",
    "license": "MIT",
    "category": "automation",
    "status": "active",
    "priority": "high",
    "environment": "production"
  },
  "name": "Transform Image to Lego Style Using Line and Dall-E",
  "tags": [
    "automation",
    "n8n",
    "production-ready",
    "excellent",
    "optimized"
  ],
  "nodes": [
    {
      "id": "82b62d4e-a263-4232-9bae-4c581db2269c",
      "name": "Receive a Line Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        0,
        0
      ],
      "webhookId": "2a27c148-3977-485f-b197-567c96671023",
      "parameters": {
        "path": "lineimage",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2,
      "notes": "This webhook node performs automated tasks as part of the workflow."
    },
    {
      "id": "f861c4eb-3d4f-4253-810f-8032602f079b",
      "name": "Receive Line Messages",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        220,
        0
      ],
      "parameters": {
        "url": "{{ $env.BASE_URL }}",
        "options": {},
        "jsonHeaders": "={\n\"Authorization\": \"Bearer YOUR_LINE_BOT_TOKEN\",\n\"Content-Type\": \"application/json\"\n}",
        "sendHeaders": true,
        "specifyHeaders": "json"
      },
      "typeVersion": 4.2,
      "notes": "This httpRequest node performs automated tasks as part of the workflow."
    },
    {
      "id": "da3a9188-028d-4c75-b23f-5f1f4e50784c",
      "name": "Creating an Image using Dall-E",
      "type": "n8n-nodes-base.noOp",
      "position": [
        860,
        0
      ],
      "parameters": {
        "prompt": "={{ $json.content }}",
        "options": {
          "returnImageUrls": true
        },
        "resource": "image"
      },
      "credentials": {
        "openAiApi": {
          "id": "YOUR_OPENAI_CREDENTIAL_ID",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.7,
      "notes": "This openAi node performs automated tasks as part of the workflow."
    },
    {
      "id": "36c826e5-eacd-43ad-b663-4d788005e61a",
      "name": "Creating a Prompt for Dall-E (Lego Style)",
      "type": "n8n-nodes-base.noOp",
      "position": [
        540,
        0
      ],
      "parameters": {
        "text": "Creating the DALL·E 3 prompt to transform this kind of image into a isometric LEGO image (Only provide me with a prompt).",
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini",
          "cachedResultName": "GPT-4O-MINI"
        },
        "options": {},
        "resource": "image",
        "inputType": "base64",
        "operation": "analyze",
        "binaryPropertyName": "=data"
      },
      "credentials": {
        "openAiApi": {
          "id": "YOUR_OPENAI_CREDENTIAL_ID",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.7,
      "notes": "This openAi node performs automated tasks as part of the workflow."
    },
    {
      "id": "3c19f931-9ca0-4bd7-b4eb-1628d89bbba1",
      "name": "Send Back an Image through Line",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1160,
        0
      ],
      "parameters": {
        "url": "{{ $env.API_BASE_URL }}",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"replyToken\": \"{{ $('Receive a Line Webhook').item.json.body.events[0].replyToken }}\",\n  \"messages\": [\n    {\n      \"type\": \"image\",\n      \"originalContentUrl\": \"{{ $json.url }}\",\n      \"previewImageUrl\": \"{{ $json.url }}\"\n    }\n  ]\n}",
        "sendBody": true,
        "jsonHeaders": "{\n\"Authorization\": \"Bearer YOUR_LINE_BOT_TOKEN\",\n\"Content-Type\": \"application/json\"\n}",
        "sendHeaders": true,
        "specifyBody": "json",
        "specifyHeaders": "json"
      },
      "typeVersion": 4.2,
      "notes": "This httpRequest node performs automated tasks as part of the workflow."
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": null,
    "timezone": "UTC",
    "executionTimeout": 3600,
    "maxExecutions": 1000,
    "retryOnFail": true,
    "retryCount": 3,
    "retryDelay": 1000
  },
  "versionId": "",
  "connections": {
    "82b62d4e-a263-4232-9bae-4c581db2269c": {
      "main": [
        [
          {
            "node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-61c7f5fa",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-8359ba31",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-75128213",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-80bcc08e",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-7e3361f4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-df4c5d83",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-9548e018",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-84a6aee0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f861c4eb-3d4f-4253-810f-8032602f079b": {
      "main": [
        [
          {
            "node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-67614477",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-69408f78",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-15094354",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-2ebffa20",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-d86676ac",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-bd9cafb6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-a4ccbd49",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-0e2ea99c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3c19f931-9ca0-4bd7-b4eb-1628d89bbba1": {
      "main": [
        [
          {
            "node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-c0395cc7",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-70e0abc1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-9c162db6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-0162d02a",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-0083c826",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-2fd77315",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-fb87930e",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-ff0ee209",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "da3a9188-028d-4c75-b23f-5f1f4e50784c": {
      "main": [
        [
          {
            "node": "error-handler-da3a9188-028d-4c75-b23f-5f1f4e50784c-dc4dd9a7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "36c826e5-eacd-43ad-b663-4d788005e61a": {
      "main": [
        [
          {
            "node": "error-handler-36c826e5-eacd-43ad-b663-4d788005e61a-a8bef012",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "description": "Automated workflow: Transform Image to Lego Style Using Line and Dall-E. This workflow processes data and performs automated tasks.",
  "notes": "Excellent quality workflow: Transform Image to Lego Style Using Line and Dall-E. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."
}