generate_form
A framework-specific Generation Brief for rebuilding one form as real code.
Reach for this when you want your form as code you own, in your stack, instead of a HubSpot embed.
It does not write the code. It returns a Generation Brief — the fields, the submission contract, the conventions of your framework, and an acceptance checklist — and your AI client writes the code from it. That split is deliberate: the brief is deterministic, and the model does the part models are good at.
source takes a form id or any URL with one in it, so pasting an embed snippet or a
dashboard link works. Add brandUrl and the brief carries your colors and typography too.
Generate a client-code Generation Brief for a form
Fetch a HubSpot form and build a framework-specific Generation Brief: requirements checklist, the submission contract, framework conventions, and an acceptance checklist — plus, if `brandUrl` is given, a brand profile scraped from that site. Returns markdown and JSON. No code is generated server-side — the calling model writes the code from the brief.
Parameters
| Name | Type | Description | |
|---|---|---|---|
source | string | required | A HubSpot form id, or a URL containing one (embed snippet, share link, dashboard link). |
target | "html" | "react" | "next" | "gatsby" | "vue" | "angular" | "express" | "nest" | required | — |
language | "ts" | "js" | optional | — |
styling | "plain-css" | "css-modules" | "tailwind" | optional | — |
brandUrl | string | optional | A public website URL to scrape a brand profile from (SSRF-guarded). |