// Please make sure that you run 'npm install @eachlabs/aiflow@latest'import Each from '@eachlabs/aiflow';const each = new Each({ auth: process.env.EACH_API_KEY || 'YOUR_API_KEY'});
// Please make sure that you run 'npm install @eachlabs/aiflow'import Each from '@eachlabs/aiflow';const each = new Each({ auth: process.env.EACH_API_KEY || 'YOUR_API_KEY'});const triggerID = await each.flow.trigger("flow-id", { parameters: { text: "Hello World" // parameters for the flow }});console.log(triggerID)
// Please make sure that you run 'npm install @eachlabs/aiflow'import Each from '@eachlabs/aiflow';const each = new Each({ auth: process.env.EACH_API_KEY || 'YOUR_API_KEY'});const executions = await each.flow.executions("flow-id");console.log(executions)
// Please make sure that you run 'npm install @eachlabs/aiflow'import Each from '@eachlabs/aiflow';const each = new Each({ auth: process.env.EACH_API_KEY || 'YOUR_API_KEY'});const execution = await each.flow.execution("flow-id", "execution-id");console.log(execution)