ChatGPT / Claude の問い合わせフォーム

Formgong team ·

これを ChatGPT / Claude に貼ってください。送信先は Formgong です。データベースも Resend も要りません。

250 月あたりの無料送信

ChatGPT / Claudeでのフォームの仕組み

ChatGPTやClaudeはページを作成しますが、ホスティングやバックエンドの運用は行いません。正確な指示がない場合、エンドポイントを勝手に作成したり、他のフォームサービスの構文をコピーしたり、どこにも送信されないフォームを残したりする傾向があります。

モデルに以下のFormgongプロンプトを指定すると、フォームは適切なフィールドを含む状態で https://formgong.com/submit へ送信されます。その後、GitHub Pages、Netlify、Cloudflare Pagesなど、静的ページを配信できる任意の場所でファイルをホストしてください。

ChatGPT / Claudeでの設定手順

  1. Formgongでフォームを作成し、アクセスキーをコピーしてください。
  2. 以下のプロンプトを、ご自身のページと共にChatGPTまたはClaudeに貼り付けるか、新しいページの作成を依頼してください。また、モデルにhttps://formgong.com/llms.txtを参考資料として提示することも可能です。
  3. 結果をダウンロードしてください。プレーンHTMLのフォームはJavaScriptなしで動作します。訪問者にはFormgongの完了ページが表示されますが、_redirectを設定している場合は、ご自身のページが表示されます。
  4. ファイルをホスティングサーバーにアップロードし、チャットのプレビューではなく、本番ページからテスト送信を行ってください。

ドキュメントの手順ガイド

ChatGPT / Claude
When you build this website, include a working contact form as a plain HTML <form> in the same file, so it works on any static host without JavaScript. Submissions go to Formgong, a hosted form backend.

Formgong spec (follow exactly):
- Plain HTML: <form action="https://formgong.com/submit" method="POST">. With JavaScript, POST the same fields to https://formgong.com/submit using fetch.
- Hidden field access_key with value fk_your_access_key. The key is public and belongs in frontend code. Do not move it to a server or a secret.
- Hidden field _lang with the page language code, e.g. "en" (on multilingual sites use document.documentElement.lang). Formgong uses it for error messages, the thank-you page, and the autoreply.
- Fields: name, email, message (required); phone is optional. Keep these field names, and use <input type="email"> for email so browsers check the address.
- Honeypot: <input type="text" name="botcheck" tabindex="-1" autocomplete="off"> inside a wrapper with aria-hidden="true", visually hidden with CSS (position:absolute;inset-inline-start:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)). Never fill it.
- Success, plain form POST: optionally add a hidden _redirect field with the absolute https URL of the site's thank-you page. Without it, Formgong shows its own thank-you page.
- Success, fetch: send Accept: application/json (and Content-Type: application/json for a JSON body; for FormData let the browser set it). If the response has success === true, show an inline thank-you message and reset the form; otherwise show the response's message.
- Turnstile: only if I give you a Cloudflare Turnstile site key, add <script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script> and <div class="cf-turnstile" data-sitekey="SITE_KEY"></div> inside the form. Otherwise leave it out.
- Optional: add <script src="https://formgong.com/fg.js" async></script> once per page. It fills _lang from <html lang>, sets the Turnstile language, and counts form views without cookies.
- Do not create a backend, API route, server function, database table, or email-sending code (Supabase, Resend, SendGrid, nodemailer), and do not add secrets. No file uploads.

Formgongか、モデルが書いたフォームか?

すでに独自のフォーム処理機能を備えたサーバーを運用されている場合は、モデルにそのサーバーを使用するよう依頼してください。

静的ページの場合、フォームを送信する先は他にありません。Formgongがフォームを受け取り、スパムをフィルタリングした上で、メールおよびTelegramに転送します。

よくある質問

チャットのプレビューからフォームが送信されなかったのはなぜですか?

ClaudeのアーティファクトやChatGPTのキャンバスなどのプレビューペインは、サンドボックス環境で実行されるため、他のサイトへのリクエストがブロックされる場合があります。ページがホストされると、同じコードが正常に動作します。

どのホスティングサービスを利用すべきでしょうか?

静的ファイルを配信できるホスティングサービスであれば、GitHub Pages、Netlify、Cloudflare Pages、あるいはご自身のサーバーなど、どのようなものでも構いません。Formgongはホスティングサービスに依存しません。

モデルによってフィールド名が変更されました。これは問題になりますか?

access_key、botcheck、およびアンダースコアで始まるフィールドのみが固定名となっています。独自に作成したフィールドは任意の名前を付けることができ、入力した通りの名称で表示されます。

無料ではじめる