AI website guide · ChatGPT

Make your ChatGPT website contact form actually send.

ChatGPT writes clean HTML and CSS websites on demand, but its contact forms almost always point to action="#", use broken mailto: links, or tell you to host a PHP script. Paste one prompt into ChatGPT to make it work for real.

Copy this prompt into ChatGPT

Replace YOUR_FORM_ID with the sandbox link from your FormRoost dashboard. Your design stays untouched.

Why ChatGPT forms get stuck
  • ChatGPT often puts action="#" or onsubmit="return false" on forms because it has nowhere to send submissions.
  • mailto: links force visitors to open a desktop mail app and expose your personal email address to scrapers.
  • Static hosts like GitHub Pages, Cloudflare Pages, and Netlify Drop cannot run PHP mail() scripts.

Typical allowed origins for ChatGPT

  • https://username.github.io
  • https://your-site.pages.dev
  • https://yourdomain.com
Prompt · ChatGPT
Ready to paste
Connect my ChatGPT website form to FormRoost:
1. Keep my existing form design, layout, and fields exactly as they are.
2. Do not add Supabase, a database, Edge Functions, API routes, or an email service—send directly from the browser using fetch POST to:
   https://formroost.com/s/v1/sandbox/YOUR_FORM_ID
   with Content-Type: application/json and credentials: 'omit'.
3. Replace any placeholder action="#" or mailto: behavior with this fetch submit handler.
4. Add a visually hidden _gotcha honeypot input so spam bots get caught automatically.
5. Show a clear thank-you message on 201 Created and friendly inline errors on 422 or failure.
Test in sandbox first (unlimited, auto-cleared every 7 days) before switching to production.

Four steps from ChatGPT to live leads

Nothing goes live until you click Publish in FormRoost.

  1. 1

    Create a free FormRoost account and form

    Sign up free (no credit card), name a project for your website, and create a form to get your /s/v1/sandbox/fpub_... link.

  2. 2

    Add where your site is hosted under Allowed browser origins

    In FormRoost → Acceptance rules → Allowed browser origins, add your site address (like https://yourdomain.com, https://your-site.pages.dev, or http://localhost:5500 for local testing).

  3. 3

    Paste the prompt into your ChatGPT thread

    Paste the prompt above with your FormRoost sandbox link into the same ChatGPT conversation and ask it to update your HTML/JS file.

  4. 4

    Test once, then click Publish

    Open your page, submit a test message, and see it land in your FormRoost sandbox inbox. Click Publish to production in FormRoost and swap sandbox to production in your code.

Helpful tips & what to know upfront

ChatGPT tips

  • Prefer static HTML without JavaScript? You can also just set <form action="https://formroost.com/s/v1/production/YOUR_FORM_ID" method="POST"> and set a Success redirect URL in FormRoost.
  • Keep your personal email address completely out of the HTML—FormRoost emails you privately on every new real lead.
  • When opening an HTML file locally, run a quick local server (like VS Code Live Server on http://localhost:5500) rather than double-clicking file:// so browser origins work cleanly.

Good to know upfront

  • Works on any static host: GitHub Pages, Cloudflare Pages, Netlify, Vercel, or shared hosting.
  • Free plan includes 50 real leads/month, unlimited sandbox tests, built-in spam shield, and CSV exports.
  • File attachments are not supported yet—great for contact, quote, newsletter, and feedback forms.

Ready to connect your ChatGPT form?

Start free with 50 real leads a month and unlimited sandbox testing. No payment card required.