Skip to main content
Version: Divi 5

Form AI (Divi 5)

Form AI uses OpenAI to generate form fields and behavior from a prompt. Before building your first AI-powered form in Divi 5, be aware of limits and prerequisites.

Before you start

  • PHP 8.1 or higher on the server.
  • An OpenAI account with billing enabled.
  • A valid OpenAI API key added in Form Builder settings.
  • Access to the Divi 5 Visual Builder with a Form module already on the page.

Use OpenAI API setup if you still need to create or connect your key.

Limitations

  • You can use one AI field per form.
  • You can use one form containing an AI field per page.
  • GPT-4-class models are generally more expensive than GPT-3.5-class models.
  • If AI depends on a select field value, set a clear placeholder on that select field.
  1. Complete OpenAI API setup.
  2. Add a Form module in the Divi 5 Visual Builder.
  3. Enable and configure your AI field settings.
  4. Save and test with realistic prompts and inputs.

Verify it works

After setup, confirm:

  • The AI field returns output instead of staying empty.
  • The response appears within acceptable time for your model.
  • The output matches your prompt intent and field constraints.
  • Form submission still works when AI is enabled.

Common issues

  • No AI response: confirm API key, billing, and selected model access.
  • Response too slow: test with a lighter model and shorter prompts.
  • Unexpected output format: simplify prompt wording and add clearer instructions.

What's Next