Skip to content

Training & Accuracy

FormSentry uses AI to classify form submissions. You can improve accuracy for your specific forms by providing training examples.

When a submission arrives, FormSentry classifies it using:

  1. Form context — your form’s name, description, and expected fields
  2. Training examples — submissions you’ve marked as legitimate or spam
  3. AI analysis — the AI model considers all context to make a decision

Training examples are the most effective way to improve accuracy. They teach the AI what your specific form considers legitimate vs spam.

  1. Go to Submissions in your FormSentry dashboard
  2. Find a submission that was misclassified
  3. Click the submission to view details
  4. Click Mark as Legitimate or Mark as Spam to reclassify it

The reclassified submission automatically becomes a training example. Future submissions similar to it will be classified according to your correction.

Training examples are scoped per form — examples added to one form do not affect other forms.

  • Add examples of both types — the AI needs to see what you consider legitimate AND what you consider spam for your form
  • Include edge cases — borderline submissions are the most valuable training examples
  • Be consistent — if similar submissions are marked differently, the AI will be uncertain
  • Start with 3-5 examples per category — even a small number of examples significantly improves accuracy
  • Add more as you go — continue marking misclassified submissions over time

Up to 5 legitimate and 5 spam examples are considered as context per request. If you have more, the most recent are used.

Without training data, the AI relies on general spam signals and your form’s name and description. This works well for obvious spam but may miss form-specific nuances.

With training data, the AI learns your form’s specific patterns:

  • What topics are on-topic vs off-topic for your form
  • What writing styles your legitimate users have
  • What types of submissions you consider spam

Example: A technical support form for a software product might receive a well-written message about a competitor’s product — without training, the AI might classify this as legitimate. After adding it as a spam training example, similar off-topic submissions are correctly flagged.

Your form’s name and description also influence classification. The AI receives the form name, description, and list of expected fields with each request. Be specific:

DescriptionAccuracy Impact
”Contact form”Low — too vague for the AI to determine relevance
”Technical support for Bright Solutions software products”High — gives the AI clear context about what’s relevant

See Form Configuration for more on setting up form context.

The confidence field in the API response indicates how certain the AI is:

ScoreMeaning
0.9 — 1.0Certain
0.7 — 0.89High confidence
0.5 — 0.69Moderate — may benefit from training examples
0.3 — 0.49Low confidence
0.0 — 0.29Uncertain — training examples strongly recommended

When your plan’s AI limit is reached, FormSentry falls back to rule-based detection, which always returns a confidence of 0.7.

If you see many submissions in the 0.5—0.7 range, adding training examples for those types of submissions will push accuracy higher.

If a submission exactly matches a training example (same content in all fields), it is instantly classified without calling the AI model. This provides:

  • Instant response times
  • 100% confidence score