Skip to main content
Human guide: task steps and agent prompt → A Play is reusable logic; a run is one execution with its own input and result. Start with the selected Play and prepared CSV. Review the sample and available usage estimate before starting; a run can spend Deepline credits. The dashboard, CLI, and SDK use the same run API. A run started by your agent also appears in the dashboard, and you can inspect a dashboard run by its ID.

In the web app

  1. Open the selected Play from Tools > Prebuilt plays, or find a saved Play in All plays. Check the workspace.
  2. Open the start control above the steps, labeled Run here or Start when a trigger is configured. Choose Run here from its menu.
  3. Fill in required fields or attach the sample CSV. Check the inputs, then select Run.
  4. Inspect the selected run’s status, results, and errors. Return through its run history or Recent runs.
Open a run record to inspect its output. For datasets that run wrote, its Download … CSV controls export that run’s rows. The CLI below also exports a specific saved run and dataset.

Run with the CLI

Use the reference and column mappings you checked in the preceding guides. For example, this batch Play accepts first name, last name, and company domain:
The CLI waits by default. --run-id-file saves the accepted run ID immediately, before waiting finishes; its destination must not already exist. Preserve the returned run.id and dashboardUrl. Use --no-wait if your caller needs to return immediately and inspect the run later. For single-record Plays, supply the described fields with --input instead. For a local authored Play, check the file before running it:

Run a short snippet inline

-e accepts the body of a Play function. The CLI supplies the deepline import, and input contains the object passed through --input:
This starts a remote run, rather than a local-only preview. The CLI temporarily writes .inline.play.ts in the current folder, refuses to overwrite an existing file, and removes its temporary file afterward. Relative imports and file paths resolve from that folder. Use a saved .play.ts file when the logic needs review or reuse; a snippet that calls providers can spend Deepline credits.

Inspect and export an existing run

Use the saved run ID to resume inspection. If you lost it, use deepline runs list --play <play-name> --json and select the intended execution. Do not start another run merely to recover a result.
result.rows is an example path. Read the run’s dataset paths and use the matching command in actions.exportDatasetCmds. Dataset previews are samples; export reads the full retained dataset without executing the Play again. For a scalar result marked available_in_full, use runs get --full. That option does not replace dataset export. Review status, input identifiers, output, and errors against your acceptance rule. A completed run can contain no matches or unresolved rows. An active run’s export is partial; inspect its status before treating counts as final. Use Run logs and events to investigate execution failures.
This single-record example persists job.id before waiting. A local timeout does not cancel the remote run. Production Play integration explains how to resume that run and reconcile destination writes.
Use deepline.runPlay(...) with a stable call key and a statically resolvable scalar child reference. Children that use CSV, datasets, event waits, or explicit runtime timeouts need a top-level run. Use deepline.tools.execute(...) for one provider-backed operation. Build a Play explains the boundary and provides authoring examples.
Use HTTP for a non-TypeScript service, notebook, or scheduler:
Persist the response’s run.id; the TypeScript SDK exposes it as job.id. Call Plays from Python or HTTP covers polling, and the API reference defines the endpoint contract.
Keep the run ID and export together. If a response is lost or waiting stops, inspect that run before submitting another execution. Exporting saved rows does not repeat provider work.
Next, Visualize a saved result from this run’s output.