The forms — Fitbricks AI Prompts
Fitbricks has three forms: the free-trial request, the class booking on every club page and the contact form. The prompts build each with its states — sending, “Thank you”, “Something went wrong”, each shown on the submit button — and a hidden field that catches spam bots. All three send to the same address, each with its own name, so you can tell them apart.
| Form | Where | form it sends |
Content |
|---|---|---|---|
| Claim Free Trial | The Free trial page | free-trial |
form in src/content/pages/free-trial.json |
| Book Your Class Now | The sidebar of every club page | booking |
booking in src/content/pages/club.json |
| Get in Touch | The Contact page | contact |
form in src/content/pages/contact.json |
The fields
Section titled “The fields”| Field | Name it sends | Free trial | Booking | Contact |
|---|---|---|---|---|
| Name | Name |
optional | optional | optional |
Email |
required | required | required | |
| Phone | Phone |
optional | optional | optional |
| Contact Time Preferences (Morning, Afternoon, Evening, Night) | Contact Time |
required | — | required |
| Preferred Location (a city) | City |
optional | — | — |
| Preferred Class (a program) | Class |
optional | — | — |
| Club Location (filled with the club’s name) | Club |
— | optional | — |
| Preferred Date, Preferred Time | Date, Time |
— | optional | — |
| Message / Additional Notes | Message |
optional | optional | optional |
Labels, placeholders and button texts are in each form’s content (fields, submit, success and error). The
free-trial form’s locations are the cities and its classes the first ten programs, both from the collections. An
address the browser doesn’t accept, or a contact time left on “Anytime”, stops the form with the browser’s own message.
Demo mode
Section titled “Demo mode”Until you connect a service, the forms run in demo mode: they wait a moment and say “Thank you”, but nothing is sent anywhere (the fields are written to the browser’s console). Connect them before you publish.
Connecting a form service
Section titled “Connecting a form service”The forms send their 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 each form once and check that the submissions arrive.
Every submission also carries form (free-trial, booking or contact) and subject — the form’s title (“Claim
Free Trial”, “Book Your Class Now”, “Get in Touch”) — which form services use as the email subject. To send the trial
requests and bookings to the front desk and the messages to your inbox, route the submissions through a Zapier, Make or
n8n webhook and branch on form; a booking’s Club says which club it is for.
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 free-trial requests, the bookings and the contact messages to the database and email me each one.”
- A booking system: if your gym books classes in its own software, ask your tool to point the club pages’ booking form there, or to replace it with a link to your booking page.
- Your own server: the endpoint can be any URL that accepts a JSON POST.
Changing a form
Section titled “Changing a form”The fields, their labels, placeholders and options are content: ask your tool to add or remove a field there and show
it in the form (“Add an optional Membership field after Phone in the free-trial 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. The demo’s legal pages (collections/legal.json) are sample text: write your
own, saying what the forms collect and where it goes.
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.