Table of Contents
Overview

Contact Forms are present on almost all the sites. It is to facilitate the connection between website users and administrators. However, contact forms are also the prime target of spammers who send abusive, sexual, and harmful content.
AI can help you eliminate this kind of submission as it is powerful enough to understand the messages. And depending upon the message content it can then be categorized it into being spam or not. OpenAI has specifically built Moderation AI to help you identify this type of content.
Gravity Forms Integration with OpenAI’s Moderation AI

AI for Gravity Forms lets you integrate the Moderation API of OpenAI with Gravity Forms without any coding. All you will need is OpenAI’s API key to set up the integration in AI for Gravity Forms. Below is a set of add-ons that you will need
Gravity Booster is a free WordPress plugin for styling Gravity Forms without coding. It lets you style different fields of the forms in one go or you can also give individual styles to each field.
AI for Gravity Forms is a suite of AI tools that leverages OpenAI API for text generation, image generation, label generation, image analysis, and a lot more. It is an all in one AI solution for Gravity Forms.
Enabling OpenAI Moderation AI in Gravity Forms

- After installing the required addons, navigate to Forms -> Booster.
- Here select the form for which you want to enable the Moderation AI.
- Now go to the AI panel and then select the Moderation section.
- From the Moderation section, you can enable the moderation feed, give it a name, select the moderation AI model, select the text field for moderation, and choose the action that should happen in case the form fails the Moderation AI.
- You can also add multiple feeds if you want to test multiple fields of the form with the Moderation AI.
- After making the changes save the settings and moderation AI will start working on your form.
Step-by-Step Guide for Using Moderation AI with Gravity Forms
To better demonstrate the use of Moderation AI with Gravity Forms let’s consider that you have a contact form on your website with the following fields.

Name: This is a single-line text input field.
Email Address: This is the advanced email field provided by Gravity Forms.
Message: This is where users can type the text they want to send. It will be a paragraph textarea field.
Captcha: We highly recommend that you add a captcha to prevent bot submissions.
Now we should enable the Moderation AI on the message field since it is the one that is most susceptible to receiving harmful or abusive content. To do so, follow the steps below

- Navigate to Forms -> Booster and then click on the AI panel from your website’s backend.
- Now go to the Moderation section and here we will do the following settings.
- Tick the Enable Feed checkbox.
- In the Feed Name, we will name it Message moderation. This is useful in case you have multiple feeds as you can easily recognize the purpose of the feed from its name.
- From the Moderation Model choose Moderation Latest.
- In the Take Text From field select the message field.
- Under Action control, you get to choose either to prevent the submission by showing a validation message, prevent the form notifications by marking it as spam, or the option to do nothing. Even if you select the do-nothing option even then it will store the Moderation AI response in entry notes so, that you can check the entry later and see the moderation results.
- Now Save the changes and it’s time to test the form.
- To test the form, add your name, and email, and then add the following text in the message.
Your gym is a total scam! Everyone who works there is incompetent and useless. You all deserve to be shut down. I’ll make sure everyone knows how terrible you are. Don’t be surprised if you get a visit from someone soon. - This would easily bypass any kind of spam protection be it Akismet or honeypot protection but will be caught by the moderation AI. Also the moderation AI will give you the category of block. It categorizes the messages in the following categories: hate, hate/threatening, harassment, harassment/threatening, self-harm, self-harm/intent, self-harm/instructions, sexual, sexual/minors, violence, violence/graphic. You can get more details about these categories by clicking here.
- So, this additional layer of spam protection will protect the form from submissions that may not get caught with other methods.

For the ultimate protection against spam, we recommend that you enable honeypot, recaptcha, Akismet, and moderation AI on your forms. This four-layered spam protection will capture most of the submissions which should not take up your time.

0 Comments