Kontaktformular für Cursor
Formgong team ·
Fügen Sie das in Cursor ein. Einsendungen gehen an Formgong. Keine Datenbank, kein Resend.
250 Einsendungen pro Monat gratis
So funktionieren Formulare in Cursor
Cursor bearbeitet den Code in Ihrem eigenen Repository, das Ergebnis hängt also von Ihrem Stack und den Gewohnheiten des Agenten ab. Für ein Kontaktformular legt der Agent oft eine API-Route an, eine E-Mail-Bibliothek wie Nodemailer oder Resend und neue Umgebungsvariablen mit SMTP- oder API-Zugangsdaten.
Das Repository kann schlanker bleiben: Das Formular sendet aus dem Browser an https://formgong.com/submit. Cursor kann außerdem über den MCP-Server mit Formgong sprechen, sodass der Agent das Formular selbst anlegt und das passende Snippet holt.
Einrichtung in Cursor
- Legen Sie in Formgong ein Formular an und kopieren Sie den Zugriffsschlüssel, oder lassen Sie das den Agenten per MCP erledigen (nächster Schritt).
- Optional: Erstellen Sie in Formgong ein persönliches API-Token (Konto → API-Tokens) und tragen Sie den Remote-MCP-Server
https://formgong.com/mcpin den MCP-Einstellungen von Cursor ein. Dann kann der Agent Formulare auflisten, neue anlegen und deren Snippet abrufen. - Fügen Sie den Prompt unten in den Agent-Chat ein. Er verlangt nur ein Frontend-Formular: keine API-Route, keine E-Mail-Bibliothek, keine neuen Secrets.
- Prüfen Sie den Diff, bevor Sie ihn annehmen. Das Formular sollte an Formgong senden und
access_key,_langund das versteckte Feldbotcheckenthalten. - Damit es so bleibt, legen Sie eine Projektregel in
.cursor/rules(oderAGENTS.md) an: „Formulare senden an Formgong; keinen Backend-Code für Formulare anlegen.“
Add a contact form to the existing site in this repo, using its current components and styles. Submissions go to Formgong, a hosted form backend. Do not create an API route, serverless function, or environment variable for this form. 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. Не створюй API route у цьому репозиторії. Endpoint: POST https://formgong.com/submit access_key (публічний): fk_your_access_key Поля: name, email, message, приховане botcheck. Приймай і application/x-www-form-urlencoded, і JSON. Для fetch став Accept: application/json і перевір success. Файли не відправляй. Підписи полів українською. Додатково: - Поле email роби з type="email", щоб браузер перевіряв адресу. - Приховане поле _lang зі значенням uk (мова сторінки): так помилки, сторінка подяки й автовідповідь будуть українською. - Необов'язково: приховане поле _redirect з повною https-адресою вашої сторінки подяки. Без нього Formgong покаже власну сторінку подяки. - Необов'язково: <script src="https://formgong.com/fg.js" async></script> один раз на сторінці. Він підставляє _lang з <html lang> і рахує перегляди форми без cookies. - Turnstile додавай лише тоді, коли я дам site key.
Dodaj formularz kontaktowy wysyłany do Formgong. Nie twórz API route w tym repozytorium. POST https://formgong.com/submit access_key: fk_your_access_key Pola: name, email, message, ukryte botcheck. Dla fetch ustaw Accept: application/json i sprawdź success. Dodatkowo: - Pole email ustaw jako type="email", żeby przeglądarka sprawdzała adres. - Ukryte pole _lang o wartości pl (język strony): komunikaty błędów, strona z podziękowaniem i autoodpowiedź będą po polsku. - Opcjonalnie: ukryte pole _redirect z pełnym adresem https Twojej strony z podziękowaniem. Bez niego Formgong pokaże własną stronę z podziękowaniem. - Opcjonalnie: <script src="https://formgong.com/fg.js" async></script> raz na stronie. Uzupełnia _lang z <html lang> i liczy wyświetlenia formularza bez cookies. - Turnstile dodaj tylko wtedy, gdy podam site key.
Formgong'a gönderilen bir iletişim formu ekle. Bu repoda API route oluşturma. POST https://formgong.com/submit access_key: fk_your_access_key Alanlar: name, email, message ve gizli botcheck. fetch için Accept: application/json kullan ve success alanını kontrol et. Ayrıca: - email alanını type="email" yap, böylece tarayıcı adresi kontrol eder. - Değeri tr olan gizli _lang alanı (sayfanın dili): hata mesajları, teşekkür sayfası ve otomatik yanıt Türkçe olur. - İsteğe bağlı: teşekkür sayfanızın tam https adresini taşıyan gizli _redirect alanı. Yoksa Formgong kendi teşekkür sayfasını gösterir. - İsteğe bağlı: sayfaya bir kez <script src="https://formgong.com/fg.js" async></script>. _lang alanını <html lang> değerinden doldurur ve form görüntülemelerini çerezsiz sayar. - Turnstile'ı yalnızca site key verirsem ekle.
Añade un formulario de contacto que envíe a Formgong. No crees una ruta de API en este repositorio. POST https://formgong.com/submit access_key: fk_your_access_key Campos: name, email, message y botcheck oculto. En fetch, envía Accept: application/json y comprueba success.
Ajoute un formulaire de contact vers Formgong. Ne crée pas de route API dans ce dépôt. POST https://formgong.com/submit access_key : fk_your_access_key Champs : name, email, message et botcheck caché. Pour fetch, envoie Accept: application/json et vérifie success.
Adiciona um formulário de contacto para o Formgong. Não cries uma rota de API neste repositório. POST https://formgong.com/submit access_key: fk_your_access_key Campos: name, email, message e botcheck oculto. No fetch, envia Accept: application/json e verifica success.
أضف نموذج تواصل يرسل إلى Formgong. لا تنشئ مسار API في هذا المستودع. POST https://formgong.com/submit access_key: fk_your_access_key الحقول: name وemail وmessage وbotcheck مخفي. مع fetch أرسل Accept: application/json وتحقق من success.
הוסף טופס יצירת קשר שנשלח ל-Formgong. אל תיצור נתיב API במאגר הזה. POST https://formgong.com/submit access_key: fk_your_access_key שדות: name, email, message ו-botcheck נסתר. ב-fetch שלח Accept: application/json ובדוק את success.
Formgong को भेजने वाला संपर्क फ़ॉर्म जोड़ो। इस रिपो में API रूट मत बनाओ। POST https://formgong.com/submit access_key: fk_your_access_key फ़ील्ड: name, email, message और छिपा botcheck। fetch में Accept: application/json भेजो और success जाँचो।
Formgong に送る問い合わせフォームを追加してください。このリポジトリに API ルートは作らないでください。 POST https://formgong.com/submit access_key: fk_your_access_key 項目: name, email, message と隠し botcheck。 fetch では Accept: application/json を送り、success を確認する。
Füge ein Kontaktformular hinzu, das an Formgong sendet. Lege in diesem Repository keine API-Route an. Endpoint: POST https://formgong.com/submit Öffentlicher access_key: fk_your_access_key Felder: name, email, message und ein verstecktes Honeypot-Feld botcheck. Unterstütze sowohl normale HTML-Formular-POSTs als auch JSON per fetch. Für fetch Accept: application/json senden und success prüfen. Keine Dateien senden. Beschriftungen auf Deutsch. Zusätzlich: - Das Feld email mit type="email" anlegen, damit der Browser die Adresse prüft. - Verstecktes Feld _lang mit dem Wert de (Sprache der Seite): Fehlermeldungen, Danke-Seite und automatische Antwort erscheinen dann auf Deutsch. - Optional: verstecktes Feld _redirect mit der vollständigen https-Adresse deiner Danke-Seite. Ohne dieses Feld zeigt Formgong eine eigene Danke-Seite. - Optional: <script src="https://formgong.com/fg.js" async></script> einmal pro Seite. Es setzt _lang aus <html lang> und zählt Formularansichten ohne Cookies. - Turnstile nur einbauen, wenn ich dir einen Site Key gebe.
Zu einem bestehenden Projekt hinzufügen: npx formgong init (npm: formgong)
Formgong oder eine eigene API-Route?
Bauen Sie eine eigene Route, wenn die Einsendung Ihre Geschäftslogik ausführen muss: in Ihre Datenbank schreiben, einen angemeldeten Nutzer prüfen oder interne Dienste aufrufen.
Nutzen Sie Formgong, wenn das Formular Sie einfach zuverlässig erreichen soll. Spamfilter, Zustellung per E-Mail und Telegram, Wiederholungen für Webhooks und der Posteingang sind schon fertig.
Fragen und Antworten
Brauche ich den MCP-Server?
Nein. Der Prompt allein genügt. MCP hilft, wenn der Agent Formulare anlegen und Snippets holen soll, ohne dass Sie Schlüssel von Hand kopieren.
Ist das API-Token dasselbe wie der Zugriffsschlüssel?
Nein. Der Zugriffsschlüssel (fk_…) ist öffentlich und gehört ins Formular. Das API-Token (fgp_…) ist privat: Bewahren Sie es in den Cursor-Einstellungen auf, nie im Repository.
Mit welchen Frameworks funktioniert das?
Mit allen. Der Agent passt das Snippet an Ihren Stack an; Endpunkt und Feldnamen bleiben gleich.
Artikel zum Thema
Verwandte Seiten
Ratgeber für Ihre Website
- HTML-Kontaktformular ohne PHP
- Kontaktformular für statische Seiten
- Kontaktformular und DSGVO: Muster
- Datenschutzhinweis im Kontaktformular: Mustertext
- Wix Kontaktformular: Nachrichten und E-Mail
- Kontaktformular: HTML-Code zum Kopieren
- Jotform-Alternative
- Typeform-Alternative
- Google-Forms-Alternative
- Web3Forms-Alternativen
- EmailJS-Alternativen
- Formspree vs. Web3Forms
- Kostenlose Formular-Backends
- Prompts für KI-Tools
- Formular-Check
- KI-Formulargenerator
- Regeldateien für Agenten
- Tools