Form Automation with OpenClaw
Fill forms, submit data, and automate multi-step workflows
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.
Before starting:
Start with a simple form fill request:
"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.
Automate multi-step flows (e.g. sign-up wizards):
"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.
Fill multiple forms from a data source:
"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.
Handle validation errors and retries:
"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"
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.