Your visitors are tired of typing into boxes. Let their AI do it. In Webflow you add one Code Embed element below your form and paste one script tag into it. Your form does not change. A button appears above it. It takes about five minutes.
Steps
- Open your site in the Webflow Designer. Open the page with your form.
- Find your form's id. Open the published page, right-click the form, and choose Inspect. Look at the line that starts with
<form. Copy the value ofid, for exampleemail-form. - Back in the Designer, add a Code Embed element to the page. Put it below the form block. Place it inside a section, container or div, so it has some space.
- Paste the snippet below into the embed. Change
your-form-idto the id from step 2. - Save and close the embed.
- Enter Preview mode, or publish the site. Look for the button above your form.
The snippet
<script src="https://aiformapi.com/agent-fill.js" data-form="#your-form-id"></script>For example, if the form has id="email-form", write data-form="#email-form".
If the page has only one form
Leave out data-form. The script then uses the one form on the page. Many sites have a second form, such as a newsletter box in the footer, so I suggest you always set data-form.
Check it
Press the button. The prompt must list your field labels. Give it to an AI, paste the answer back, and watch the boxes fill. Then press your own submit button.
What I checked
I read the Webflow University lesson for the steps above. I ran the snippet on a test page with the same shape: a form with an id, then the script below it. I did not run it on a live Webflow site.
Sources (read 2026-10-30)
Questions
Do I need to change my Webflow form?
No. You add a separate Code Embed element below the form. The form, its fields and where it sends data stay as they are. Your visitor presses the form's own submit button.
Why do I see no button in the Designer?
Webflow tells you to check a Code Embed in Preview mode. Open Preview, or open your published site, and look for the button above the form. If it is still missing, check the id in data-form.
Can the script fill a Webflow form that has a file upload?
It fills the text, choice and checkbox fields. It never reads file fields, password fields or hidden fields. The visitor adds the file by hand.