Crocoblock / jetformbuilder

72 stars 15 forks source link

Integration of JetFormBuilder with OpenAI ChatGPT #265

Open alican532 opened 1 year ago

alican532 commented 1 year ago

Description: I would like to propose a new feature for the JetFormBuilder plugin, which integrates it with OpenAI's ChatGPT API. The idea is to use the form submissions as prompts for ChatGPT and then utilize the generated responses in various ways, such as sending emails, creating new posts, updating existing posts, or populating specific fields in the form.

Workflow:

  1. A user submits a form, which includes specific fields designated as prompts for ChatGPT.
  2. The JetFormBuilder plugin sends these prompts to the ChatGPT API.
  3. ChatGPT generates a response based on the provided prompts.
  4. The JetFormBuilder plugin receives the response and takes action according to the predefined settings (e.g., sending an email, creating a new post, updating an existing post, or populating a specific form field).

This integration would open up a variety of new possibilities for automation and content generation using both JetFormBuilder and OpenAI's ChatGPT. Please consider adding this feature to enhance the functionality and versatility of the JetFormBuilder plugin.

rtpHarry commented 1 year ago

Even after being thoroughly humbled by the power of ChatGPT, I would still think it was too risky to give it the power to run wild with the website.

If I was doing something like this, I think I would want to build my own plugin, which limited the possible options it could take.

There are tutorials out there for using the ChatGPT API.

JetFormBuilder already supports Call Hook and Call Webhook as submit actions, to pass its data on:

image

You could probably get ChatGPT to write most of the plugin for you.