[Intum Help](https://intum.com/help.md) / [Forms](https://intum.com/help/forms.md)

# [AI - Creating and Editing Forms](https://intum.com/help/forms/ai-creating-and-editing-forms.md)

<h2>AI in Forms</h2>
<p>The Forms module has built-in AI support — the <button style="cursor:default;display:inline-flex;align-items:center;padding:3px 8px;border:1px solid #d1d5db;border-radius:5px;font-size:12px;font-weight:500;color:#374151;background:#fff;"><svg style="height:12px;width:12px;color:#6b7280;" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.455 2.456L21.75 6l-1.036.259a3.375 3.375 0 0 0-2.455 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"></path></svg> AI</button> button lets you quickly create and edit forms using AI Agents.</p>

<h2>Where to Find the AI Button</h2>
<ul>
<li><strong>Form list</strong> — the AI button in the top bar lets you issue a command to create a new form</li>
<li><strong>New form</strong> — the AI button in breadcrumbs helps configure the form during creation</li>
<li><strong>Edit form</strong> — the AI button lets you modify an existing form</li>
<li><strong>Form preview (show)</strong> — the AI button with full form context (name, token, ID)</li>
</ul>

<h2>How It Works</h2>
<ol>
<li>Click the <button style="cursor:default;display:inline-flex;align-items:center;padding:3px 8px;border:1px solid #d1d5db;border-radius:5px;font-size:12px;font-weight:500;color:#374151;background:#fff;"><svg style="height:12px;width:12px;color:#6b7280;" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.455 2.456L21.75 6l-1.036.259a3.375 3.375 0 0 0-2.455 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"></path></svg> AI</button> button in the top bar</li>
<li>Copy the generated prompt</li>
<li>Paste the prompt into an AI Agent (Claude Code, OpenAI Codex, Gemini CLI, or another)</li>
<li>The agent will automatically create or modify the form via API</li>
</ol>

<h2>Example</h2>
<p>Simply paste a prompt like this into the Agent:</p>
<blockquote><em>Add a form for collecting data at a job fair — it should have first name, last name, phone, and email fields plus a marketing consent checkbox</em></blockquote>
<p>The agent will:</p>
<ul>
<li>Create a form with an appropriate name</li>
<li>Add text fields with email validation</li>
<li>Add a consent checkbox</li>
<li>Set field order and button text</li>
</ul>

<h2>What Can the Agent Do</h2>
<ul>
<li>Create a contact form with fields: name, email, message</li>
<li>Add text fields, select, radio, checkbox, attachments</li>
<li>Set field validation (email, required)</li>
<li>Change submit button text and post-submission message</li>
<li>Add CSS styles to the form</li>
<li>Configure CRM mapping (automatic customer creation)</li>
<li>Set up post-submission redirect</li>
</ul>

<h2>Prompt Contains</h2>
<ul>
<li>Form context (ID, name, token) — when editing an existing form</li>
<li>API token for authorization</li>
<li>Link to the complete Form API documentation</li>
<li>Example commands tailored to the context (creating vs. editing)</li>
</ul>