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.
- Meet Jev. Submit one request and follow the answer.
- Define a Decision. Tell the model which team handles a cancellation.
- Handle Uncertainty. See why the app sometimes asks a second model.
- What Changes the Answer? Change the customer's message and check the result.
On this page