AI-Powered Form Filling Automation

Intelligently fill out forms from natural language or unstructured data using AI

AI-Powered Form Filling Automation demo
TypeScript
Source code
npx create-browser-app --template dynamic-form-filling

Automate complex form submissions with natural language input

Automatically fill out web forms using natural language or unstructured data without manual field mapping. The AI agent extracts relevant form questions and fills fields with the closest matching options for radio buttons, dropdowns, and checkboxes, even when the wording doesn’t exactly match. Built with Stagehand Agent and Browserbase for reliable, autonomous form completion.

Steps

  1. Start a Browserbase session with Stagehand and open the target form URL
  2. Create a Stagehand Agent with a system prompt tailored for form filling
  3. Provide natural language details (e.g., trip description) as the instruction input
  4. Agent fills all required fields, selecting the closest option for radio buttons, dropdowns, and checkboxes
  5. Clicks submit to complete the form submission