find_duplicate_forms
Find identical forms and which copy is safe to delete.
Portals accumulate forms. Someone clones "Demo Request" to test a change, ships the clone, and now two identical forms collect leads into the same pipeline forever.
This finds them. Forms are grouped by shape first, so most of the portal is ruled out without a single extra request, and only real collision candidates get fetched in full.
The useful part isn't finding the twins — it's knowing which one to kill. Each cluster is ranked by submission recency: the form still taking traffic is the keeper, and the silent ones are your removal candidates.
It never deletes anything, and it will not nominate a form that still has traffic. Treat "no submissions found" as a lead, not a verdict — a form may sit on a live page that simply hasn't converted.
Forms with the same fields but reworded labels are reported without a verdict. That's a judgement call, so your AI client makes it.
Find redundant forms worth removing
Find forms in the portal that are identical or near-identical, and which of each cluster is safe to remove. Ranks by submission recency: the form still taking traffic is the keeper; silent ones are removal candidates. Advisory only — it never deletes anything, and a form with no submissions found may still sit on a live page, so confirm before removing. Near-duplicates (same fields, reworded labels) are reported without a verdict for you to rule on.
Parameters
None — call it with no arguments.