1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "systemName": "Automated palletising cell",
12 "systemDescription": "A six-axis industrial robot picks cartons from an infeed conveyor and stacks them on pallets in a fenced cell. A cell PLC sequences the robot and conveyors. Workers exchange full pallets through a gate guarded by a light curtain; the curtain is muted while the robot works on the opposite pallet station. The robot controller enforces speed limits configured by an integrator. An operator HMI outside the fence starts, stops and resets the cell.",
13 "operatingEnvironment": "Warehouse floor, two shifts, forklift traffic outside the fence, cleaning crew at night.",
14 "intendedUse": "Unattended palletising; trained workers enter only to exchange pallets or clear jams.",
15 "boundaries": "Robot, gripper, cell PLC, light curtain, fence and HMI. The upstream conveyor line and the warehouse management system are outside."
16};
17
18
19const run = await client.actor("vwnb/wcgw-safety-engineer").call(input);
20
21
22console.log('Results from dataset');
23console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
24const { items } = await client.dataset(run.defaultDatasetId).listItems();
25items.forEach((item) => {
26 console.dir(item);
27});
28
29