Describe a form in plain words and get a working, validated form plus the Zod schema behind it. The model returns a typed field list, so no generated code is ever executed.
Use this when you are prototyping forms, such as surveys or admin inputs, and want a validated Zod schema generated from a description.
Similar patterns, and when each one is the better fit.

AI Profile Enrichment FormUse this when users fill out a sparse profile form and you want AI to stream in the missing fields for them to review before accepting.
AI Wizard Brand StrategyUse this when you are building a brand discovery or marketing onboarding flow where AI interviews gate progress and end in a written strategy.
JSON Render ReactUse this when you want to define your own small component catalog and render streamed JSON specs with the base @json-render React renderer.
HIL Inquire Text InputUse this when your agent needs to pause mid-loop, ask the user an open-ended question, and resume once they type a free-text answer.Requirements, wiring steps, and what this pattern adds to your project.
Pick how you want to pull this pattern in. Then wire env vars and routes the same way.
Download → Next.js app
Use Download → Next.js app in the preview toolbar. You get a zip scaffold (Pro downloads rewrite preview `/view/.../api/*` paths to `/api/*` automatically).
Extract the zip and install dependencies
Unzip the archive, then run `pnpm install` (or npm / yarn) in the project folder.
Fill .env.local
The download includes .env.local placeholders when needed. Add real values for: AI_GATEWAY_API_KEY.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions in the generated project for your product.
Run the app and open the pattern route
Run `pnpm dev`, open the setup/checklist page if present, then navigate to the generated pattern route and verify responses.
AI_GATEWAY_API_KEYGet keyAI SDK APIs
generateObjectExternal services
app/page.tsxapp/layout.tsxapp/actions.tsxcomponents/autoform/index.tscomponents/autoform/types.tslib/form-spec.tslib/build-schema.tslib/schema-code.tslib/rate-limit.tsnpm packages
9
Registry components
app/actions.tsxServer action using generateObject() to turn a form description into a typed field list. Returns a result union (form, not-a-form, rate-limited, failed) instead of throwing, and never returns code.
lib/form-spec.tsResponse schema (formResponseSchema) the model must fill, plus normalizeForm(), which cleans keys, choices and bounds before anything is rendered.
lib/build-schema.tsbuildSchema() turns the field list into a Zod schema with AutoForm labels and renderers. This replaces evaluating model-written code.
Describe a form in plain words and get a working, validated form plus the Zod schema behind it. The model returns a typed field list, so no generated code is ever executed.
Use this when you are prototyping forms, such as surveys or admin inputs, and want a validated Zod schema generated from a description.
Similar patterns, and when each one is the better fit.

AI Profile Enrichment FormUse this when users fill out a sparse profile form and you want AI to stream in the missing fields for them to review before accepting.
AI Wizard Brand StrategyUse this when you are building a brand discovery or marketing onboarding flow where AI interviews gate progress and end in a written strategy.
JSON Render ReactUse this when you want to define your own small component catalog and render streamed JSON specs with the base @json-render React renderer.
HIL Inquire Text InputUse this when your agent needs to pause mid-loop, ask the user an open-ended question, and resume once they type a free-text answer.Requirements, wiring steps, and what this pattern adds to your project.
Pick how you want to pull this pattern in. Then wire env vars and routes the same way.
Download → Next.js app
Use Download → Next.js app in the preview toolbar. You get a zip scaffold (Pro downloads rewrite preview `/view/.../api/*` paths to `/api/*` automatically).
Extract the zip and install dependencies
Unzip the archive, then run `pnpm install` (or npm / yarn) in the project folder.
Fill .env.local
The download includes .env.local placeholders when needed. Add real values for: AI_GATEWAY_API_KEY.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions in the generated project for your product.
Run the app and open the pattern route
Run `pnpm dev`, open the setup/checklist page if present, then navigate to the generated pattern route and verify responses.
AI_GATEWAY_API_KEYGet keyAI SDK APIs
generateObjectExternal services
app/page.tsxapp/layout.tsxapp/actions.tsxcomponents/autoform/index.tscomponents/autoform/types.tslib/form-spec.tslib/build-schema.tslib/schema-code.tslib/rate-limit.tsnpm packages
9
Registry components
app/actions.tsxServer action using generateObject() to turn a form description into a typed field list. Returns a result union (form, not-a-form, rate-limited, failed) instead of throwing, and never returns code.
lib/form-spec.tsResponse schema (formResponseSchema) the model must fill, plus normalizeForm(), which cleans keys, choices and bounds before anything is rendered.
lib/build-schema.tsbuildSchema() turns the field list into a Zod schema with AutoForm labels and renderers. This replaces evaluating model-written code.
Loading preview…
Early-bird pricing — limited time


Open on desktop for the interactive preview.
Describe a form in plain words and get a working, validated form plus the Zod schema behind it. The model returns a typed field list, so no generated code is ever executed.
Loading preview…
Early-bird pricing — limited time


Open on desktop for the interactive preview.
Describe a form in plain words and get a working, validated form plus the Zod schema behind it. The model returns a typed field list, so no generated code is ever executed.