Skip to main content

Bulk test orders

Fills a test environment with realistic random orders so you have data to demo, test and train with. It picks random contacts and products from your own catalogue, so the orders look like real ones.

Runs: Outside Propeller · Trigger: Manual · Difficulty: Medium

Test environments only

This workflow creates real orders through the API. Run it only against a test or staging environment, never against production.

What you need

  • An n8n account. See Set up n8n.
  • A Propeller API key for your test environment.

How it works

The workflow fetches random pages of contacts and products, keeps contacts whose company has both a delivery and an invoice address and keeps products with a valid price. It then generates up to 100 orders, each for a random contact with 1 to 10 random products in random quantities. Each order gets a random status (new, confirmed or validated). Orders are created through the same tender flow the webshop uses, in batches of 10.

Install it

  1. In n8n, import the downloaded JSON as a new workflow.
  2. Create a header auth credential with the API key of your test environment and select it on every GraphQL node.
  3. Check that the endpoint URLs on the GraphQL nodes point to your test environment.
  4. Click Execute workflow to run it. The workflow starts with a manual trigger, so nothing runs unless you start it yourself. Replace the trigger with a Schedule trigger if you want fresh data on a recurring basis.

Make it yours

  • Number of orders: change targetOrderCount in the Generate 3-10 Random Orders node.
  • Order sizes: the product count (1 to 10) and quantities (1 to 5) are set in the same node.
  • Statuses: the random status list lives in the Format Products node.

Use it outside n8n

Copy the JSON into an AI assistant and follow Adjust a workflow with an AI assistant.

Good to know

The workflows and agents in the Agent Hub are free to use and adapt. They are examples, not supported product features, so test them in a staging environment and check the results before using them in production.