Update My workflow 5.json
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"updatedAt": "2025-11-23T09:05:43.000Z",
|
||||
"updatedAt": "2025-11-30T10:35:51.000Z",
|
||||
"createdAt": "2025-11-21T10:47:00.974Z",
|
||||
"id": "gfx8s7OTuVkoPgLf",
|
||||
"name": "My workflow 5",
|
||||
@@ -7,57 +7,103 @@
|
||||
"isArchived": false,
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"parameters": {
|
||||
"httpMethod": "POST",
|
||||
"path": "n8n-test",
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.webhook",
|
||||
"typeVersion": 2.1,
|
||||
"position": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"id": "d03e6c29-dd54-4c2f-adac-5c26d9083197",
|
||||
"name": "When clicking ‘Execute workflow’"
|
||||
"id": "498b640c-6216-4d85-aa14-6734e41a3c5f",
|
||||
"name": "Webhook",
|
||||
"webhookId": "e47b8cb1-fba5-403d-8a9b-f64cd949ec77"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "runCustomScript",
|
||||
"scriptCode": "// 1. Wir erstellen eine leere Liste (\"Array\"), um die Logs zu sammeln\nconst collectedLogs = [];\n\n// 2. Wir sagen Puppeteer: \"Jedes Mal, wenn die Seite was loggt, pack es in unsere Liste\"\n$page.on('console', message => {\n // message.type() ist z.B. 'log', 'warning', 'error'\n // message.text() ist der eigentliche Text\n collectedLogs.push(`[${message.type()}] ${message.text()}`);\n});\n\n// Navigate to an IP lookup service\nawait $page.goto('https://httpbin.org/ip');\n\n// Extract the IP address from the page content\nconst ipData = await $page.evaluate(() => {\n const response = document.body.innerText;\n const parsed = JSON.parse(response);\n console.log(\"test\")\n return parsed.origin; // Extract the 'origin' field, which typically contains the IP address\n});\n\nconsole.log(\"Hello, world!\");\n\nconsole.log(\"IP Address\", ipData);\n\n// Return the result in the required format\nreturn [{ ip: ipData, ...$json }, ];",
|
||||
"options": {
|
||||
"launchArguments": {
|
||||
"args": [
|
||||
{
|
||||
"arg": "--no-sandbox"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
"schema": {
|
||||
"__rl": true,
|
||||
"value": "public",
|
||||
"mode": "list",
|
||||
"cachedResultName": "public"
|
||||
},
|
||||
"type": "CUSTOM.puppeteer",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
-64
|
||||
"table": {
|
||||
"__rl": true,
|
||||
"value": "worktime",
|
||||
"mode": "list",
|
||||
"cachedResultName": "worktime"
|
||||
},
|
||||
"columns": {
|
||||
"mappingMode": "defineBelow",
|
||||
"value": {
|
||||
"Bezeichnung": "Test"
|
||||
},
|
||||
"matchingColumns": [],
|
||||
"schema": [
|
||||
{
|
||||
"id": "ID",
|
||||
"displayName": "ID",
|
||||
"required": false,
|
||||
"defaultMatch": false,
|
||||
"display": true,
|
||||
"type": "number",
|
||||
"canBeUsedToMatch": true,
|
||||
"removed": true
|
||||
},
|
||||
{
|
||||
"id": "Bezeichnung",
|
||||
"displayName": "Bezeichnung",
|
||||
"required": false,
|
||||
"defaultMatch": false,
|
||||
"display": true,
|
||||
"type": "string",
|
||||
"canBeUsedToMatch": true
|
||||
},
|
||||
{
|
||||
"id": "created_ts",
|
||||
"displayName": "created_ts",
|
||||
"required": false,
|
||||
"defaultMatch": false,
|
||||
"display": true,
|
||||
"type": "time",
|
||||
"canBeUsedToMatch": true,
|
||||
"removed": true
|
||||
}
|
||||
],
|
||||
"id": "3cab4381-dd2c-44ec-b8da-8781539aa847",
|
||||
"name": "Puppeteer"
|
||||
"attemptToConvertTypes": false,
|
||||
"convertFieldsToString": false
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"options": {}
|
||||
},
|
||||
"type": "@n8n/n8n-nodes-langchain.agent",
|
||||
"typeVersion": 3,
|
||||
"type": "n8n-nodes-base.postgres",
|
||||
"typeVersion": 2.6,
|
||||
"position": [
|
||||
144,
|
||||
144
|
||||
208,
|
||||
0
|
||||
],
|
||||
"id": "5145064c-f4b3-495a-996e-82dbc9aae1b4",
|
||||
"name": "AI Agent"
|
||||
"id": "a43aa28a-e161-4867-9035-6231b6c7d57c",
|
||||
"name": "Insert rows in a table",
|
||||
"credentials": {
|
||||
"postgres": {
|
||||
"id": "KfuCkzCoRyZId8cM",
|
||||
"name": "Postgress-Test"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"When clicking ‘Execute workflow’": {
|
||||
"Webhook": {
|
||||
"main": [
|
||||
[]
|
||||
[
|
||||
{
|
||||
"node": "Insert rows in a table",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -65,9 +111,11 @@
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"staticData": null,
|
||||
"meta": null,
|
||||
"meta": {
|
||||
"templateCredsSetupCompleted": true
|
||||
},
|
||||
"pinData": {},
|
||||
"versionId": "23b58b4b-bcf7-44ea-a03c-74045d5ad73f",
|
||||
"versionId": "6319e77d-f4b4-4954-91b9-979db7a9f99d",
|
||||
"triggerCount": 0,
|
||||
"shared": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user