Workflow: Transform Image to Lego Style Using Line and Dall-E
Integrations: httpRequest, noOp, webhook

{"meta": {"instanceId": "workflow-ccbfebe3", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:46.705672", "updatedAt": "2025-09-29T07:07:46.705707", "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\u00b7E 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-e0ab1216", "type": "main", "index": 0}], [{"node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-90963330", "type": "main", "index": 0}], [{"node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-0abe6711", "type": "main", "index": 0}], [{"node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-1d79b8f1", "type": "main", "index": 0}], [{"node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-9ec61b59", "type": "main", "index": 0}], [{"node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-7f01c551", "type": "main", "index": 0}], [{"node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-85a735a8", "type": "main", "index": 0}], [{"node": "error-handler-82b62d4e-a263-4232-9bae-4c581db2269c-c9ea8d6d", "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-201490db", "type": "main", "index": 0}], [{"node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-1a44912e", "type": "main", "index": 0}], [{"node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-0c698c8b", "type": "main", "index": 0}], [{"node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-d9d359d8", "type": "main", "index": 0}], [{"node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-47cf8dd7", "type": "main", "index": 0}], [{"node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-8dc89218", "type": "main", "index": 0}], [{"node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-13102fda", "type": "main", "index": 0}], [{"node": "error-handler-f861c4eb-3d4f-4253-810f-8032602f079b-492daaa9", "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-5d5966b0", "type": "main", "index": 0}], [{"node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-2507cca2", "type": "main", "index": 0}], [{"node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-36ddd118", "type": "main", "index": 0}], [{"node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-bce8b5c8", "type": "main", "index": 0}], [{"node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-692db215", "type": "main", "index": 0}], [{"node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-8e68b320", "type": "main", "index": 0}], [{"node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-69e1499e", "type": "main", "index": 0}], [{"node": "error-handler-3c19f931-9ca0-4bd7-b4eb-1628d89bbba1-8d82b270", "type": "main", "index": 0}]]}, "da3a9188-028d-4c75-b23f-5f1f4e50784c": {"main": [[{"node": "error-handler-da3a9188-028d-4c75-b23f-5f1f4e50784c-068c9100", "type": "main", "index": 0}]]}, "36c826e5-eacd-43ad-b663-4d788005e61a": {"main": [[{"node": "error-handler-36c826e5-eacd-43ad-b663-4d788005e61a-5941e6ed", "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."}