The assistant can fill in a form, but only a person can submit it.

The problem

“Create an alert for late express orders” could end with the assistant calling an API and saying it’s done. Then you go and look to find out what it actually made.

The other common answer is a custom AI form in the chat panel. It’s a worse copy of the real form, with its own validation that doesn’t quite match.

What I concluded

Use the form you already have. The assistant opens it, fills it in and stops. You read it, change what’s wrong, and press Save.

A form opts in with one line next to the code that builds it:

const form = useForm({ schema: alertSchema, defaultValues });
usePublishForm("alert", form);   // the assistant can read and fill it

While the form is on screen, the agent sees its fields, current values and errors, and has a tool that writes into them. Try it in the demo above.

Telling its draft from your edits

The subtle part: the form tracks which fields you changed. It remembers what the assistant last wrote to each field. A field counts as yours only when it no longer matches that.

Without this, the assistant gets it wrong in both directions. It treats its own draft as your decision and won’t revise it, or it treats your edit as its draft and overwrites it. With it, “make the threshold stricter” changes the threshold and leaves the name you typed alone.

Rules

  • Fill, never submit. Values go in through the form’s own setters, so validation runs as if you’d typed them. Nothing saves until you press Save.
  • Private fields don’t exist. A field marked off-limits is left out of what the assistant sees and dropped from anything it tries to write.
  • No AI chrome. No “AI filled this” banners, no second panel. The form looks like the form.
  • A draft from chat opens the real form. If the form isn’t on screen, the assistant’s draft becomes a card. Clicking it opens the form with the values filled in, once. Open it again by hand later and it starts blank.

What you get

The form already knows its fields, its rules and what saving means. Publishing it gives the assistant all three without a second implementation, and the person is still the one who commits.

Part of Agent as broker.