{ "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' + e + ' | ').join('\\n')}\n
---|
' + e.json[ee] + ' | ').join('\\n') + '