{ "nodes": [ { "name": "Read from Google Sheets", "type": "n8n-nodes-base.googleSheets", "position": [ 460, 300 ], "parameters": { "options": {}, "sheetId": "1uFISwZJ1rzkOnOSNocX-_n-ASSAznWGdpcPK3_KCvVo" }, "credentials": { "googleSheetsOAuth2Api": { "id": "19", "name": "Tom's Google Sheets account" } }, "typeVersion": 2 }, { "name": "Respond to Webhook", "type": "n8n-nodes-base.respondToWebhook", "position": [ 900, 300 ], "parameters": { "options": { "responseHeaders": { "entries": [ { "name": "Content-Type", "value": "text/html; charset=UTF-8" } ] } }, "respondWith": "text", "responseBody": "={{$json[\"html\"]}}" }, "typeVersion": 1 }, { "name": "Build HTML", "type": "n8n-nodes-base.function", "position": [ 680, 300 ], "parameters": { "functionCode": "const columns = Object.keys(items[0].json);\n\nconst html = `\n\n\n \n \n \n HTML Table Example\n \n \n \n
\n
\n
\n

HTML Table Example

\n \n \n \n ${columns.map(e => '').join('\\n')}\n \n \n \n ${items.map(e => '' + columns.map(ee => '').join('\\n') + '').join('\\n')}\n \n
' + e + '
' + e.json[ee] + '
\n
\n
\n
\n \n \n\n`;\n\nreturn [{\n json: {\n html: html\n }\n}];" }, "typeVersion": 1 }, { "name": "Webhook", "type": "n8n-nodes-base.webhook", "position": [ 240, 300 ], "webhookId": "bbcd9487-54f9-449d-8246-49f3f61f44fc", "parameters": { "path": "bbcd9487-54f9-449d-8246-49f3f61f44fc", "options": {}, "responseMode": "responseNode" }, "typeVersion": 1 } ], "connections": { "Webhook": { "main": [ [ { "node": "Read from Google Sheets", "type": "main", "index": 0 } ] ] }, "Build HTML": { "main": [ [ { "node": "Respond to Webhook", "type": "main", "index": 0 } ] ] }, "Read from Google Sheets": { "main": [ [ { "node": "Build HTML", "type": "main", "index": 0 } ] ] } } }