How to build a website with an enquiry form

A few fields and a submit button aren’t enough: the form needs somewhere to send the data. Here’s how to build the page, connect a destination and confirm a test enquiry arrives.

1. Build the page around one action

Say you’re building a tutoring website. Explain who you help and with what, then make the ‘Book a trial lesson’ button jump to the form. Tell visitors what happens next: ‘I’ll get in touch to find a time.’

For a first enquiry, ask for a name and one way to get in touch. Make the comment optional, label the fields and link to your privacy notice. Before going live, check what notice or consent requirements apply to you.

2. Set up where enquiries should arrive

Choose a place you’ll actually check: a form service dashboard, a CRM or a work inbox. If you don’t run a server, create a form in an external service and get its public HTTPS submission URL from its documentation. Give the editor that URL, the required submission method and the expected field names.

For a standard HTML form, set action to the URL and method to the required HTTP method. If the page submits with JavaScript, check that the service permits requests from your site’s domain. Keep secret keys out of AI prompts and page code. If your CRM requires a private key, use a server-side intermediary or a form service with a built-in integration.

3. Copy this AI prompt

Sign in to PRISMA VibeCode, choose Site and paste the prompt. Replace the bracketed details. If you don’t have a submission endpoint yet, build a draft but don’t accept real enquiries.

Build a one-page website for [service and audience]. Explain what I offer and make the ‘Send an enquiry’ button jump to the form. Include name, [phone or email], and an optional comment. Link to [privacy notice URL]. Submit to [public HTTPS endpoint] using the service’s instructions [method and field names]. Do not put secret keys in the page. Confirm success only after the service confirms receipt, or use its confirmation page. Explain how to try again if submission fails. Do not simulate submission if the endpoint is missing. Make the form easy to use on a phone.

In the preview, check that the button leads to the form and that you can’t submit it with a required field blank. Ask for a specific change if needed: ‘On mobile, show the error under the email field without changing the rest of the page.’

4. Publish and verify a test enquiry

Start collecting enquiries once a test arrives and you can see how to reply. Run the same check after changing the domain or submission settings.

How to build a website with AI in PRISMA VibeCode

Try it on your own project in PRISMA VibeCode

PRISMA загружается...

Анализ личности на базе AI

0%