JevMade Sign in
← Back to guides

JevMade field notes / Implementation article with code examples

Separate unwanted mail from customer requests

There There checks labels from mail servers before asking Jev to identify automatic replies, delivery failures and spam, then saves the answers for later rules.

Original by Freek Van der HertenClassification

Listen to this guide

JevMade’s plain-English explanation

0:00 /

AI narration

Credits

“Detecting spam and auto-replies with Jev and the Laravel AI SDK” by Freek Van der Herten. Read the original source.

This expanded guide is an AI-narrated adaptation prepared by JevMade. It expands the source’s essential ideas, examples and caveats in JevMade’s own words and is not a word-for-word reading. The synthetic voice does not imitate the author or imply their endorsement.

Our summary

A helpdesk receives more than customer questions: automatic replies, failed-delivery notices and unwanted mail arrive too. Freek Van der Herten explains how his helpdesk app, There There, uses Jev to identify these messages. Laravel’s programming tools connect the app to this outside AI service.

Mail headers are labels added by mail servers. Some identify a message without AI. Jev checks the remaining questions together, using the subject, sender and shortened message text. It gives each answer a probability, a number showing how likely it thinks the answer is. Code turns that number into a yes-or-no result.

Later rules read saved results instead of asking Jev again. The app uses a 75% cutoff for automatic replies and a 90% cutoff for delivery failures and spam. It saves the probabilities too, so changed cutoffs can be compared. Errors do not stop the mail arriving, though shortened text leaves later details unchecked.

Key takeaways

  1. Check the labels added by the mail server first, then ask Jev the remaining questions together.
  2. Choose a cutoff for each question: the example uses 75% for automatic replies and 90% for delivery failures and spam. Save the probabilities so you can revisit those choices.
  3. Limit the text sent for checking and let mail processing continue if the check fails; a missing answer should not stop the inbox.

These are There There’s choices, not accuracy guarantees. The example limits message text to 10,000 characters and waits up to ten seconds for an answer. If the check fails, it records the error without saving new Jev results. Text beyond the limit is not checked. The author’s speed and cost figures were not independently measured.

freek.dev · Original published

Read the original guide Opens the author’s site in a new tab.

Keep this for later

Sign in to bookmark experiments, guides and videos, and keep notes only you can see.

Continue to sign in

We’ll bring you back to this listing.