Logo

AI Form Assistant

Auto Fill Form Button

Single Field Form

Code at docs/src/app/examples/assistant/single-field-assistant/page.tsx

Multi Field Form

Code at docs/src/app/examples/assistant/multi-field-assistant/page.tsx

This form uses the useFormAssistant hook to enable the GPT-4 autofill functionality in two ways:

  1. The "magic wand" button on description field can enhance whatever text you put there.
  2. The "Autofill missing with GPT-4" button will fill all the missing fields in the form.

Generate Form Button

Code at docs/src/app/examples/assistant/gen-with-assistant/page.tsx

This form combines useGeneratedFormSchema with useFormAssistant hooks to generate a form from content + prompt, and then support GPT-4 autofill on it.