Form Automation with OpenClaw

Fill forms, submit data, and automate multi-step workflows

In this guide you'll learn form automation with OpenClaw—filling forms, submitting data, multi-step sign-ups, and batch form entry. Plan for about 25–35 minutes.

What You'll Build

  • Automated form filling workflows
  • Multi-step sign-up and registration flows
  • Batch data entry from spreadsheets or JSON
  • Form validation and error handling
  • Reusable patterns for common form types

Prerequisites

Before starting:

⚠️ Important: Respect website terms of service. Automating login or sign-up on sites that prohibit it may violate ToS. Use form automation for workflows you're authorized to automate.

Step 1: Basic Form Filling

Start with a simple form fill request:

Fill a contact form
"Go to https://example.com/contact and fill the form:
- Name: John Smith
- Email: john@example.com
- Message: Hello, I'm interested in your product.
Then click Submit."

OpenClaw navigates, locates fields (by label, placeholder, or selector), fills them, and submits. The agent uses vision and DOM access to handle varied form layouts.

Step 2: Multi-Step Forms

Automate multi-step flows (e.g. sign-up wizards):

Multi-step sign-up
"Go to https://example.com/signup and complete the sign-up:
Step 1: Enter email and password (from credentials.json)
Step 2: Fill profile (name, company, role)
Step 3: Select plan and payment
After each step, click Next. On the final step, submit.
Save a screenshot of the confirmation page to signup-proof.png"

Break complex flows into explicit steps. OpenClaw handles waits, validation messages, and captchas where it can—for CAPTCHAs, you may need human-in-the-loop or a supported provider.

Step 3: Batch Form Entry

Fill multiple forms from a data source:

Batch entry from CSV
"Read entries from ~/data/contacts.csv. For each row:
1. Go to https://example.com/add-contact
2. Fill: name, email, phone from the row
3. Submit
4. Wait 2 seconds before next
Log any errors to form-errors.txt"

Use reasonable delays between submissions. For high volume, consider rate limits and ToS.

Step 4: Form Validation Handling

Handle validation errors and retries:

Retry on validation error
"Fill the registration form. If you see a validation error (red text, 'required', 'invalid'):
- Read the error message
- Correct the field
- Try again (up to 2 retries)
- If still failing, report the field and error to me"

Related Tutorials

Browser Automation covers Chrome setup and basic navigation. Web Scraping covers data extraction. Combine form automation with cron and webhooks for scheduled or event-driven flows.