Skip to main content
Human guide: task steps and agent prompt → A CSV can supply many records to one Play run. Choose a Play that accepts a CSV input, such as a batch prebuilt Play. Check its required columns, run a representative pilot, and export that run’s results.

Before you start

Use an authorized workspace and a CSV with a header. Preserve a stable source ID for every row. This guide uses names and company domains for a work-email batch. Other Plays can require different columns.

1. Inspect the file and contract

Compare required row fields with your actual headers. The current batch has canonical first_name, last_name, and domain inputs. Its default header aliases are uppercase. The run below maps lowercase headers explicitly. A check validates the Play without calling providers. It does not establish that the file contains the correct people or acceptable business data.

2. Select representative CSV records

Choose existing zero-based data-row indexes from the file summary and preview. Include easy, typical, and difficult cases. Do not split records with head or awk: a quoted CSV field can contain a newline. This Python example selects rows 0, 6, and 12. Change the indexes to three existing representative records before running it:
The pilot retains the source header and the three selected records. Embedded commas, quotes, and newlines remain CSV data rather than extra rows.
For input validation rules, use Validate incoming CSV files.

3. Run only the pilot

This command starts provider-backed work and can incur usage:
Save the returned run ID. Then inspect, export, and read usage for that run:
If several datasets exist, select a path returned by the run with --dataset. Do not start another run to recover an export.

4. Decide whether the pilot passed

Reconcile input IDs with accepted, unresolved, and failed outcomes. Check person identity, returned email, source, validation, and usage. Do not count completed requests as accepted contacts. Workspace balance changes can include other work. Use scoped billing evidence, not a balance subtraction, to attribute the pilot’s usage. Pending amounts are not final charges.

5. Expand the same reviewed contract

Use the same mappings with --csv leads.csv only after the pilot passes. A changed Play or acceptance rule needs another representative check. For custom file logic, use Build a Play. Ask your agent to explain missing row IDs or unexpected fields before scaling.

Combine company and person enrichment

For raw leads, normalize and resolve the company first, enrich the intended person second, then apply email or other field validation before downstream use. Keep these as separate steps in an authored Play, with the original source ID and a result or explicit exception for each step. This makes a company mismatch distinguishable from a person miss or verifier error. Review a pilot’s output columns, accepted rows, unresolved identities, and scoped usage before expanding it. Step separation helps diagnosis; it does not guarantee free reruns. Use company lookup and work-email enrichment for the maintained input contracts. Next, Run Plays and view results with your selected Play and prepared input.