AI Generated Forms for WordPressPRO

WS Form PRO was the first WordPress form plugin to integrate with OpenAI, allowing you to generate forms for WordPress dynamically using AI by providing a simple prompt.

In this tutorial, we’ll walk you through the process of creating an AI generated form using WS Form’s OpenAI integration.

Install the OpenAI Add-On

To enable the AI generated forms feature in WS Form PRO, you first need to install and activate the OpenAI Add-On in WordPress.

  1. Download the OpenAI Add-On.
  2. Navigation to the WordPress plugins page.
  3. Click Add New Plugin.
  4. Click Upload.
  5. Choose the OpenAI Add-On zip file.
  6. Follow the on-screen instructions to Install and Active the plugin.

Obtain an API Key from OpenAI

To use the OpenAI integration, you need an API key from OpenAI.

  1. Go to OpenAI’s website.
  2. Sign in or create an account.
  3. Navigate to the API Keys section.
  4. Generate a new API key and copy it.

Configure the OpenAI Add-On in WS Form

  1. In your WordPress dashboard, go to WS Form > Settings.
  2. Click the OpenAI tab.
  3. Add your OpenAI License Key obtained when you downloaded the OpenAI add-on.
  4. Paste the OpenAI API Key obtained in the previous step.
  5. Click Save Changes.

Create an AI Generate Form

To create a form for WordPress from a prompt:

  1. Click Add New in the WS Form WordPress admin menu.
  2. Click the OpenAI tab.
  3. Click Use Template on the AI Generated Form template.
  4. Enter a Prompt, then click Create.

WS Form PRO - OpenAI Add-On - Entering a Prompt for a Form

How to Write a Prompt

Prompts should be written in natural language.

Simple Prompts

Example basic prompts are:

  • A dog adoption form.
  • A doctor appointment form.
  • A form for booking a rental property.
  • A membership form for a club.

Adding More Context

You can prompt for WS Form to add more functionality to a form. For example:

  • A dog adoption form. Add help text to each field to improve accessibility.
  • A doctor appointment form. Add a select field that contains reasons for the appointment.
  • A form for booking a rental property. Add a check-in and check-out date fields.
  • A membership form for a club. Add a file upload field for uploading a member photo.

Calculators

The WS Form AI Generated Form feature can also be used for creating calculators. Example prompts might be:

  • A mortgage calculator.
  • A window configurator.