add_rows
Add records to a dataset with per-row validation. Invalid rows are reported with plain-language reasons so only valid data is saved.
Instructions
Add one or more rows to a dataset with per-row validation.
Use this to capture records the user dictates in conversation. Each row is an object mapping column names to values; every row is validated against the dataset schema and valid rows are saved while invalid rows are reported back with plain-language reasons. At most 100 rows per call - split larger batches.
Check describe_dataset first so column names, types, and constraints match exactly.
Args: dataset: Exact dataset name, e.g. "Candidates". rows: List of row objects, e.g. [{"name": "Asha", "phone": "9876543210"}].
Returns: {"ok": true, "dataset", "added": , "rejected": , "results": [{"row": , "status": "added", "row_id": ""} | {"row": , "status": "rejected", "errors": ["..."]}]} Relay every rejected row's errors to the user in plain language.
Example: add_rows(dataset="Candidates", rows=[ {"name": "Asha Verma", "phone": "9876543210", "stage": "Applied", "applied_on": "2026-08-30"} ])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| dataset | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||