Skip to content
Sign inJoin waitlist

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
Field Name it sends Free trial Booking Contact
Name Name optional optional optional
Email 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.

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.

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
  1. Create a form at a service that accepts JSON posts — for example Formspree or Basin — or a webhook in Zapier, Make or n8n.
  2. Copy the address it gives you (e.g. https://formspree.io/f/abcdwxyz).
  3. Set it as the variable above: in the tool’s settings for secrets or environment variables, or in a .env file. The address is built into the site, so build or publish again after you change it.
  4. 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.

  • 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.

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.

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.