{ "name": "Turn a website section into an Elementor template with MiroMiro", "nodes": [ { "id": "note", "name": "About this workflow", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [ -460, -120 ], "parameters": { "content": "## Turn a website section into an Elementor template\nPick a website and a section in **Settings**: `hero`, `header`, `features`, `pricing`, `testimonials`, `faq`, `cta` or `footer`.\n\nDownload the .json from **Save the template**, then in WordPress: *Templates > Saved Templates > Import Templates*. 10 credits.\n\n**Setup (1 minute)**\n1. Get a free MiroMiro API key (300 credits a month, no card): https://miromiro.app/api/onboarding\n2. Open any MiroMiro node > Credential > Create new, paste the key.\n3. Change the website in **Settings**, then click **Execute workflow**.", "height": 300, "width": 760, "color": 7 } }, { "id": "run", "name": "Run", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ -420, 300 ], "parameters": {} }, { "id": "settings", "name": "Settings", "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ -200, 300 ], "parameters": { "assignments": { "assignments": [ { "id": "s0", "name": "website", "value": "https://stripe.com", "type": "string" }, { "id": "s1", "name": "section", "value": "hero", "type": "string" } ] }, "options": {} } }, { "id": "b1", "name": "Turn the section into Elementor", "type": "n8n-nodes-miromiro.miroMiro", "typeVersion": 1, "position": [ 20, 300 ], "credentials": { "miroMiroApi": { "id": "", "name": "MiroMiro API" } }, "parameters": { "resource": "website", "operation": "code", "url": "={{ $json.website }}", "framework": "elementor", "section": "={{ $json.section }}", "codeOptions": {} } }, { "id": "b2", "name": "Save the template", "type": "n8n-nodes-base.convertToFile", "typeVersion": 1.1, "position": [ 240, 300 ], "parameters": { "operation": "toText", "sourceProperty": "code", "options": { "fileName": "={{ String($('Settings').first().json.website).split('/')[2].replace(/^www\\./, '') }}-{{ $('Settings').first().json.section }}-elementor.json" } } } ], "connections": { "Run": { "main": [ [ { "node": "Settings", "type": "main", "index": 0 } ] ] }, "Settings": { "main": [ [ { "node": "Turn the section into Elementor", "type": "main", "index": 0 } ] ] }, "Turn the section into Elementor": { "main": [ [ { "node": "Save the template", "type": "main", "index": 0 } ] ] } }, "settings": { "executionOrder": "v1" } }