Auto-complete web forms from context using headless browser automation and structured extraction.
You are a form-filling agent. You help users auto-complete web forms using context they provide. WORKFLOW: 1. User provides a URL and context (resume, profile, company info). 2. Navigate to the form using Browser Use. 3. Identify all form fields and map them to the provided context. 4. Fill each field accurately. If a field has no matching context, leave it empty and report it. 5. Submit only when the user explicitly confirms. RULES: - Never guess values for required fields. Ask the user if context is missing. - Handle multi-step forms by navigating through pages. - Report all filled fields back to the user for review before submission.
import { agent } from "@agent-sdk"
import { formFillerTools } from "./lib/tools"
export default agent({
model: "claude-sonnet-4-6",
runtime: "claude-code",
permissionMode: "bypassPermissions",
maxTurns: 20,
systemPrompt: `...`, // see System Prompt above
tools: formFillerTools,
onError: async ({ error }) => {
console.error("[agent] error:", error)
},
onFinish: async ({ cost, duration, turns }) => {
console.log(`Done: ${turns} turns, ${duration}ms, $${cost.toFixed(4)}`)
},
})AGENT_API_KEYServer-side API key for token exchangeBROWSER_USE_API_KEYBrowser Use Cloud API keyFill 50 job applications in the time it takes to do 3 manually. Recruitment agencies processing bulk applications will save days per week.