Black Friday: the 14-plugin GravityOps bundle, 50% off · ends Nov 30 See the sale

//

Gil Amminadav

Short version: in GravityOps Forum a submitted topic only appears once the Forum feed has run on its entry, and only while the entry’s status is Active. So the way to hold a post back is to delay the Forum feed. We let an AI Text feed read the post first, write a verdict into admin-only fields, and use a Gravity Flow approval step to stop flagged posts until a moderator says yes. Submitting waits a few seconds for the AI check, and a clean post is live by the time the member sees the confirmation.

How Forum decides what to show

We read the Forum 1.3.1 source to get this right:

  • Topic and reply lists only include entries with the Active status. Entries in Spam or Trash stay hidden everywhere.
  • An entry becomes a topic when the Forum feed (or the Gravity Flow step “Create Forum Entity”) runs on it and marks it as a topic in its forum. Until then it’s an ordinary entry that no forum page lists.
  • Forum’s own moderation (Lock Topic, Sticky Topic, Edit Topic, Delete Topic) works after a post is live. Delete Topic moves the entry to Trash.

That gives two ways to keep a post off the forum: don’t create the topic yet, or take the entry out of Active. This setup does the first, because it also keeps follow notifications from going out for a post nobody approved.

What you need

  • GravityOps Forum on the Premium or Agency plan (Gravity Forms feeds and the Create Forum Entity step need Premium).
  • GravityOps AI Feed on the Premium or Agency plan (its Gravity Flow steps need Premium), and your own Anthropic API key.
  • Gravity Flow.

1. The topic form

Start from your Forum topic form: Title, Content and Tags. Add three fields with Visibility set to Administrative so members never see them: Moderation verdict (single line), Moderation reason (single line) and Moderator note (paragraph).

2. The AI Text feed

Add a GravityOps AI Text Feed to the form:

  • Name: Forum moderation check
  • Model: Claude Sonnet 5.5, which our demo uses. A verdict is a short answer, so you don’t need a larger model.
  • Max Tokens: leave the default, 4096. Sonnet 5.5 can think before it answers, and that thinking counts against Max Tokens. If it runs out, the AI step fails, the verdict stays empty, and the post is held for a moderator.
  • System Prompt: what your community allows. Ours holds spam, abusive tone and posts unrelated to WordPress or Gravity Forms, and says “when unsure, hold”.
  • User Prompt: the title, content and tags, inserted with the merge-tag button.
  • Output Mode: JSON multi-field mapping. In the Output Map, add three rows: verdict to Moderation verdict (“Exactly one lowercase word: publish or hold”), reason to Moderation reason (“none, spam, tone or off-topic”), note to Moderator note (“One sentence for the moderator”).
  • Trigger Mode: After form submission.

3. The Forum feed

Add a GravityOps Forum feed to the form, either from the form’s Settings > GravityOps Forum (Add New) or as a Form Assignment on GravityOps Forum’s Forms tab. On Premium the two stay linked, so whichever you use, the other is created for you. Set Form Type to Topic Form, set Entity Type to Specific Forum, pick the forum as Target Forum, and map the Title, Content and Tags fields.

Use a topic feed that targets a specific forum, not a Global Default feed. A global topic feed posts into the forum page the form was submitted on. A held post approved later from the Workflow Inbox has no forum page behind it, so creating the topic can fail. Specific Board does not put posts in that board either.

4. The workflow

  1. AI Text step: runs the moderation feed and fills the three fields.
  2. Approval step, with step conditional logic “Moderation verdict is not publish”. Assign your moderators and set Next step if Rejected to Workflow Complete. The exported step emails assignees a link to their Workflow Inbox; to put the verdict, reason and note in that email, add their merge tags to the assignee email message.
  3. Create Forum Entity step: runs the Forum feed, and the topic appears.

When a feed is selected in a Gravity Flow step, Gravity Flow runs it when the step starts instead of at submission, so neither feed fires early. Posts with the verdict publish skip step 2 and go straight to step 3. Held posts wait in the moderator’s inbox. A rejected post never becomes a topic and stays in Entries if you need it.

Why “is not publish” and not “is hold”: if the AI request fails, the verdict field stays empty. With “is not publish” that post waits for a moderator instead of going live unchecked.

One thing to know: an approved post keeps its original entry, and Forum orders topics by entry ID, newest first (sticky topics on top). A post held for a day shows up below topics submitted after it.

Replies work the same way: put the same three fields, AI Text feed and workflow on your reply form, with the Forum feed’s Form Type set to Reply Form and its target set to the same specific forum.

After a post is live

Something got through? Mark the entry as Spam in Gravity Forms Entries and it disappears from the forum, because Forum only lists Active entries. Not Spam brings it back. For whole threads, Delete Topic on the topic page moves the topic and its replies to Trash.

Limits and costs

  • Every new post is one request to Anthropic on your key. A verdict is a short reply, but a busy forum adds up.
  • The model is a first pass, not a moderator. Keep “when unsure, hold” in the prompt and read the held queue.
  • Members see a confirmation, not their post, while it’s held. Say so in the confirmation message.

Get the setup

Download the demo: fo4-forum-ai-moderation.json, a Gravity Forms export. Import it under Forms → Import/Export. It carries the form’s fields (Title, Content, Tags, the three admin-only moderation fields and a CAPTCHA) and the three workflow steps: AI moderation check, Moderator review (held posts only) and Create Forum Entity (publish the topic). The two feeds are not in the file, so after the import:

  1. Add the AI Text feed (section 2) and a Forum topic feed that targets a specific forum (section 3) to the imported form.
  2. Open the AI moderation check step and tick your AI Text feed. Open the Create Forum Entity step and tick your Forum feed.
  3. Check the Moderator review assignees. The export assigns the Administrator role and emails the assignees a link to their Workflow Inbox.

Discuss this post

Questions, corrections or your own approach? Reply in the community thread.

Leave a Comment