Vercel Logo

Make Decisions with Jev

Use Jev to route customer messages to the right team. Start with a working contact form, teach it who handles cancellations, and test your rules with different requests.

In this mini-course, we'll build a contact form that uses Jev to choose the team that can help a customer.

Jev is an AI model from TypeSafe that answers specific questions for your code. We give it the customer's message and describe what each team handles. It returns a team ID that the app can use to route the request.

We'll start with a working template, add a rule for cancellations, and test it with messages that ask for different kinds of help. The code uses TypeScript and React; we'll explain Jev and the model calls as we go.

Try Jev for free until September 25

Jev is free on Vercel AI Gateway until September 25, 2026. Check the Jev model page for current pricing when you take the course. The template's fallback model has its own pricing.

  1. Meet Jev. Submit one request and follow the answer.
  2. Define a Decision. Tell the model which team handles a cancellation.
  3. Handle Uncertainty. See why the app sometimes asks a second model.
  4. What Changes the Answer? Change the customer's message and check the result.