Inline generated form

When the agent needs input, it renders the specific fields it needs instead of asking in prose.

Ticket #4821Dana Ortiz · Duplicate charge
Refund Dana for the double charge.
M
Milky

I found the duplicate, invoice #8822. I need three details before I create the refund:

Refund details refunds.create
$
Up to $1,240.00, the amount of invoice #8822
Refund to

Try it: Try an amount over $1,240 to see it checked against the refund schema, then submit. Milky gets typed values back, not a paragraph to parse.

In the wild

How one product ships this pattern. Click a screenshot to enlarge it.

Lovable chat reply with a 'Questions' card asking 'What level of complexity are you looking for?' with three radio options, an Other field, and Back/Next buttons
Lovable
Before building, the agent renders a stepped question card with radio options and a free-text 'Other' field instead of asking in prose.
Source: Lovable blog ↗

When to use

Mid-task gaps: missing parameters, ambiguous choices, required confirmations.

Seen in

Agent-rendered parameter forms, booking confirmations in chat, clarifying-question cards.

For engineers

Validate against the tool schema client-side; return structured values, not re-parsed prose.

Build prompt

A neutral, component-only prompt for a coding agent. Edit the stack block or anything else to fit your project, then copy it.

Download this prompt as Markdown, or every prompt as JSON for an agent.

Critique checklist for generative ui

0 of 4 checked

These questions apply to every pattern in this family. Ticks are saved in this browser.