The contact form — Lookis AI Prompts
Lookis has one form, on the Contact page under “Let’s Connect”. The prompts build it with its states — sending, “Thank you”, “Something went wrong”, each shown on the submit button — and a hidden field that catches spam bots.
| Form | Where | form it sends |
Content |
|---|---|---|---|
| Contact | The Contact page, in the card under the introduction | contact |
contactForm in src/content/pages/contact.json |
The fields
Section titled “The fields”| Field | Name it sends | Required |
|---|---|---|
| Your Name | name |
no |
| Your Email | email |
yes (a valid address) |
| Your Message | message |
yes |
The fields have no visible labels, as in the design: the placeholders show, and each field’s label is read to screen
readers. Labels, placeholders and the button texts are in the form’s fields, submit, success and error. An empty
name is sent empty.
Demo mode
Section titled “Demo mode”Until you connect a service, the form runs in demo mode: it waits a moment and says “Thank you”, but nothing is sent anywhere. Connect it before you publish.
Connecting a form service
Section titled “Connecting a form service”The form sends its fields as JSON to the address in an environment variable:
| Tool / framework | Variable |
|---|---|
| Lovable, Bolt, Replit (Vite) | VITE_FORM_ENDPOINT |
| v0 and other Next.js projects | NEXT_PUBLIC_FORM_ENDPOINT |
| Astro | PUBLIC_FORM_ENDPOINT |
- Create a form at a service that accepts JSON posts — for example Formspree or Basin — or a webhook in Zapier, Make or n8n.
- Copy the address it gives you (e.g.
https://formspree.io/f/abcdwxyz). - Set it as the variable above: in the tool’s settings for secrets or environment variables, or in a
.envfile. The address is built into the site, so build or publish again after you change it. - Send the form once and check that the message arrives.
Every submission also carries form (contact) and subject (the form’s notification: “New message from the Lookis
contact form”), which form services use as the email subject — change it to your own name. To send the messages to
several places — your inbox, a spreadsheet, a CRM — route them through a Zapier, Make or n8n webhook.
When the service answers with an error, or the network fails, the button says “Something went wrong” and the visitor’s text stays in the fields.
Other ways
Section titled “Other ways”- Your tool’s database: Lovable and some others can save submissions in a database and email you. Ask: “Save the submissions of the contact form to the database and email me each one.”
- Your own server: the endpoint can be any URL that accepts a JSON POST — your CRM, a serverless function.
Changing the form
Section titled “Changing the form”The fields, their placeholders and labels are content (fields of contactForm): ask your tool to add or remove a
field there and show it in the form (“Add an optional Phone field after Your Email in the contact form”). A field
arrives at your form service under its name, so keep the names you already use somewhere.
Privacy
Section titled “Privacy”Submissions go only where you point them. If your site needs a privacy policy, add a page that says what the form collects and where it goes, and link it in the footer.
The hidden fax field stays empty for people and gets filled by bots; when it is filled, the form says “Thank you” and
sends nothing. Most form services also filter spam themselves.