for-ai
Build with an AI agent
Using ChatGPT, Claude, Cursor, Copilot, or any AI coding tool? Paste the prompt below and your agent will wire a working Un-static form into your site. Our docs are also machine-readable.
1. Copy-paste prompt
Drop this into your agent. It asks you for your form reference, which you get by registering a form.
Paste this into your AI coding tool
I'm using Un-static (https://un-static.com) as the form backend for my static site. It gives a form an HTTPS endpoint with no server code. Wire up the form on this page to Un-static. Set the form's action to https://forms.un-static.com/forms/YOUR_ENDPOINT_REFERENCE and method="post". I get YOUR_ENDPOINT_REFERENCE by registering the form at https://forms.un-static.com/register-form (ask me to paste mine). Rules: - Every field needs a "name" attribute. Include a field named "email" so I can reply to submissions. - Spam filtering and reCAPTCHA are handled by Un-static automatically, so a normal HTML POST needs no extra captcha or honeypot fields. - File uploads: add enctype="multipart/form-data" to the form and an <input type="file"> (paid plans). - No-reload submit: POST to the same URL with "/ajax" appended via fetch(). This requires the form to be linked to an account with your own reCAPTCHA. Send FormData (not JSON) if files are involved. - The post-submit redirect is configured in the Un-static dashboard, not in the markup. Machine-readable docs: https://un-static.com/llms.txt (append .md to any docs URL for raw markdown). Generate the form HTML now.
2. Machine-readable docs
- /llms.txt: an indexed list of every doc, following the llmstxt.org standard.
- /llms-full.txt: every doc inlined into one file.
- Append
.mdto any docs URL for raw markdown (e.g. /docs/api/forms.md).
3. Quick reference
Endpoint: https://forms.un-static.com/forms/YOUR_ENDPOINT_REFERENCE with method="post".
Reply-to: include a field named email.
Spam: filtered automatically; reCAPTCHA hosted by default, so no extra fields are needed for a normal POST.
File uploads: add enctype="multipart/form-data" and an <input type="file"> (paid plans).
Auto-response: a confirmation email to the submitter, configurable per form in the dashboard or via auto_response_* fields on PUT /api/forms/{reference} (linked forms with a Reply To field).
AJAX: POST to the same URL with /ajax appended; needs an account-linked form with your own reCAPTCHA; send FormData for files.
Redirect: configured in the dashboard, not in the markup.