Example Request
Thebusiness-discovery template is tuned for local-business datasets: verified addresses, phone numbers, and ratings:
Example Response
The result istype: "json": an array of rows matching the template’s schema, each with a cited source:
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. Thecompany-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.typemust be"object"withproperties)
output_schema (or pass {}) to let the generator infer the shape from the prompt.
Supported examples
Object root with nullable fields: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:requiredarrays on objectsadditionalProperties: false- Nested
anyOf/oneOffor 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: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 standalonenull) 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