Introduction
Headless forms for AI agents
Section titled “Headless forms for AI agents”Send a form URL to a human, get structured input back signed and verified. No forms database to build.
Agent detects missing info→Creates a session→Sends form URL→Human fills→Validated submission→Signed webhook→Agent resumes
Five-minute quickstart
Section titled “Five-minute quickstart”bashTerminal window
npm install -g @agentsforms/cliagentsforms initagentsforms forms validate forms/example-form.jsonagentsforms forms create forms/example-form.jsonagentsforms forms publish example-formPrefer HTTP? See the API quickstart →
What you get
Section titled “What you get”Schema-first forms
Section titled “Schema-first forms”Define in JSON; validate before publish. 13 field types, from text to file upload.
Hosted + embeddable
Section titled “Hosted + embeddable”Each published form has a URL and an embed snippet. Send the link — no server required on your side.
Signed webhooks
Section titled “Signed webhooks”HMAC-signed, retried, idempotent. Your agent resumes on the real data.
Explore the docs
Section titled “Explore the docs”| Section | Description |
|---|---|
| Get Started | Install, init, validate, create, publish — the full first flow. |
| Guides | Agent integration (LangGraph, OpenAI, HTTP), webhooks, sessions, embeds. |
| Reference | Form schema, REST API, CLI, webhook events, TypeScript types. |
| Architecture | Cloudflare Workers + D1, data model, security model. |
| Examples | Demo forms for common agent patterns. |