draft_import_mapping
WS3.5c: AI drafts the mapping; determinism executes it. Send up to 10 sample records from an export (column → string cell) and get back a DRAFT mapping template for import_households' template + records path. Three deterministic gates run before anything returns: strict JSON, the transcription guard (a numeric const anywhere in the draft is rejected — numbers bind to columns, never to values a model wrote), and the real import dry-run over your sample. Nothing is written. Review the template and the unmappedColumns honesty list, then run import_households yourself with dryRun: true over the full export.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Context for the draft (what the export is, quirks) | |
| api_key | No | Worthune API key (wk_…) | |
| sampleRecords | Yes | 1-10 sample records, column → string cell |