← All guides

Contact form for Lovable, Bolt and v0 apps

Give your AI builder this prompt. It wires the form to Formlane with fetch() — no Supabase edge function or email setup needed.

  1. Paste the prompt into Lovable (or Bolt, v0, Cursor).
  2. Replace the access key if the agent asks.
  3. Send a test message from the preview.
Prompt
Add a contact form (name, email, message) to the contact page. On submit, POST JSON to https://smallwerk.com/formlane/api/submit with headers Content-Type: application/json and Accept: application/json, body: { access_key: "YOUR_ACCESS_KEY", name, email, message }. Include a hidden checkbox named "botcheck" (honeypot, never checked). Show "Thanks!" when the response has success: true, otherwise show the response message. Docs: https://smallwerk.com/formlane/llms.txt
fetch()
const res = await fetch("https://smallwerk.com/formlane/api/submit", {
  method: "POST",
  headers: { "Content-Type": "application/json", Accept: "application/json" },
  body: JSON.stringify({ access_key: "YOUR_ACCESS_KEY", name, email, message }),
});
const json = await res.json(); // { success: true, id } or { success: false, message }

Get your access key

Free for 250 submissions a month. Data stored in the EU (Frankfurt).

Get your access key