AutomationFlows β€Ί General β€Ί Generate Random Mock Data with No Code and Zero Dependencies

Generate Random Mock Data with No Code and Zero Dependencies

ByEduard @eduardβœ“ on n8n.io

This beginner-friendly workflow allows you to generate random mock data effortlessly, without any programming or external dependencies. πŸš€

Event triggerβ˜…β˜…β˜…β˜…β˜† complexity15 nodes
General Trigger: Event Nodes: 15 Complexity: β˜…β˜…β˜…β˜…β˜† Added:

This workflow corresponds to n8n.io template #1802 β€” we link there as the canonical source.

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
{
  "id": "sNOCfwePN66wsyU7",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Random Data Generator",
  "tags": [],
  "nodes": [
    {
      "id": "c00b9aef-a308-430c-9d89-09d29f9dd7ea",
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -300,
        780
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5bce473f-7e3a-4d54-8030-14c3ab68546e",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        -20,
        780
      ],
      "parameters": {
        "jsCode": "return [\n  {firsname:\"Name 1\",lastname:\"Surname 1\", occupation:\"Job 1\"},\n  {firsname:\"Name 2\",lastname:\"Surname 2\", occupation:\"Job 2\"},\n  {firsname:\"Name 3\",lastname:\"Surname 3\", occupation:\"Job 3\"}\n];"
      },
      "typeVersion": 2
    },
    {
      "id": "a7562be8-ca09-46c9-88ea-c82d41cee667",
      "name": "Firstname1",
      "type": "n8n-nodes-base.set",
      "position": [
        340,
        420
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "516e4f30-bfe7-4891-8ff5-cd0ce70c5419",
              "name": "firsname",
              "type": "string",
              "value": "={{ $json[\"firsname\"] }}"
            }
          ]
        }
      },
      "typeVersion": 3.3
    },
    {
      "id": "6e23cc25-00b2-4ce3-ab94-dbf7141c1cb6",
      "name": "Lastname",
      "type": "n8n-nodes-base.set",
      "position": [
        340,
        600
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "68d28ab6-d7c5-4110-86a2-a098443c64c4",
              "name": "lastname",
              "type": "string",
              "value": "={{ $json[\"lastname\"] }}"
            }
          ]
        }
      },
      "typeVersion": 3.3
    },
    {
      "id": "984d93b7-af7c-4545-bebe-baf6b4795954",
      "name": "Occupation",
      "type": "n8n-nodes-base.set",
      "position": [
        340,
        760
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "e649e881-cc76-494e-adc2-51865ed87a68",
              "name": "occupation",
              "type": "string",
              "value": "={{ $json[\"occupation\"] }}"
            }
          ]
        }
      },
      "typeVersion": 3.3
    },
    {
      "id": "f957e7a5-7521-4408-adc7-eb853b05465f",
      "name": "Random",
      "type": "n8n-nodes-base.sort",
      "position": [
        980,
        600
      ],
      "parameters": {
        "type": "random"
      },
      "typeVersion": 1
    },
    {
      "id": "537a21dd-81a5-47f6-9cc8-41d838fd72bb",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        1160,
        600
      ],
      "parameters": {
        "maxItems": 10
      },
      "typeVersion": 1
    },
    {
      "id": "bdfcfd8e-273d-4473-b442-47eb206d3e4d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        120
      ],
      "parameters": {
        "color": 5,
        "width": 510.4010876954434,
        "height": 486.6950298104135,
        "content": "## Random data generator\n### Beginner-level workflow, revamped version\n### Zero coding and no external dependencies\nSometimes you need mock data to test your workflows. Here's the most simple and bullet-proof example: no coding and zero external dependencies.\n\n*Click on the image to watch the full tutorial*\n[![Click to watch the video](https://i.ytimg.com/vi/3AVJFk3uXBg/hqdefault.jpg)](https://www.youtube.com/watch?v=3AVJFk3uXBg)"
      },
      "typeVersion": 1
    },
    {
      "id": "fb58a167-f5ce-48c8-b95b-37075e714fcf",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        260,
        346.1590754588717
      ],
      "parameters": {
        "width": 639.6193065941536,
        "height": 584.745071380013,
        "content": "### These nodes create a combination of all possible values.\nWatch the YouTube video for details"
      },
      "typeVersion": 1
    },
    {
      "id": "951d6efe-95d1-4c26-bad9-10aaa796d3a0",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        940,
        536.5601631543165
      ],
      "parameters": {
        "width": 362.039428959891,
        "height": 222.21617946974848,
        "content": "### Sort and limit the number of output items"
      },
      "typeVersion": 1
    },
    {
      "id": "a883e636-2fc8-4e54-8936-de4a3bb0219b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1360,
        487.5186947654655
      ],
      "parameters": {
        "width": 277.09041468388835,
        "height": 265.28891910265116,
        "content": "### You can do some additional post-processing here\nFor example, derive Email address based on the user name and surname"
      },
      "typeVersion": 1
    },
    {
      "id": "1847465d-4206-403a-abc5-63a89d0b8f76",
      "name": "Email",
      "type": "n8n-nodes-base.set",
      "position": [
        1440,
        600
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "be85a167-8fdb-476d-a1e6-af91546a75be",
              "name": "email",
              "type": "string",
              "value": "={{$json[\"firsname\"].replaceAll(\" \",\"\")}}.{{$json[\"lastname\"].replaceAll(\" \",\"\")}}@gmail.com"
            }
          ]
        },
        "includeOtherFields": true
      },
      "typeVersion": 3.3
    },
    {
      "id": "80863d62-04bf-4467-869c-5144ed2af722",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        620
      ],
      "parameters": {
        "width": 356.0571040108765,
        "height": 310.6267881974685,
        "content": "## Create source values for for the random generator\n\n**PRO TIP**: you can use [Ask AI](https://docs.n8n.io/code/ai-code/) in the cloud version to generate mock values once and then re-use them."
      },
      "typeVersion": 1
    },
    {
      "id": "7e577e25-6bf3-40c8-bf52-ce1ba141698f",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        560,
        520
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combineBy": "combineAll"
      },
      "typeVersion": 3
    },
    {
      "id": "69156809-40f3-4d59-ab47-8621f5bcac0e",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        760,
        600
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combineBy": "combineAll"
      },
      "typeVersion": 3
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "14201eec-a3e3-4e67-809c-113a6aa7849d",
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Lastname",
            "type": "main",
            "index": 0
          },
          {
            "node": "Firstname1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Occupation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Random",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Random": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lastname": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Firstname1": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Occupation": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Code",
            "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

This beginner-friendly workflow allows you to generate random mock data effortlessly, without any programming or external dependencies. πŸš€

Source: https://n8n.io/workflows/1802/ β€” 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

Blotato. Uses googleSheets, @blotato/n8n-nodes-blotato. Event-driven trigger; 65 nodes.

Google Sheets, @Blotato/N8N Nodes Blotato
General

This template is a hands-on, practical exam designed to help you master n8n Expressionsβ€”the key to accessing and manipulating data in your workflows.

Stop And Error
General

This template is a hands-on, practical exam designed to test your understanding of the fundamental JSON data types. It's the perfect way to solidify your knowledge after learning the basics.

Stop And Error
General

Agendamiento. Uses n8n-nodes-evolution-api, redis, dataTable, executeWorkflowTrigger. Event-driven trigger; 60 nodes.

N8N Nodes Evolution Api, Redis, Data Table +2
General

Kv Cloudflare Key Value Database Full Api Integration Workflow. Uses stickyNote, httpRequest, manualTrigger. Event-driven trigger; 47 nodes.

HTTP Request