Skip to main content

AI Generated Form

ComponentTypeDescription
imgAI Generated Form🔀 actionDynamically generate a form at runtime using AI

The AI Generated Form component uses AI to dynamically generate a form at runtime based on a text prompt. When a workflow reaches this component, it sends the prompt to the AI, which generates a complete form with the appropriate questions and fields. A link to this form is then outputted and the workflow pauses until the form is submitted.

This component is useful when the structure of a form needs to be dynamic and determined at runtime rather than designed in advance. For example:

  • generating a custom onboarding form based on the type of customer
  • creating a data collection form where the questions depend on earlier inputs in the workflow
  • building ad-hoc review or feedback forms tailored to the context of a specific workflow session

How it works​

  1. When the workflow reaches the AI Generated Form component, it reads the prompt you have configured
  2. The prompt is sent to the AI, which generates a complete form specification (questions, field types, validation, etc.)
  3. A form is created from this specification and a URL to the form is generated
  4. The workflow pauses and waits for someone to open the URL and submit the form
  5. Once the form is submitted, the workflow resumes and the form data is passed to downstream components via placeholders

Configuring the prompt​

The prompt tells the AI what kind of form to generate. Write a clear description of the form you want, including the fields, question types and any other relevant details.

You can insert workflow placeholders into the prompt by typing $. This allows the prompt to be dynamic based on data from earlier steps in the workflow.

Examples of prompts:

  • Collect the user's name, email address, and mailing address
  • Create a feedback form with a rating scale from 1-10 and a comments field
  • Generate an expense report form for ${department} with fields for date, amount, category, and receipt upload
  • Build a customer intake form that collects company name, industry, number of employees, and their main pain points
tip

The more specific your prompt, the better the generated form will be. Include details about question types (e.g. "a dropdown for country", "a checkbox list for preferred contact methods") when you want specific field types.

Form settings​

The form settings are found in the collapsible Form settings section below the prompt field. These settings control how the generated form behaves when it is displayed to and submitted by the user.

Form display mode​

Choose how questions are displayed to the user:

  • Classic — All questions are displayed on a single page. This is the default mode.
  • Conversational — Questions are displayed one at a time, guiding the user through the form step by step.

After the form is submitted​

You can configure what happens after the form is submitted:

Display submission page​

This is the default option. After the form is submitted, a submission confirmation page is displayed showing a customizable submission message.

You can edit the submission message that is displayed to the user. The default message is: "Thank you for your submission. Your response has been recorded."

Redirect to another form​

After the form is submitted, the user is automatically redirected to another form in the same workflow. This enables you to chain multiple forms together in a single user session without the user having to manually navigate to the next form.

Select the form(s) that the user can be redirected to from the dropdown. You can select multiple possible destinations — the first one to become available will be used.

tip

When using conditional paths in your workflow, select all possible destination forms so the redirect works regardless of which path is taken.

The redirect works with:

  • Form Builder
  • Form Section
  • Assign Task
  • Other AI Generated Forms

Redirect to external URL​

After the form is submitted, the user is redirected to an external URL. Enter the full URL including https://.

Allow user to view, edit and resubmit their response​

This controls what happens when a user revisits the form URL after submitting:

  • On — The user can view, edit and resubmit their response. Resubmitting triggers the workflow to re-run from this point.
  • Read Only — The user can view their submitted response but cannot edit or resubmit it.
  • Off — The form cannot be accessed after submission. An error page will be displayed.

Allow user to save their response​

  • On — A save button appears, allowing users to save their progress and return later to complete the form.
  • Off — No save option is available. The form can only be submitted.

Allow user to submit their response​

  • On — The user can submit the form (default).
  • Off — The submit button is hidden. This is useful when using the form to display read-only content.

Output placeholders​

The AI Generated Form outputs the following placeholders that can be used by downstream components in the workflow. You can customize the placeholder names for each output in the Output placeholders section to avoid conflicts when using multiple AI Generated Form components in the same workflow.

OutputDescription
Form IDThe unique identifier of the generated form
Form Session IDThe unique identifier of the form session created when the form is accessed
Form Session URLThe URL link to the generated form
DataThe raw data from the submitted form
AnswersThe answers submitted by the user
Question AnswersA formatted text block of all questions and their answers
Question Answers HTMLAn HTML-formatted block of all questions and their answers, suitable for use in emails, documents, and content blocks
note

Each AI Generated Form component auto-generates unique placeholder names to prevent conflicts. You can customize these names in the Output placeholders section of the component settings.

Redirecting to an AI Generated Form​

Other form-type components can redirect to an AI Generated Form after submission. To set this up, go to the form settings of the source component (Form Builder, Form Section, Assign Task, or another AI Generated Form) and select the AI Generated Form as a redirect destination.

Similarly, an AI Generated Form can redirect to any of these form types or to another AI Generated Form.

Differences from Form Builder​

FeatureForm BuilderAI Generated Form
Form designManually designed at build timeDynamically generated at runtime by AI
Question typesFull control over every questionAI decides based on your prompt
Styling and brandingLogo, cover image, custom themesUses default form styling
Trigger capabilityCan trigger a workflowCannot trigger a workflow (action only)
Form previewAvailable in the editorNot available (form is generated at runtime)
AnnotationsSupportedNot supported
Internal placeholdersSupportedNot supported
important

Because the form is generated dynamically by AI at runtime, the exact questions and field types may vary between different workflow sessions depending on the prompt and any placeholder values used within it. If you need a consistent, repeatable form structure, use the Form Builder instead.