Use FormBnB forms with Bolt - StackBlitz AI app builder
Why FormBnB with Bolt
Bolt builds full-stack apps in the browser. When your app needs forms that collect data, send emails, or trigger webhooks, FormBnB handles the backend so Bolt can focus on the frontend.
How to Use
Bolt runs in the browser and doesn’t use the npx skills CLI. Instead, include FormBnB instructions directly in your prompt:
In Your Prompt
Build a portfolio site with a contact form. The form should POST tohttps://api.formbnb.com/f/MY_ORG/contact using fetch.Include name, email, and message fields.Add a hidden input named _gotcha with display:none for spam protection.Show a success message after submission.
Redirect: Use _next hidden field for custom redirect URL
Example Prompts
Landing Page with Waitlist
Create a SaaS landing page with a hero section, features grid, anda waitlist email capture form. The form should POST tohttps://api.formbnb.com/f/MY_ORG/waitlist using AJAX.Add _gotcha honeypot. Show "You're on the list!" on success.
Contact Form with File Upload
Build a freelancer portfolio with a contact page. The contact formshould POST to https://api.formbnb.com/f/MY_ORG/contact withenctype="multipart/form-data". Include name, email, message, anda file upload for project briefs (accept PDF and DOCX).Add _gotcha spam protection.
Multiple Forms
Create a customer portal with three forms:1. Support form → POST to https://api.formbnb.com/f/MY_ORG/support2. Feedback form → POST to https://api.formbnb.com/f/MY_ORG/feedback3. Bug report form → POST to https://api.formbnb.com/f/MY_ORG/bugsAll forms should use AJAX, show loading spinners, and displaysuccess/error messages. Include _gotcha on all forms.
FormBnB auto-creates forms when you submit to a new slug. You don’t need to set up anything in the FormBnB dashboard first — just start building in Bolt and submit.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"FormBnB Documentation","description":"Documentation for FormBnB, the form backend for AI-built websites and apps.","colors":{"primary":"#0D0D0D","light":"#FAFAFA","dark":"#0D0D0D"},"logo":{"light":"https://mintcdn.com/formbnb/-3Ft10nWMeemwOYd/logo/light.svg?fit=max\u0026auto=format\u0026n=-3Ft10nWMeemwOYd\u0026q=85\u0026s=dfe47b046859bc765600d13a3e175b15","dark":"https://mintcdn.com/formbnb/-3Ft10nWMeemwOYd/logo/dark.svg?fit=max\u0026auto=format\u0026n=-3Ft10nWMeemwOYd\u0026q=85\u0026s=66d3bde573ce7361272dfa82b094da99"},"favicon":"https://mintcdn.com/formbnb/-3Ft10nWMeemwOYd/favicon.svg?fit=max\u0026auto=format\u0026n=-3Ft10nWMeemwOYd\u0026q=85\u0026s=d4a0f88162d5f8d1893f6f11c751fe28","api":{"openapi":"openapi.json"},"appearance":{"default":"light"},"navbar":{"links":[{"href":"mailto:support@mail.formbnb.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.formbnb.com"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/formbnb"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"formbnb","hasAudioNarration":false,"actualSubdomain":"formbnb","customDomains":["formbnb.com"],"gitSource":{"type":"github","owner":"formbnb","repo":"formbnb","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae95b82f034dd2525b32e39:success","clientVersion":"0.0.4410","searchFilterCounts":[{"language":"default","tag":"Frameworks","count":48},{"language":"default","tag":"API Reference","count":31},{"language":"default","tag":"AI Agents","count":22},{"language":"default","tag":"Comparisons","count":20},{"language":"default","tag":"Guides","count":15},{"language":"default","tag":"Forms","count":10},{"language":"default","tag":"User","count":10},{"language":"default","tag":"Features","count":8},{"language":"default","tag":"Integrations","count":4},{"language":"default","tag":"Billing","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"agents/bolt","slug":"/agents/bolt","pageMetadata":{"title":"Bolt","description":"Use FormBnB forms with Bolt - StackBlitz AI app builder","href":"/agents/bolt"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Use FormBnB forms with Bolt - StackBlitz AI app builder\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`why-formbnb-with-bolt`,children:`Why FormBnB with Bolt`}),`\n`,_jsx(_components.p,{children:`Bolt builds full-stack apps in the browser. When your app needs forms that collect data, send emails, or trigger webhooks, FormBnB handles the backend so Bolt can focus on the frontend.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-use`,children:`How to Use`}),`\n`,_jsxs(_components.p,{children:[`Bolt runs in the browser and doesn’t use the `,_jsx(_components.code,{children:`npx skills`}),` CLI. Instead, include FormBnB instructions directly in your prompt:`]}),`\n`,_jsx(Heading,{level:`3`,id:`in-your-prompt`,children:`In Your Prompt`}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Build a portfolio site with a contact form. The form should POST to`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.formbnb.com/f/MY_ORG/contact using fetch.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Include name, email, and message fields.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add a hidden input named _gotcha with display:none for spam protection.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Show a success message after submission.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`key-details-to-include`,children:`Key Details to Include`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Endpoint:`}),` `,_jsx(_components.code,{children:`https://api.formbnb.com/f/YOUR_ORG/YOUR_FORM`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Method:`}),` `,_jsx(_components.code,{children:`POST`}),` with `,_jsx(_components.code,{children:`fetch`}),` and `,_jsx(_components.code,{children:`FormData`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Spam protection:`}),` `,_jsx(_components.code,{children:`\u003cinput type=\"text\" name=\"_gotcha\" style=\"display:none\">`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`JSON response:`}),` Add `,_jsx(_components.code,{children:`Accept: application/json`}),` header`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Redirect:`}),` Use `,_jsx(_components.code,{children:`_next`}),` hidden field for custom redirect URL`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-prompts`,children:`Example Prompts`}),`\n`,_jsx(Heading,{level:`3`,id:`landing-page-with-waitlist`,children:`Landing Page with Waitlist`}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Create a SaaS landing page with a hero section, features grid, and`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`a waitlist email capture form. The form should POST to`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.formbnb.com/f/MY_ORG/waitlist using AJAX.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add _gotcha honeypot. Show \"You're on the list!\" on success.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`contact-form-with-file-upload`,children:`Contact Form with File Upload`}),`\n`,_jsx(CodeBlock,{numberOfLines:`6`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Build a freelancer portfolio with a contact page. The contact form`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`should POST to https://api.formbnb.com/f/MY_ORG/contact with`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`enctype=\"multipart/form-data\". Include name, email, message, and`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`a file upload for project briefs (accept PDF and DOCX).`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Add _gotcha spam protection.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`multiple-forms`,children:`Multiple Forms`}),`\n`,_jsx(CodeBlock,{numberOfLines:`8`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Create a customer portal with three forms:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`1. Support form → POST to https://api.formbnb.com/f/MY_ORG/support`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2. Feedback form → POST to https://api.formbnb.com/f/MY_ORG/feedback`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`3. Bug report form → POST to https://api.formbnb.com/f/MY_ORG/bugs`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`All forms should use AJAX, show loading spinners, and display`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`success/error messages. Include _gotcha on all forms.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`reference-code`,children:`Reference Code`}),`\n`,_jsx(_components.p,{children:`Share this with Bolt if it needs a pattern:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` handleSubmit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`e`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` React`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FormEvent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`HTMLFormElement`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` e`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`preventDefault`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setLoading`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.formbnb.com/f/YOUR_ORG/YOUR_FORM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` FormData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`e`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`currentTarget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Accept:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setSuccess`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` e`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`currentTarget`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`reset`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Something went wrong\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Network error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`finally`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setLoading`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`FormBnB auto-creates forms when you submit to a new slug. You don’t need to set up anything in the FormBnB dashboard first — just start building in Bolt and submit.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Bolt","description":"Use FormBnB forms with Bolt - StackBlitz AI app builder","href":"/agents/bolt"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Why FormBnB with Bolt","slug":"why-formbnb-with-bolt","depth":2,"children":[]},{"title":"How to Use","slug":"how-to-use","depth":2,"children":[{"title":"In Your Prompt","slug":"in-your-prompt","depth":3,"children":[]},{"title":"Key Details to Include","slug":"key-details-to-include","depth":3,"children":[]}]},{"title":"Example Prompts","slug":"example-prompts","depth":2,"children":[{"title":"Landing Page with Waitlist","slug":"landing-page-with-waitlist","depth":3,"children":[]},{"title":"Contact Form with File Upload","slug":"contact-form-with-file-upload","depth":3,"children":[]},{"title":"Multiple Forms","slug":"multiple-forms","depth":3,"children":[]}]},{"title":"Reference Code","slug":"reference-code","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"formbnb","siteName":"FormBnB Documentation","title":"Bolt - FormBnB Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-02T18:46:10.963Z","originalFileLocation":"agents/bolt.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Use FormBnB forms with Bolt - StackBlitz AI app builder\">\u003cmeta data-mint-head name=\"application-name\" content=\"FormBnB Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/formbnb/Gk3eJdfvdJRg1hrA/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/formbnb/Gk3eJdfvdJRg1hrA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/formbnb/Gk3eJdfvdJRg1hrA/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/formbnb/Gk3eJdfvdJRg1hrA/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/formbnb/Gk3eJdfvdJRg1hrA/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/formbnb/Gk3eJdfvdJRg1hrA/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/formbnb/Gk3eJdfvdJRg1hrA/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/formbnb/Gk3eJdfvdJRg1hrA/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/formbnb/Gk3eJdfvdJRg1hrA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Bolt - FormBnB Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use FormBnB forms with Bolt - StackBlitz AI app builder\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"FormBnB Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://formbnb.com/docs/agents/bolt\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://formbnb.mintlify.site/docs/_mintlify/api/og/v2?division=AI+Agents\u0026amp;title=Bolt\u0026amp;description=Use+FormBnB+forms+with+Bolt+-+StackBlitz+AI+app+builder\u0026amp;theme=9b1df26f4b671e9e62093999\u0026amp;signature=7f5c6831c606be03be3fb25c9fbfd809386446e68fa8bacab6a7d32c8f9b56db\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Bolt - FormBnB Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use FormBnB forms with Bolt - StackBlitz AI app builder\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://formbnb.mintlify.site/docs/_mintlify/api/og/v2?division=AI+Agents\u0026amp;title=Bolt\u0026amp;description=Use+FormBnB+forms+with+Bolt+-+StackBlitz+AI+app+builder\u0026amp;theme=9b1df26f4b671e9e62093999\u0026amp;signature=7f5c6831c606be03be3fb25c9fbfd809386446e68fa8bacab6a7d32c8f9b56db\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/formbnb/Gk3eJdfvdJRg1hrA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FormBnB Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D0D0D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://formbnb.com/docs/agents/bolt\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/agents/bolt.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://formbnb.com/#organization\",\"name\":\"FormBnB Documentation\",\"url\":\"https://formbnb.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/formbnb/-3Ft10nWMeemwOYd/logo/light.svg?fit=max\u0026auto=format\u0026n=-3Ft10nWMeemwOYd\u0026q=85\u0026s=dfe47b046859bc765600d13a3e175b15\"}},{\"@type\":\"WebSite\",\"@id\":\"https://formbnb.com/docs#website\",\"name\":\"FormBnB Documentation\",\"url\":\"https://formbnb.com/docs\",\"publisher\":{\"@id\":\"https://formbnb.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://formbnb.com/docs/agents/bolt#webpage\",\"url\":\"https://formbnb.com/docs/agents/bolt\",\"name\":\"Bolt\",\"description\":\"Use FormBnB forms with Bolt - StackBlitz AI app builder\",\"dateModified\":\"2026-07-02T18:46:10.963Z\",\"isPartOf\":{\"@id\":\"https://formbnb.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://formbnb.com/docs/agents/bolt#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://formbnb.com/docs/agents/bolt#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AI Agents\",\"item\":\"https://formbnb.com/docs/agents/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bolt\",\"item\":\"https://formbnb.com/docs/agents/bolt\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://formbnb.com/docs/agents/bolt#article\",\"headline\":\"Bolt\",\"name\":\"Bolt\",\"description\":\"Use FormBnB forms with Bolt - StackBlitz AI app builder\",\"url\":\"https://formbnb.com/docs/agents/bolt\",\"mainEntityOfPage\":{\"@id\":\"https://formbnb.com/docs/agents/bolt#webpage\"},\"dateModified\":\"2026-07-02T18:46:10.963Z\",\"publisher\":{\"@id\":\"https://formbnb.com/#organization\"},\"isPartOf\":{\"@id\":\"https://formbnb.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FormBnB Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"FormBnB Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/agents/bolt.md","siteName":"FormBnB Documentation","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/formbnb"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"AI Agents","groups":[{"group":"AI Agents","pages":[{"title":"AI Agent Skills","href":"/agents/overview"},{"title":"Cursor","href":"/agents/cursor"},{"title":"Claude Code","href":"/agents/claude-code"},{"title":"GitHub Copilot","href":"/agents/github-copilot"},{"title":"Windsurf","href":"/agents/windsurf"},{"title":"Kiro","href":"/agents/kiro"},{"title":"Lovable","description":"Use FormBnB forms with Lovable - the AI full-stack app builder","href":"/agents/lovable"},{"title":"Bolt","href":"/agents/bolt"},{"title":"v0","description":"Use FormBnB forms with v0 - Vercel's AI UI generator","href":"/agents/v0"},{"title":"Replit","href":"/agents/replit"},{"title":"All Supported Agents","href":"/agents/all-agents"}]}]},{"tab":"Frameworks","pages":[{"title":"Frameworks","href":"/frameworks/html"}]},{"tab":"Comparisons","pages":[{"title":"Comparisons","href":"/comparisons/formbnb-vs-formspree"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Bolt - FormBnB Documentation","deploymentId":"dpl_4jsQX6wxBTKTWBK49utMnZg6AX9Q","buildId":"dpl_4jsQX6wxBTKTWBK49utMnZg6AX9Q","dynamics":[],"chunks":[]}