Getting startedBuilding with AI

Getting started

Building with AI

Learn how to give the Formity documentation to AI tools so they can help you build your forms.


Help AI know Formity

AI tools like Claude Code, Cursor and ChatGPT may not know Formity, or only know a previous version. For accurate answers, give them the documentation, available as markdown in three ways.

Using llms.txt

The llms.txt file is an index of the documentation. It lists every page with a short description of what it covers and a link to its markdown version.

https://formity.app/llms.txt

It is the file you will use the most, since the AI tool can find and read only the pages it needs.

Read https://formity.app/llms.txt and build a multi-step form with Formity and React Hook Form. The first step asks for the name and the email, the second for the job title and the company, and the third for the country and the city. The last step is a review step that shows all the answers, with an edit button next to each one to jump back to its step.

Using llms-full.txt

The llms-full.txt file contains the entire documentation in a single file.

https://formity.app/llms-full.txt

Use it when you want the AI tool to understand everything about Formity before it starts on your form. It is a large file, so make sure it fits in the tool's context.

Read https://formity.app/llms-full.txt and build an event registration form with Formity and TanStack Form. Ask for the company details only when the user registers as a business, and repeat the attendee details step for each ticket. Add a sidebar to go back to any completed step and animate the transitions between steps.

Using specific pages

Every page of the documentation is also available as markdown. To get it, add .md to its URL.

https://formity.app/docs/guides/review-step.md

Use it when a single page is enough.

Read https://formity.app/docs/guides/review-step.md and add a review step at the end of my form, with an edit button next to each answer to jump back to its step.