Skip to content
Lazyform
Docs menu

AI builders

AI builders

Ready-to-paste prompts that make Lovable, Bolt, v0, Replit, Cursor and Claude wire your site's form to Lazyform.

If you build sites with an AI tool, you don't need to write the form code yourself. Paste one prompt, and the AI connects your form to Lazyform: no backend, no database, no email setup. Submissions arrive in your inbox, and anywhere else you connect in the dashboard.

How it works

Every prompt below tells the AI the same few things:

  • Post the form to https://lazyform-api.xvelopers.com/submit with your access key in a hidden access_key field.
  • Send JSON with an Accept: application/json header and show a success or error message from the response.
  • Add a hidden botcheck honeypot field to catch bots.
  • Don't build a backend, API route or database for the form.

AI tools love to add a server, an email library or a database table for a contact form. The last instruction stops that.

Before you start

Get an access key: type your email on the homepage for an instant key, or sign in and create a form. In each prompt, replace YOUR_ACCESS_KEY with your key (it starts with lf_) before you paste it.

Lovable

Lovable builds React apps with Tailwind and often reaches for Supabase. The prompt tells it not to.

text
Connect the contact form on this site to Lazyform. Do not build a backend, Supabase table, edge function or API route for it.

- On submit, POST the form as JSON to https://lazyform-api.xvelopers.com/submit with headers "Content-Type: application/json" and "Accept: application/json".
- Include "access_key": "YOUR_ACCESS_KEY" in the JSON body, plus every field (name, email, message, and any others the form has).
- Add a hidden honeypot checkbox: <input type="checkbox" name="botcheck" className="hidden" style={{ display: 'none' }} tabIndex={-1} autoComplete="off" />. Send its value as "botcheck" (empty unless checked).
- The response is JSON. Success: { "success": true, "message": "...", "id": "..." }. Error: { "success": false, "error": { "code": "...", "message": "..." } }.
- Disable the submit button and show "Sending..." while the request runs. On success, clear the form and show a thank-you message. On error, show error.message. On a network failure, show a generic error.
- Keep the existing design and Tailwind styles.

Bolt

Bolt generates full-stack projects and may scaffold an Express or Node server. The prompt keeps it front-end only.

text
Wire up the contact form so submissions go to Lazyform, a hosted form backend. This must stay front-end only: do not create a server, Express app, API route, database or email sending code.

Requirements:
1. Submit with fetch: POST https://lazyform-api.xvelopers.com/submit
   Headers: { "Content-Type": "application/json", "Accept": "application/json" }
   Body: JSON with "access_key": "YOUR_ACCESS_KEY" and all form fields (name, email, message, etc.).
2. Add a hidden honeypot field named "botcheck" (a checkbox with display:none and tabIndex -1). Include it in the body; it must stay empty for real users.
3. Handle the JSON response:
   - { "success": true, ... } -> reset the form and show "Thanks! Your message has been sent."
   - { "success": false, "error": { "code", "message" } } -> show error.message under the button.
   - fetch throws -> show "Network error. Please try again."
4. Show a loading state (disabled button, "Sending...") during the request.
Keep the current React and Tailwind styling.

v0

v0 generates React components with Tailwind and shadcn/ui, usually for Next.js. Ask for a client component so it doesn't add a server action.

text
Make the contact form submit to Lazyform. Use a client component ("use client") with fetch. Do not add a server action, API route, database or email library.

- POST to https://lazyform-api.xvelopers.com/submit with headers "Content-Type: application/json" and "Accept: application/json".
- JSON body: { "access_key": "YOUR_ACCESS_KEY", ...all form fields }.
- Add a hidden honeypot: <input type="checkbox" name="botcheck" className="hidden" style={{ display: "none" }} tabIndex={-1} autoComplete="off" />, sent as "botcheck".
- Response JSON: success is { "success": true, "message": "...", "id": "..." }; errors are { "success": false, "error": { "code": "...", "message": "..." } }.
- States: idle, sending (button disabled, "Sending..."), success (replace the form with a thank-you message), error (show error.message in a destructive-styled text under the button).
- Keep the existing shadcn/ui components and Tailwind classes.

Replit

Replit Agent can build any stack and often adds a Flask or Express server. Tell it the form is handled elsewhere.

text
Connect this site's contact form to Lazyform (a hosted form backend at https://lazyform-api.xvelopers.com/submit). Do not build a backend route, server endpoint, database table or email sending for the form; if a server exists for other reasons, leave it alone and submit from the browser.

- In the browser, on submit: fetch("https://lazyform-api.xvelopers.com/submit", { method: "POST", headers: { "Content-Type": "application/json", "Accept": "application/json" }, body: JSON.stringify({ access_key: "YOUR_ACCESS_KEY", ...formFields }) }).
- Add a hidden honeypot checkbox named "botcheck" (style="display:none", tabindex="-1") and include it in the body. Real users leave it empty.
- Read the JSON response: if "success" is true, clear the form and show a thank-you message. If false, show error.message from { "success": false, "error": { "code", "message" } }. If fetch fails, show a network error.
- Disable the button and show "Sending..." while waiting.
- Also set the form's action to https://lazyform-api.xvelopers.com/submit and method to POST, with a hidden input access_key, so it still works without JavaScript.

Cursor

Cursor edits the codebase you already have. Tell it to find the form and match your project's conventions.

text
Find the contact form in this codebase and connect it to Lazyform, a hosted form backend. Follow the existing framework, component patterns and styling. Do not add a backend, API route, server action, database model or email dependency for this form.

Implementation:
- Submit from the client with fetch to https://lazyform-api.xvelopers.com/submit, method POST, headers { "Content-Type": "application/json", "Accept": "application/json" }.
- Body: JSON with "access_key" and all form fields. Read the key from a public env var (e.g. NEXT_PUBLIC_LAZYFORM_KEY, VITE_LAZYFORM_KEY or PUBLIC_LAZYFORM_KEY, whichever fits this project) and add it to .env.example. My key is YOUR_ACCESS_KEY.
- Add a hidden honeypot checkbox named "botcheck" (display none, tabIndex -1, autocomplete off) and send it in the body.
- Response shape: { "success": true, "message": string, "id": string } or { "success": false, "error": { "code": string, "message": string } }.
- Handle loading (disable submit, "Sending..."), success (reset form, thank-you message), API error (show error.message), network error (generic message).
- Keep the change small: only touch the form component and env example.

Claude

Use this in Claude Code or any Claude chat where you share your project files.

text
Please connect my site's contact form to Lazyform, a hosted form backend, so submissions are emailed to me. I don't want a backend: no API route, server action, serverless function, database or email library.

Details:
- Endpoint: POST https://lazyform-api.xvelopers.com/submit
- Send JSON with headers "Content-Type: application/json" and "Accept: application/json".
- Body: { "access_key": "YOUR_ACCESS_KEY", ...every form field by name }.
- Add a hidden honeypot checkbox named "botcheck" (hidden with display:none, tabindex -1, autocomplete off) and include it in the body.
- Success response: { "success": true, "message": "Submission received.", "id": "sub_..." }. Error response: { "success": false, "error": { "code": "...", "message": "..." } }.
- Show a loading state while sending, reset the form and show a thank-you message on success, show error.message on failure, and a generic message if the network request fails.
- Use the framework and styling the project already uses. If it's plain HTML, also keep action="https://lazyform-api.xvelopers.com/submit" method="POST" and a hidden access_key input so the form works without JavaScript.

Explain briefly what you changed when you're done.

Troubleshooting

Send a test message from the live preview. If something goes wrong, the error code in the response tells you what to ask the AI.

What you see What it means What to tell the AI
missing_access_key The key wasn't sent "Include access_key: YOUR_ACCESS_KEY in the JSON body."
invalid_access_key The key is wrong or has a typo Copy the key again from the dashboard and paste it into the code yourself.
empty_submission Only the key was sent, no fields "Send every form field in the JSON body, using each input's name."
domain_not_allowed Allowed websites is on and this site isn't listed Add the preview and live domains in the form's settings. No code change needed.
rate_limited Too many test submissions in a short time Wait a few minutes and try again.
form_paused The form is paused Resume it in the dashboard.
captcha_failed The form has a captcha turned on but no token was sent See Spam protection for the captcha snippet, or turn the captcha off.
The page navigates to a Lazyform error or thank-you page The request was sent without Accept: application/json "Add the Accept: application/json header to the fetch request."
The AI added a server, API route or email library It ignored the "no backend" rule "Remove the backend for the form and submit directly from the browser to https://lazyform-api.xvelopers.com/submit."

The full list of codes is in Responses.

A submission that seems to succeed but never arrives is often caught by the honeypot. Check that the botcheck field is hidden and unchecked, and check the form's submissions marked as spam in the dashboard.

Is it safe to put the key in the code?

Yes. The access key isn't a secret: it only lets someone submit to that one form. It can't read your submissions or change your settings. That's why it's fine in front-end code, in a public repo, or in an AI tool's preview.

To stop other sites from using your key, turn on allowed websites in the form's settings and list your domains. Remember to add the AI tool's preview domain too if you test there.

Where to go next