skills/parallel-web/references/data-enrichment.md
Use when the user already has rows or entities and wants the same web-sourced fields added to each one. Use FindAll when the entities themselves must be discovered.
Tell the user that runtime and cost grow with the row count and processor tier before starting a large job.
Let the CLI suggest output columns:
parallel-cli enrich suggest "Find the CEO and annual revenue" --json
For reproducible work, review and pass explicit source and enriched columns. Build these JSON values with a serializer or a reviewed config file; never concatenate raw user text into shell source.
parallel-cli enrich run \
--data '[{"company":"Google"},{"company":"Apple"}]' \
--target "enriched.csv" \
--intent "Find the CEO" \
--json
CSV:
parallel-cli enrich run \
--source-type csv \
--source "companies.csv" \
--target "enriched.csv" \
--source-columns '[{"name":"company","description":"Company name"}]' \
--intent "Find the CEO and annual revenue"
JSON with explicit output columns:
parallel-cli enrich run \
--source-type json \
--source "companies.json" \
--target "enriched.json" \
--source-columns '[{"name":"company","description":"Company name"}]' \
--enriched-columns '[{"name":"ceo","description":"Current CEO","type":"str"}]'
The CLI also accepts a YAML configuration file:
parallel-cli enrich run "config.yaml"
Use --dry-run to inspect a planned CLI-argument run without making API calls.
Add --no-wait --json for a large job:
parallel-cli enrich run "config.yaml" --no-wait --json
Record the returned task-group ID and validate that it starts with tgrp_ and contains no whitespace or shell metacharacters.
parallel-cli enrich status "tgrp_xxx" --json
parallel-cli enrich poll "tgrp_xxx" \
--timeout 540 \
-o "enrichment-result.json" \
--json
Poll at most three times. If the task remains incomplete after 27 minutes total, stop and report its status and ID.
For a direct follow-up to a previous research or enrichment task, pass the exact returned interaction ID:
parallel-cli enrich run \
--data '[{"company":"Example Corp"}]' \
--target "follow-up.csv" \
--intent "Add the requested follow-up fields" \
--previous-interaction-id "<returned-interaction-id>" \
--json
Do not reuse interaction context across unrelated topics or users.
After completion: