Automate data entry into a web form from n8n

How to automate data entry into a web form from n8n: install the Chrome extension, click Build from description, tell the agent what you want, and follow its prompts. A working bot is built and tested in minutes.

Here is how the automation works. To automate data entry into a web form from n8n, add an HTTP Request node that posts the rows to https://lar.axiom.ai/api/v3/trigger. The cloud run takes them in a Receive data from another app step, a Loop through data step takes them one at a time, and inside the loop Enter text and Click element fill the form and submit it. Any n8n trigger will do: a form, a new sheet row, a schedule, another app, on n8n cloud or a self-hosted instance. It is the way in when the site has no API.

Author
Alex Barlow
Published

Build the n8n form filler from a description


Describe it and click the button: the agent builds and tests the form filler in your Chrome extension; the n8n workflow is set up in n8n, in the questions below. Triggering a run from n8n needs a plan that includes webhooks (pricing) and your API key (Authentication).

  1. Take the rows n8n sends me
  2. Open the contact form on my site
  3. Fill in each row's name, email and message
  4. Submit the form and go to the next row
Click to launch the Chrome extension. Not installed? You can create an account and try it free.Opens the Chrome extension. Free account to try.

You need an n8n account or instance with a trigger that holds the data to enter, the form's URL, and a login for the site if it needs one. Build and test the automation with the step's Test data first; add the HTTP Request node once the automation works. Name the automation something you can type exactly, such as Fill contact form.

Build the n8n form filler step by step


The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.

  • 1.0 Receive data from another app
    • Test data: a table in the shape n8n sends, one row per form submission
  • 2.0 Loop through data
    • repeats for every row in [webhook-data]
    • 2.1 Go to page
      • URL: the contact form's address
    • 2.2 Enter text
      • Select text field: the name field
      • Text: the first column of [webhook-data]
    • 2.3 Enter text
      • Select text field: the email field
      • Text: the second column of [webhook-data]
    • 2.4 Enter text
      • Select text field: the message box
      • Text: the third column of [webhook-data]
    • 2.5 Click element
      • Select: the form's submit button

Common questions about the n8n form filler


How do I start the form filler from n8n with the HTTP Request node?

With an HTTP Request node after the workflow's trigger:

  1. In n8n, create a workflow and add the trigger node that suits the job: Form Trigger for a form a colleague fills in, Google Sheets Trigger for a new row, Schedule Trigger, or any other.
  2. Add an HTTP Request node after it.
  3. Set Method to POST and URL to https://lar.axiom.ai/api/v3/trigger.
  4. Turn on Send Body, set Body Content Type to JSON and Specify Body to Using JSON.
  5. Paste the JSON below into JSON, with your own API key and automation name. Leave Authentication on None: the key goes in the body. Where the name, email and message go, use expressions that read them from the trigger node, in the column order your test data used.
  6. Save the workflow.
{
  "key": "your-api-key-here",
  "name": "Fill contact form",
  "data": [["{{ $json["Name"] }}", "{{ $json["Email"] }}", "{{ $json["Message"] }}"]]
}

Click Execute step on the node. The trigger answers straight away:

ResponseWhat it means
"OPEN LINK IN BROWSER" with a linkThe run started. Open the link to watch it live.
"status": "queued"No cloud slot is free yet. The run starts within a few minutes.
Task not foundname does not match the automation's name exactly, including case and spaces.
Invalid keykey is wrong. Copy the key again from the dashboard's Credentials and API key view.

Keep the key out of the node's JSON when you can: on a self-hosted instance, store it as an environment variable and reference it with {{ $env.AXIOM_KEY }}.

How do I send several rows to the form filler in one n8n call?

Put an Aggregate node before the HTTP Request node and build data with an expression such as {{ $json.rows.map(r => [r.name, r.email, r.message]) }}, one row per submission. One call is one run.

Why do the form fields fill with the wrong values from n8n?

The order of the expressions in the node's JSON and the test data's column order must match. Reorder the expressions in the body, or change which column each Enter text step reads.

How do I fill a dropdown, a checkbox or a date picker in the form?

Add the step for it inside the loop: Select list for a dropdown, Click element for a checkbox or radio button, and see tick checkboxes and choose options from a sheet for driving them from data.

Why does the run stop when one row fails?

A failed step ends the run. Wrap the form steps in a Try / Catch step to skip a bad row and carry on. When a run fails, hand it to the agent and it repairs the step.

How do I fill a web form on a site that needs a login?

Save the login in axiom.ai and add a Log in with credentials step before the loop, or give the agent the login when it asks.

Does it work from a self-hosted n8n behind a firewall?

Yes. The HTTP Request node calls out to axiom.ai, so the instance needs no inbound access. Only a workflow that receives data back from a run needs a reachable Webhook node; see trigger a web scraper from n8n.

Can I automate data entry into a web form from n8n without code?

Yes. The automation is built from the four lines above with no code, and the HTTP Request node is a standard n8n node; the only text you type is the JSON body and the expressions that read the trigger's fields.

Can I fill a web form from a Google Sheet without n8n?

Yes. A Read data from a Google Sheet step in place of Receive data from another app gives the loop the sheet's rows, and the rest of the automation is the same.

Can I fill the form from Zapier or Make instead of n8n?

Yes. See automate data entry into a web form from Zapier and automate data entry into a web form from Make. The n8n integration page covers both directions in overview.

Can I fill a Google Form this way?

Yes. To the bot a Google Form is a web form like any other: the same loop fills and submits it for every row n8n sends. See automate data entry into Google Forms for the question types it fills and the guides behind each.

Where do I get help?

Get in touch with support, or ask in the axiom.ai community.

Related guides