AutomationFlowsGeneral › Execute n8n Instance with Custom Code

Execute n8n Instance with Custom Code

Original n8n title: Execute Instance

execute-instance. Uses start. Manual trigger; 3 nodes.

Manual trigger★★★★☆ complexity3 nodesStart
General Trigger: Manual Nodes: 3 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "execute-instance",
  "nodes": [
    {
      "id": "Start",
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "id": "Code",
      "parameters": {
        "functionCode": "// Echo input and mark success\nfor (const item of items) {\n  item.json.success = true;\n}\nreturn items;"
      },
      "name": "Code (placeholder)",
      "type": "n8n-nodes-base.code",
      "typeVersion": 1,
      "position": [
        500,
        300
      ],
      "notes": "Returns input with success flag"
    },
    {
      "id": "Output",
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "status",
              "value": "={{$json.success ? 'ok' : 'error'}}"
            }
          ]
        }
      },
      "name": "Format Result",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        760,
        300
      ],
      "notes": "Formats execution result"
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Code (placeholder)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code (placeholder)": {
      "main": [
        [
          {
            "node": "Format Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

execute-instance. Uses start. Manual trigger; 3 nodes.

Source: https://github.com/xXNewbiXx/OMNIKAI-Aufbau/blob/d65b1f197bee23a36c0652c3f15e3150197dbb13/flows/n8n/execute-instance.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

NextCloud:NextCloud:Folder:create move copy delete list:File:upload move copy download delete. Uses start, nextCloud, readBinaryFile. Manual trigger; 28 nodes.

Start, Next Cloud, Read Binary File
General

Transporeon - orders - step 3 - process single. Uses start, functionItem, httpRequest, microsoftSql. Manual trigger; 26 nodes.

Start, Function Item, HTTP Request +3
General

Orbit:Member:upsert get update delete getAll lookup:Note:create update getAll:Activity:create getAll:Post:create getAll delete. Uses start, orbit. Manual trigger; 16 nodes.

Start, Orbit
General

Raindrop:User:get:Collection:create get update getAll delete:Bookmark:create get update getAll delete:Tag:getAll delete. Uses start, raindrop. Manual trigger; 14 nodes.

Start, Raindrop
General

Backup workflows & credentials. Uses start, executeCommand. Manual trigger; 13 nodes.

Start, Execute Command