نموذج تواصل لـ 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 النموذج، ويقوم بتصفية الرسائل غير المرغوب فيها، ثم يعيد توجيهه إلى البريد الإلكتروني وتيليجرام.

أسئلة وأجوبة

لماذا لم يتم إرسال النموذج من معاينة الدردشة؟

تعمل أجزاء المعاينة مثل عناصر Claude أو لوحة ChatGPT في بيئة اختبار قد تحجب الطلبات الموجهة إلى مواقع أخرى. يعمل نفس الكود بمجرد استضافة الصفحة.

ما هي خدمة الاستضافة التي يجب أن أستخدمها؟

أي مضيف يقدم ملفات ثابتة: GitHub Pages، Netlify، Cloudflare Pages أو خادمك الخاص. لا يعتمد Formgong على المضيف.

قام النموذج بتغيير أسماء الحقول. هل هذا مهم؟

فقط access_key وbotcheck والحقول التي تبدأ بشرطة سفلية لها أسماء ثابتة. أما الحقول التي تضيفها بنفسك فيمكن أن تحمل أي اسم؛ حيث تظهر بالصيغة التي تكتبها.

ابدأ مجانًا