All documentation

Stacklar Documentation

Create a New Form with Stacklar AI Builder

Connect a WordPress AI provider, describe the form you need, optionally add a design reference, and generate an editable Stacklar draft.

Open: Stacklar -> AI Builder

Confirm that WordPress AI shows Ready before generating a form.
Describe the form, optionally choose a design reference, then select Generate Form.

Generate a New Form with AI Builder

  1. Use WordPress 7.0 or later and connect a text-generation provider in Settings -> Connectors. Then open AI Settings and confirm that Status shows Ready.
  2. Open Generate Form and enter an optional Form title. In Prompt, list the fields in order with their labels, required states, choices, and steps.
  3. Write each conditional rule as Show X only when Y is Z, and name the Submit button text you want visitors to see.
  4. Optional: select Choose design image and choose a clean JPG, PNG, WebP, or GIF from the Media Library. The connected provider must support image input.
  5. Select Generate Form and wait up to about one minute. Stacklar creates a new draft and opens it in the block editor.
  6. Before publishing, add the Submit block actions the form needs, select a service for any Booking field, and review every field.

AI Builder Controls

  • AI Settings: Shows whether WordPress AI is Ready and links to Settings -> Connectors when a provider needs configuration.
  • Form title: Names the new draft; when left empty, the draft is named AI Form with the current date and time.
  • Prompt: Describes the fields, required states, choices, steps, conditional rules, and visible text to create. Long forms work best in parts.
  • Design reference: Optionally sends one JPG, PNG, WebP, or GIF from the Media Library so AI can approximate the layout, colors, and button style.
  • Generate Form: Sends one request to the connected AI provider, billed by that provider, and creates a new draft without publishing it.
  • Prompt history: Keeps the last 20 prompts and the last AI JSON on your site; use the clear buttons when those records are no longer needed.

Review the Generated Draft

  • The draft contains the requested fields, required states, choices, and conditions, and no unnecessary personal data.
  • The Submit block has the email, integration, or payment actions you need; a generated draft starts without any actions.
  • Booking fields have a service selected, and field Names suit your mappings and exports.
  • A complete test submission succeeds on the public page before the form is used in production.

Frequently Asked Questions

Where do I enter the AI provider API key?

Stacklar does not store a separate AI key. Configure the provider in WordPress Settings -> Connectors, then return to AI Settings and confirm that Status shows Ready.

Does AI Builder edit an existing form?

No. AI Builder creates a new draft. Open an existing saved form and use AI Copilot when you want to propose changes to that form.

Which AI provider does Stacklar use when several are connected?

Stacklar uses the first connected text-generation provider in the order WordPress loads them; for the default connectors that is Anthropic, then Google, then OpenAI. If that provider returns an error, Stacklar shows it and does not switch to another provider, which avoids unexpected charges. To use a different provider, disconnect the providers listed before it.

Why does the generated form not send any email?

AI Builder creates fields, text, and styling only. Open the Submit block and add the email notification, integration, or payment actions the form needs before you publish it.

Why did generation fail with AI returned invalid JSON?

The AI answer was cut off, usually because the prompt describes a long form with many fields or choices. Generate the main part of the form first, then add the remaining fields with AI Copilot.

What does AI Builder send to the AI provider, and what does it cost?

It sends your prompt and the selected design image. Each Generate Form request is billed by your provider under your own account. Do not include passwords, API keys, or customer personal data in the prompt.

What if the AI connector has not been approved for Stacklar?

Your site uses the Connector Approval feature of the WordPress AI plugin. Select Review requests in the admin notice and allow Stacklar to use the connector, then generate the form again.

Official reference: WordPress Block Editor documentation.