Moderate product reviews with Jev, TanStack AI, and AI Gateway
Builds a TanStack Start moderation route using TanStack AI’s decide() and Jev to classify a review’s topic, sentiment, promotion, and personal-data flags before code chooses publish or hold.
Original by Ben SabicIntegrationsVercel guideOriginal published Source reviewed
Before you dive in
What you’ll find in the original
Validate review fields before sending state to a server-side evaluator.
Test each hold condition and the exact threshold boundaries using fixed responses.
Treat verified-purchase and account rules as separate backend checks, not model judgments.
Worth knowing
The sample response and thresholds are illustrative; labeled reviews are needed before publishing automatically.