Skip to main content
Dataset Building agents create structured datasets from data scattered across the web. Describe what you’re looking for, define the row shape, and the agent discovers, verifies, and structures the results: no scraper to build, no site list to maintain, no deduplication pipeline. Every cell arrives cited.

Example Request

The business-discovery template is tuned for local-business datasets: verified addresses, phone numbers, and ratings:

Example Response

The result is type: "json": an array of rows matching the template’s schema, each with a cited source:
Each value carries a per-path claim in the trust report:
The dataset gets a deterministic overall grade, the lower of its cell fill rate and its per-claim trust ratio, stated in the run’s trust reasoning: “High confidence - cells fill rate is 96% and trust per claim ratio is 91%”. A verifiably empty cell (a business with no website) comes back as a cited null graded high: verified absence.

Custom output schema

Define your own row shape on the agent or per run. Filters in the input are treated as hard constraints. The company-discovery template’s first goal is “Treat user filters (location, vertical, size, funding) as hard constraints, never dilute to inflate volume.” Schemas must follow the hard limits below. Invalid schemas return 422 at request time.

Output schema limits

Allowed roots

The root must be one of:
  • An object with non-empty properties
  • An array of objects (items.type must be "object" with properties)
Omit output_schema (or pass {}) to let the generator infer the shape from the prompt.

Supported examples

Object root with nullable fields:
Array root (table shape):
Nested array of objects:

Rejected patterns

The API returns 422 when a schema violates these hard limits: Move validation constraints into field description text instead of JSON Schema keywords. Unsupported examples:

Still accepted

These are not hard-failed:
  • required arrays on objects
  • additionalProperties: false
  • Nested anyOf / oneOf for nullability (not at the root)
  • Enums within the size limits above
  • Nested arrays of objects or primitives under an object root

Field maps are invalid

Each field must be a JSON Schema subschema, not a bare type string:
Not:

Agent generation behavior

When creating or updating a Web Search Agent, the design path can infer and sanitize a schema from your goals and template. The generator strips unsupported keywords and fixes common mistakes (such as standalone null) before validation. When you pass an explicit output_schema on create, update, or run, it is validated immediately. Fix the schema and retry on 422.

Common validation errors

Example 422 response:

Run it on a schedule

A dataset run produces a snapshot. To turn it into a recurring feed, point a Job at the same agent with a list of inputs (one per market, category, or account), and Nimble runs it on a schedule and delivers results to S3, Databricks, or your warehouse.

Templates

Web Search Agents overview

Research, Enrichment, and Dataset Building side by side